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

Kendall Willis posted 4 patches 1 month, 1 week 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 v4 0/4] arm64: boot: dts: ti: k3-am62l: allow WKUP UART wakeup from LPM
Posted by Kendall Willis 1 month, 1 week 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 SYSCONFIG related registers. In this case, the
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 Technical
Reference Manual for registers referenced [1].

Other TI K3 SoCs configure the WKUP UART to wakeup from system suspend
using the ti-sysc target module driver. Refer to commit ce27f7f9e328
("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 v4:
- Fix target-module label to accurately describe the function being a
  target for wkup_uart0.
- Update commit messages with the fixed target-module label.
- Link to v3: https://lore.kernel.org/r/20260127-v6-19-wkup-uart-wakeup-v3-0-e7ccac761f3a@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 wkup_uart0 target-module
      arm64: boot: dts: ti: k3-am62l3-evm: define wkup_uart0 pins
      arm64: boot: dts: ti: k3-am62l3-evm: enable wkup_uart0_target 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: 44982d352c33767cd8d19f8044e7e1161a587ff7
change-id: 20260127-v6-19-wkup-uart-wakeup-11c1c3d5b99a

Best regards,
-- 
Kendall Willis <k-willis@ti.com>
Re: [PATCH v4 0/4] arm64: boot: dts: ti: k3-am62l: allow WKUP UART wakeup from LPM
Posted by Vignesh Raghavendra 2 weeks, 6 days ago
Hi Kendall Willis,

On Thu, 19 Feb 2026 13:43:15 -0600, Kendall Willis wrote:
> 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 SYSCONFIG related registers. In this case, the
> 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 Technical
> Reference Manual for registers referenced [1].
> 
> [...]

I have applied the following to branch ti-k3-dts-next on [1].
Thank you!

[1/4] arm64: dts: ti: k3-am62l: include WKUP_UART0 in wakeup peripheral window
      commit: e5452968a4b04f93bf9b778ccfd00f79e4d4f529
[2/4] arm64: boot: dts: ti: k3-am62l-wakeup: create label for wkup_uart0 target-module
      commit: f177b48ac038ddf131d05099ce6b05eae946db08
[3/4] arm64: boot: dts: ti: k3-am62l3-evm: define wkup_uart0 pins
      commit: 54217686642ac0007d4e0c8032c0250dd9b29f91
[4/4] arm64: boot: dts: ti: k3-am62l3-evm: enable wkup_uart0_target node
      commit: 3865126f0e5b497e2a94eaaba56464ac4ce8faef

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh