Add wakeup pinctrl state with PIN_WKUP_EN and mark the user button
as a wakeup-source to allow the GPIO key to wake the system from suspend.
Signed-off-by: Kendall Willis <redacted>
---
Depends on series "Input: gpio-keys - support wakeup pinctrl state" [1].
This patch cannot be merged until series [1] has been.
[1] https://lore.kernel.org/all/20260912-upstream-gpio-wakeup-v1-0-f0e12484b836@ti.com/ (local)
---
arch/arm64/boot/dts/ti/k3-am62l3-evm.dts | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts b/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts
index 84a0cfaaf196ad1af2f1d0074c90fdb1b1ca0bcf..6635b5e5cc85790cbaea092eb669d50fb0d4e5d9 100644
--- a/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts
@@ -34,13 +34,15 @@ memory@80000000 {
gpio_keys: gpio-keys {
compatible = "gpio-keys";
autorepeat;
- pinctrl-names = "default";
+ pinctrl-names = "default", "wakeup";
pinctrl-0 = <&usr_button_pins_default>;
+ pinctrl-1 = <&usr_button_pins_wakeup>;
usr: button-usr {
label = "User Key";
linux,code = <BTN_0>;
gpios = <&gpio0 90 GPIO_ACTIVE_LOW>;
+ wakeup-source;
};
};
@@ -307,6 +309,12 @@ AM62LX_IOPAD(0x01ac, PIN_INPUT, 7) /* (E12) SPI0_D0.GPIO0_90 */
>;
};
+ usr_button_pins_wakeup: usr-button-wakeup-pins {
+ pinctrl-single,pins = <
+ AM62LX_IOPAD(0x01ac, PIN_INPUT | PIN_WKUP_EN, 7) /* (E12) SPI0_D0.GPIO0_90 */
+ >;
+ };
+
usr_led_pins_default: usr-led-default-pins {
pinctrl-single,pins = <
AM62LX_IOPAD(0x0238, PIN_OUTPUT, 7) /* (D24) MMC1_SDWP.GPIO0_123 */
---
base-commit: df2908090cda368b01ff43709f51890076c56157
change-id: 20260912-upstream-gpio-wakeup-dts-9d08f08392a9
Best regards,
--
Kendall Willis [off-list ref]