Hello All,
I am trying to test the standby mode feature in TI SDK 07.03.00.005 , linux version 5.4.106
To enter standby mode I have executed the following command
echo standby > /sys/power/state
I am able to successfully enter standby mode,
I am able to wake up from standby mode using GPIO0, UART
I am facing issue in waking up from standby mode using GPIO2 bank
I have attached the device tree configuration done for GPIO buttons below
Any device tree configurations need to be added? Please help
Thanks & Regards,
Anjana
gpio_buttons: gpio_buttons0 { compatible = "gpio-keys"; #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&gpio_keys_s0>; switch1 { label = "button0"; linux,code = <0x100>; gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; interrupt-parent = <&gpio2>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; debounce-interval = <10>; wakeup-source; }; switch2 { label = "button1"; linux,code = <0x101>; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; interrupt-parent = <&gpio2>; interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; debounce-interval = <10>; wakeup-source; }; switch3 { label = "button2"; linux,code = <0x102>; gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; interrupt-parent = <&gpio0>; interrupts = <30 IRQ_TYPE_LEVEL_HIGH>; debounce-interval = <10>; wakeup-source; }; switch4 { label = "button3"; linux,code = <0x103>; gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; interrupt-parent = <&gpio2>; interrupts = <5 IRQ_TYPE_LEVEL_HIGH >; debounce-interval = <10>; wakeup-source; }; switch5 { label = "button4"; linux,code = <0x104>; gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; interrupt-parent = <&gpio1>; interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; debounce-interval = <10>; wakeup-source; }; }; gpio_keys_s0: gpio_keys_s0 { pinctrl-single,pins = < AM33XX_PADCONF(AM335X_PIN_GPMC_OEN_REN, PIN_INPUT_PULLDOWN, MUX_MODE7) /* gpmc_oen_ren. gpio2_3 */ AM33XX_PADCONF(AM335X_PIN_GPMC_ADVN_ALE, PIN_INPUT_PULLDOWN, MUX_MODE7) /* gpmc_advn_ale .gpio2_2 */ AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLDOWN, MUX_MODE7) /* gpmc_wait0.gp io0_30 */ AM33XX_PADCONF(AM335X_PIN_GPMC_BEN0_CLE, PIN_INPUT_PULLDOWN, MUX_MODE7) /* gpmc_ben0_cle .gpio2_5 */ AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_INPUT_PULLDOWN, MUX_MODE7) /* gpmc_a0 .gpio1_16 */ >; };