Skip to content

Commit 6b0b73c

Browse files
kwillis01r-vignesh
authored andcommitted
arm64: dts: ti: k3-am62x-sk-common: 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-1-26c7f534e567@ti.com Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
1 parent f1c5ba9 commit 6b0b73c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@
151151
>;
152152
};
153153

154+
main_uart0_pins_wakeup: main-uart0-wakeup-pins {
155+
pinctrl-single,pins = <
156+
AM62X_IOPAD(0x1c8, PIN_INPUT | PIN_WKUP_EN, 0) /* (D14/A13) UART0_RXD */
157+
AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14/E11) UART0_TXD */
158+
>;
159+
};
160+
154161
main_uart1_pins_default: main-uart1-default-pins {
155162
bootph-pre-ram;
156163
pinctrl-single,pins = <
@@ -322,8 +329,12 @@
322329
&main_uart0 {
323330
bootph-all;
324331
status = "okay";
325-
pinctrl-names = "default";
332+
pinctrl-names = "default", "wakeup";
326333
pinctrl-0 = <&main_uart0_pins_default>;
334+
pinctrl-1 = <&main_uart0_pins_wakeup>;
335+
wakeup-source = <&system_deep_sleep>,
336+
<&system_mcu_only>,
337+
<&system_standby>;
327338
};
328339

329340
&main_uart1 {

0 commit comments

Comments
 (0)