[PATCH 4/5] riscv: dts: spacemit: Add the K3 APB timer
Troy Mitchell
troy.mitchell at linux.spacemit.com
Tue Nov 3 00:36:49 PST 2026
Describe the APB timer at 0xd4016000 and its counter 0 interrupt so it can
provide a shared clockevent. Select the oscillator-derived 1 MHz input
and connect the functional clock, bus clock and reset.
The register interface is compatible with K1, so use the K1 fallback
following the K3 compatible.
Signed-off-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
---
arch/riscv/boot/dts/spacemit/k3.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spacemit/k3.dtsi
index e89d2cc5ca8c..cee313232c11 100644
--- a/arch/riscv/boot/dts/spacemit/k3.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k3.dtsi
@@ -777,6 +777,18 @@ syscon_apbc: system-controller at d4015000 {
#reset-cells = <1>;
};
+ timer1: timer at d4016000 {
+ compatible = "spacemit,k3-timer", "spacemit,k1-timer";
+ reg = <0x0 0xd4016000 0x0 0x100>;
+ interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&syscon_apbc CLK_APBC_TIMERS1>,
+ <&syscon_apbc CLK_APBC_TIMERS1_BUS>;
+ clock-names = "func", "bus";
+ assigned-clocks = <&syscon_apbc CLK_APBC_TIMERS1>;
+ assigned-clock-rates = <1000000>;
+ resets = <&syscon_apbc RESET_APBC_TIMERS1>;
+ };
+
uart0: serial at d4017000 {
compatible = "spacemit,k3-uart", "intel,xscale-uart";
reg = <0x0 0xd4017000 0x0 0x100>;
--
2.56.0
More information about the linux-riscv
mailing list