Skip to content

Commit 8cb06da

Browse files
kwillis01r-vignesh
authored andcommitted
arm64: dts: ti: k3-am62d2-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. Signed-off-by: Kendall Willis <k-willis@ti.com> Link: https://patch.msgid.link/20260212-b4-uart-daisy-chain-dts-v5-5-26c7f534e567@ti.com Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
1 parent f686131 commit 8cb06da

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

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

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

284+
main_uart0_pins_wakeup: main-uart0-wakeup-pins {
285+
pinctrl-single,pins = <
286+
AM62DX_IOPAD(0x01c8, PIN_INPUT | PIN_WKUP_EN, 0) /* (E14) UART0_RXD */
287+
AM62DX_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (D15) UART0_TXD */
288+
>;
289+
};
290+
284291
main_i2c0_pins_default: main-i2c0-default-pins {
285292
pinctrl-single,pins = <
286293
AM62DX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D17) I2C0_SCL */
@@ -627,8 +634,12 @@
627634
};
628635

629636
&main_uart0 {
630-
pinctrl-names = "default";
637+
pinctrl-names = "default", "wakeup";
631638
pinctrl-0 = <&main_uart0_pins_default>;
639+
pinctrl-1 = <&main_uart0_pins_wakeup>;
640+
wakeup-source = <&system_deep_sleep>,
641+
<&system_mcu_only>,
642+
<&system_standby>;
632643
bootph-all;
633644
status = "okay";
634645
};

0 commit comments

Comments
 (0)