Tool/software: Linux
Hi
Basically i am using custom beagle bone black with latest TI SDK
i am able to put the CPU in sleep mode(standby,mem) and i can wake up from tty terminal key press.
but i am unable to wake up the CPU from a gpio pin can you please let me know the dts file changes in order to wake up the cpu from a gpio pin toggle.
bellow are the changes done by me
BUT BELLOW CHANGES WORKS FINE I AM ABLE TO WAKE UP using GPIO0_7
keys: wakeup_keys@0 {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
test@0 {
label = "P8-pin24";
linux,code = <155>;
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
};
};
since i need 2 gpio pins to wake up the CPU hence i added extra pin after which i cannot wake from any gpio pin
NOT WORKING
--------------------
keys: wakeup_keys@0 {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
test@0 {
label = "P8-pin24";
linux,code = <155>;
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
};
test@1 {
label = “P9-pin23";
linux,code = <155>;
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
};
};
my dmesg output
[ 0.572319] of_get_named_gpiod_flags: parsed 'gpios' property of node '/wakeup_keys@0/test@0[0]' - status (0)
[ 0.572357] of_get_named_gpiod_flags: parsed 'gpios' property of node '/wakeup_keys@0/test@1[0]' - status (0)
[ 0.572775] input: wakeup_keys@0 as /devices/platform/wakeup_keys@0/input/input0
--------------------------------
can you please let me know why i am not able to wake up from any gpio after i put CPU in sleep mode after i add bellow changes in the dts file but if i remove this i can wake up using gpio0_7
test@1 {
label = “P9-pin23";
linux,code = <155>;
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
};
Regards