]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: h616: add hstimer node
authorMichal Piekos <michal.piekos@mmpsystems.pl>
Wed, 6 May 2026 15:10:29 +0000 (17:10 +0200)
committerChen-Yu Tsai <wens@kernel.org>
Mon, 11 May 2026 05:42:21 +0000 (13:42 +0800)
Describe high speed timer block on Allwinner H616.

Tested on Orange Pi Zero 3:
- hstimer is registered as clocksource
- switching clocksource at runtime works
- after rating increase hstimer operates as a broadcast clockevent device

Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Link: https://patch.msgid.link/20260506-h616-t113s-hstimer-v4-4-591d425863d6@mmpsystems.pl
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi

index b116d3c12881e4324aa38513830fba6595c992aa..1598e86259ab573b6c352864a38c35ad501336f7 100644 (file)
                        clocks = <&osc24M>;
                };
 
+               hstimer@3005000 {
+                       compatible = "allwinner,sun50i-h616-hstimer",
+                                    "allwinner,sun20i-d1-hstimer";
+                       reg = <0x03005000 0x1000>;
+                       interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_BUS_HSTIMER>;
+                       resets = <&ccu RST_BUS_HSTIMER>;
+               };
+
                watchdog: watchdog@30090a0 {
                        compatible = "allwinner,sun50i-h616-wdt",
                                     "allwinner,sun6i-a31-wdt";