summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKendall Willis <k-willis@ti.com>2026-02-12 20:27:24 +0300
committerVignesh Raghavendra <vigneshr@ti.com>2026-03-27 05:08:35 +0300
commit8cb06da086ae530de7eaf4f44e33e46fa4e78c53 (patch)
treeec531370275353798d7e2521965e8dbd0d11fc6e
parentf6861318c5393a309ac8907a27a4f09f3518b20d (diff)
downloadlinux-8cb06da086ae530de7eaf4f44e33e46fa4e78c53.tar.xz
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>
-rw-r--r--arch/arm64/boot/dts/ti/k3-am62d2-evm.dts13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/ti/k3-am62d2-evm.dts b/arch/arm64/boot/dts/ti/k3-am62d2-evm.dts
index 1ee851a646c0..f5ceb6a1b5de 100644
--- a/arch/arm64/boot/dts/ti/k3-am62d2-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62d2-evm.dts
@@ -281,6 +281,13 @@
bootph-all;
};
+ main_uart0_pins_wakeup: main-uart0-wakeup-pins {
+ pinctrl-single,pins = <
+ AM62DX_IOPAD(0x01c8, PIN_INPUT | PIN_WKUP_EN, 0) /* (E14) UART0_RXD */
+ AM62DX_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (D15) UART0_TXD */
+ >;
+ };
+
main_i2c0_pins_default: main-i2c0-default-pins {
pinctrl-single,pins = <
AM62DX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D17) I2C0_SCL */
@@ -627,8 +634,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>;
bootph-all;
status = "okay";
};