[PATCH v3 0/4] arm64: boot: dts: ti: k3-am62l: allow WKUP UART wakeup from LPM

Kendall Willis posted 4 patches 1 week, 3 days ago
arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi |  2 +-
arch/arm64/boot/dts/ti/k3-am62l.dtsi        |  4 ++--
arch/arm64/boot/dts/ti/k3-am62l3-evm.dts    | 15 +++++++++++++++
3 files changed, 18 insertions(+), 3 deletions(-)
[PATCH v3 0/4] arm64: boot: dts: ti: k3-am62l: allow WKUP UART wakeup from LPM
Posted by Kendall Willis 1 week, 3 days ago
K3 TI AM62L SoC supports wakeup from WKUP UART when the SoC is in the
DeepSleep low power mode. To allow wakeup from WKUP UART the target-module
device tree node is enabled. The ti-sysc interconnect target module driver
is used to configure the the SYSCONFIG related registers. In this case,
the interconnect target module node configures the WKUP UART to be able to
wakeup from system suspend. The SYSC register is used to enable wakeup
from system suspend for the WKUP UART. Refer to 14.7.2.5 UART in the
AM62L Techincal Reference Manual for registers referenced [1].

Previous TI SoCs configure the WKUP UART to wakeup from system suspend
using the ti-sysc interconnect target module driver. Refer to commit
ce27f7f ("arm64: dts: ti: k3-am62-wakeup: Configure ti-sysc for
wkup_uart0") for an example of this.

wkup_uart0 is not enabled to preserve the Linux console printing on uart0.

Testing
-------
Tested on AM62L EVM.

[1] https://www.ti.com/lit/ug/sprujb4a/sprujb4a.pdf

Signed-off-by: Kendall Willis <k-willis@ti.com>
---
Changes in v3:
- Add pin definition to wkup_uart0 node.
- Link to v2: https://lore.kernel.org/r/20260106-wkup-uart-wakeup-v2-0-fb4cbd56c827@ti.com

Changes in v2:
- Change subject of commit "arm64: boot: dts: ti: k3-am62l3-evm: enable
  target-module node" to better match the code logic of the patch.
- Link to v1: https://lore.kernel.org/r/20251230-wkup-uart-wakeup-v1-0-cd6e15f8d956@ti.com

---
Kendall Willis (4):
      arm64: dts: ti: k3-am62l: include WKUP_UART0 in wakeup peripheral window
      arm64: boot: dts: ti: k3-am62l-wakeup: create label for target-module
      arm64: boot: dts: ti: k3-am62l3-evm: define WKUP_UART0 pins
      arm64: boot: dts: ti: k3-am62l3-evm: enable target-module node

 arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi |  2 +-
 arch/arm64/boot/dts/ti/k3-am62l.dtsi        |  4 ++--
 arch/arm64/boot/dts/ti/k3-am62l3-evm.dts    | 15 +++++++++++++++
 3 files changed, 18 insertions(+), 3 deletions(-)
---
base-commit: 63804fed149a6750ffd28610c5c1c98cce6bd377
change-id: 20260127-v6-19-wkup-uart-wakeup-11c1c3d5b99a

Best regards,
-- 
Kendall Willis <k-willis@ti.com>