Skip to content

Commit 005a2d0

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

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@
282282
bootph-all;
283283
};
284284

285+
main_uart0_pins_wakeup: main-uart0-wakeup-pins {
286+
pinctrl-single,pins = <
287+
AM62AX_IOPAD(0x1c8, PIN_INPUT | PIN_WKUP_EN, 0) /* (E14) UART0_RXD */
288+
AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (D15) UART0_TXD */
289+
>;
290+
};
291+
285292
main_uart1_pins_default: main-uart1-default-pins {
286293
pinctrl-single,pins = <
287294
AM62AX_IOPAD(0x01ac, PIN_INPUT, 2) /* (B21) MCASP0_AFSR.UART1_RXD */
@@ -717,8 +724,12 @@
717724

718725
&main_uart0 {
719726
status = "okay";
720-
pinctrl-names = "default";
727+
pinctrl-names = "default", "wakeup";
721728
pinctrl-0 = <&main_uart0_pins_default>;
729+
pinctrl-1 = <&main_uart0_pins_wakeup>;
730+
wakeup-source = <&system_deep_sleep>,
731+
<&system_mcu_only>,
732+
<&system_standby>;
722733
bootph-all;
723734
};
724735

0 commit comments

Comments
 (0)