[PATCH 2/2] arm64: dts: ti: k3-am65: Add general purpose timers for am65

Nishanth Menon nm at ti.com
Wed Jul 6 16:21:57 PDT 2022


On 13:47-20220407, Tony Lindgren wrote:
> 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 do not have interrupts routable for Linux and
> 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 at ti.com>
> Cc: Nishanth Menon <nm at ti.com>
> Cc: Vignesh Raghavendra <vigneshr at ti.com>
> Signed-off-by: Tony Lindgren <tony at atomide.com>
> Signed-off-by: Nishanth Menon <nm at ti.com>
> Link: https://lore.kernel.org/r/20220407104725.41755-2-tony@atomide.com
> ---
>  arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 108 +++++++++++++++++++++++
>  arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi  |  41 +++++++++
>  2 files changed, 149 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
> --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
> @@ -271,6 +271,114 @@ main_spi4: spi at 2140000 {
>  		#size-cells = <0>;
>  	};
>  
> +	main_timer0: timer at 2400000 {
> +		compatible = "ti,am6-timer";
> +		reg = <0x00 0x2400000 0x00 0x400>;
> +		interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
> +		clocks = <&k3_clks 23 12>;
> +		clock-names = "fck";
> +		ti,timer-pwm;
> +	};

Tony,
Lets hold this back one more window.. ti,am6-timer should come
in the next rc1, but I still dont see this yet in next-20220706, So, i am
going to have to skip this window at least.
-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D



More information about the linux-arm-kernel mailing list