arm64: dts: ti: k3-am62-wakeup: Configure ti-sysc for wkup_uart0
authorTony Lindgren <tony@atomide.com>
Tue, 13 Feb 2024 11:25:08 +0000 (13:25 +0200)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 15 Feb 2024 14:12:40 +0000 (19:42 +0530)
commitce27f7f9e328c8582a169f97f1466976561f1608
tree9aa8662195ddf4cfd1edb7f1fb5cd64393e029d4
parentd8280f30a9cd1e4c88f42764d548da3d529a52a8
arm64: dts: ti: k3-am62-wakeup: Configure ti-sysc for wkup_uart0

The devices in the wkup domain are capable of waking up the system from
suspend. We can configure the wkup domain devices in a generic way using
the ti-sysc interconnect target module driver like we have done with the
earlier TI SoCs.

As ti-sysc manages the SYSCONFIG related registers independent of the
child hardware device, the wake-up configuration is also set even if
wkup_uart0 is reserved by sysfw.

The wkup_uart0 device has interconnect target module register mapping like
dra7 wkup uart. There is a 1 MB interconnect target range with one uart IP
block in the target module. The power domain and clock affects the whole
interconnect target module.

Note we change the functional clock name to follow the ti-sysc binding
and use "fck" instead of "fclk".

Also note that we need to disable the target module reset as noted by
Markus. Otherwise the sysfw using wkup_uart0 can get confused on some
devices leading to boot time issues such as mbox timeouts.

Tested-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Markus Schneider-Pargmann <msp@baylibre.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20240213112510.6334-1-tony@atomide.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi