summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKendall Willis <k-willis@ti.com>2026-02-12 20:27:22 +0300
committerVignesh Raghavendra <vigneshr@ti.com>2026-03-27 05:08:35 +0300
commitf298ada021e10d07972b5de703c7c8ceeeaa7bc6 (patch)
treed36acf52075c1d38e49ba4158dc2b873673bb80e
parent005a2d075caa1cdd95cb6b580f542b64bf41e944 (diff)
downloadlinux-f298ada021e10d07972b5de703c7c8ceeeaa7bc6.tar.xz
arm64: dts: ti: k3-am62p5-sk: Enable Main UART wakeup
The Main UART can resume from suspend to RAM states when PIN_WKUP_EN is enabled. Add the necessary pins needed to wakeup the system. Add the system idle states that the Main UART can wakeup the system from. The UART driver uses the "default" pinctrl state when the system is active. In the suspend hook, if the UART is wakeup enabled, the "wakeup" pinctrl state is selected by the UART driver in order to allow wakeup. Upon resume, the default pinctrl state is selected again. Reviewed-by: Markus Schneider-Pargmann <msp@baylibre.com> Reviewed-by: Dhruva Gole <d-gole@ti.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Kendall Willis <k-willis@ti.com> Link: https://patch.msgid.link/20260212-b4-uart-daisy-chain-dts-v5-3-26c7f534e567@ti.com Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
-rw-r--r--arch/arm64/boot/dts/ti/k3-am62p5-sk.dts13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
index 4f7f6f95b02e..fd323a648809 100644
--- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
@@ -336,6 +336,13 @@
bootph-all;
};
+ main_uart0_pins_wakeup: main-uart0-wakeup-pins {
+ pinctrl-single,pins = <
+ AM62PX_IOPAD(0x1c8, PIN_INPUT | PIN_WKUP_EN, 0) /* (A22) UART0_RXD */
+ AM62PX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (B22) UART0_TXD */
+ >;
+ };
+
main_uart1_pins_default: main-uart1-default-pins {
pinctrl-single,pins = <
AM62PX_IOPAD(0x0194, PIN_INPUT, 2) /* (D25) MCASP0_AXR3.UART1_CTSn */
@@ -692,8 +699,12 @@
};
&main_uart0 {
- pinctrl-names = "default";
+ pinctrl-names = "default", "wakeup";
pinctrl-0 = <&main_uart0_pins_default>;
+ pinctrl-1 = <&main_uart0_pins_wakeup>;
+ wakeup-source = <&system_deep_sleep>,
+ <&system_mcu_only>,
+ <&system_standby>;
status = "okay";
bootph-all;
};