This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: How to use a GPIO on the Main domain as wakeup source

Part Number: AM625

Hello,

according to the release notes, from release 09.00.00, it should be possible to wake the SoC from low power mode using a GPIO in the main domain using I/O Daisy Chain.

Can you provide an example on how this needs to be configured on the device tree?

At the moment we have something like this

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
&main_pmx0 {
pin: main-gpio0-32-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x0084, PIN_INPUT_PULLUP, 7)
>;
};
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&pin>;
key-wakeup {
gpios = <&main_gpio0 32 GPIO_ACTIVE_LOW>;
label = "Wake-Up";
linux,code = <KEY_WAKEUP>;
wakeup-source;
};
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

What do we need to add/change?