arm64: dts: ti: k3-am65: Add general purpose timers for am65
authorTony Lindgren <tony@atomide.com>
Tue, 15 Nov 2022 15:48:41 +0000 (17:48 +0200)
committerNishanth Menon <nm@ti.com>
Tue, 15 Nov 2022 16:43:17 +0000 (10:43 -0600)
commitcdbaf880b440287f56bc7dc58c4362b6bebb64e4
tree8a92cc3e8bc9600a42540ba90870f98028424c02
parent7928c712e2d6666a1816d5182038436902f57380
arm64: dts: ti: k3-am65: Add general purpose timers for am65

There are 12 general purpose timers on am65 that can be used for things
like PWM using pwm-omap-dmtimer driver. There are also additional four
timers in the MCU domain that do not have interrupts routable for Linux.

We configure the timers with the 25 MHz input clock by default as the
32.768 kHz clock may not be wired on the device. We leave the MCU domain
timers clock mux unconfigured, and mark the MCU domain timers reserved.
The MCU domain timers are likely reserved by the software for the ESM
module.

Compared to am64, the timer clocks are different on am65. And the MCU
timers are at a different IO address. Then j72 adds more timers compared
to am65 with a total of 30 timers. And the j72 clocks are different.

To avoid duplication for dtsi files, eventually we may want to consider
adding timer specific shared dtsi files with the timer clocks mapped
using SoC specific files in include/dt-bindings/clock. But let's get
am65 timers usable first.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20221115154842.7755-3-tony@atomide.com
arch/arm64/boot/dts/ti/k3-am65-main.dtsi
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi