Skip to content

Commit f686131

Browse files
kwillis01r-vignesh
authored andcommitted
arm64: dts: ti: k3-am62l3-evm: 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-4-26c7f534e567@ti.com Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
1 parent f298ada commit f686131

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

arch/arm64/boot/dts/ti/k3-am62l3-evm.dts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,13 @@
288288
bootph-all;
289289
};
290290

291+
uart0_pins_wakeup: uart0-wakeup-pins {
292+
pinctrl-single,pins = <
293+
AM62LX_IOPAD(0x01b4, PIN_INPUT | PIN_WKUP_EN, 0) /* (D13) UART0_RXD */
294+
AM62LX_IOPAD(0x01b8, PIN_OUTPUT, 0) /* (C13) UART0_TXD */
295+
>;
296+
};
297+
291298
usb1_default_pins: usb1-default-pins {
292299
pinctrl-single,pins = <
293300
AM62LX_IOPAD(0x0248, PIN_INPUT | PIN_DS_PULLUD_ENABLE | PIN_DS_PULL_UP, 0) /* (A5) USB1_DRVVBUS */
@@ -335,7 +342,9 @@
335342

336343
&uart0 {
337344
pinctrl-0 = <&uart0_pins_default>;
338-
pinctrl-names = "default";
345+
pinctrl-1 = <&uart0_pins_wakeup>;
346+
pinctrl-names = "default", "wakeup";
347+
wakeup-source;
339348
status = "okay";
340349
bootph-all;
341350
};

0 commit comments

Comments
 (0)