Skip to content

Commit c755e39

Browse files
michalpiekoswens
authored andcommitted
arm64: dts: allwinner: enable h616 timer support
Add support for timer by reusing existing sun4i timer driver. H616 timer is compatible with earlier sunxi timer variants and provides both clocksource and clockevent functionality. It runs from 24 MHz oscillator. It can serve as broadcast clockevent for wake up from idle states. Tested on Orange Pi Zero 3: - timer is registered as clocksource: - switching clocksource at runtime works - timer operates as a broadcast clockevent device - no regression observed compared to arch_sys_counter Signed-off-by: Michal Piekos <[email protected]> Reviewed-by: Jernej Skrabec <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent 2e4858d commit c755e39

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,15 @@
228228
};
229229
};
230230

231+
timer0: timer@3009000 {
232+
compatible = "allwinner,sun50i-h616-timer",
233+
"allwinner,sun8i-a23-timer";
234+
reg = <0x03009000 0xa0>;
235+
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
236+
<GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
237+
clocks = <&osc24M>;
238+
};
239+
231240
watchdog: watchdog@30090a0 {
232241
compatible = "allwinner,sun50i-h616-wdt",
233242
"allwinner,sun6i-a31-wdt";

0 commit comments

Comments
 (0)