[PATCH 3/5] riscv: dts: spacemit: Add the K1 APB timer
Troy Mitchell
troy.mitchell at linux.spacemit.com
Tue Nov 3 00:36:48 PST 2026
Describe the first APB timer block and its counter 0 interrupt so it can
provide a shared clockevent. Connect its functional and bus clocks and
reset, and select the oscillator-derived 1 MHz input for a stable counter
rate independent of the PLLs.
Signed-off-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
---
arch/riscv/boot/dts/spacemit/k1.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
index 542bfc0d19f5..c3db90f6bf14 100644
--- a/arch/riscv/boot/dts/spacemit/k1.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
@@ -583,6 +583,18 @@ i2c5: i2c at d4013800 {
status = "disabled";
};
+ timer0: timer at d4014000 {
+ compatible = "spacemit,k1-timer";
+ reg = <0x0 0xd4014000 0x0 0x100>;
+ interrupts = <23>;
+ clocks = <&syscon_apbc CLK_TIMERS1>,
+ <&syscon_apbc CLK_TIMERS1_BUS>;
+ clock-names = "func", "bus";
+ assigned-clocks = <&syscon_apbc CLK_TIMERS1>;
+ assigned-clock-rates = <1000000>;
+ resets = <&syscon_apbc RESET_TIMERS1>;
+ };
+
syscon_apbc: system-controller at d4015000 {
compatible = "spacemit,k1-syscon-apbc";
reg = <0x0 0xd4015000 0x0 0x1000>;
--
2.56.0
More information about the linux-riscv
mailing list