Skip to contentSkip to conversation

Add rockchip-timer for RK356X

PATCH Superseded Chris Morgan 3 participants 5 messages Nov 3 – Nov 13

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Add rockchip-timer for RK356X

From: Chris Morgan <[email protected]>

Add the rockchip-timer to the RK356x SoC. The timer for the RK356x is register compatible with the rk3288. Address range taken from BSP device tree and confirmed with rk3568 technical reference manual.

Resending since I left a few key people off, sorry about that.

Chris Morgan (2):
dt-bindings: timer: rockchip: Add rk3568 compatible
arm64: dts: rockchip: Add timer node for rk356x

 .../devicetree/bindings/timer/rockchip,rk-timer.yaml      | 1 +
 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi             | 8 ++++++++
 2 files changed, 9 insertions(+)
Signature · 1 line
2.53.0
#1 lore raw

PATCH 1/2 dt-bindings: timer: rockchip: Add rk3568 compatible

From: Chris Morgan <[email protected]>

Add compatible string for Rockchip RK3568 timer.

---
 Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml +1 -0
index 6d0eb0014eee..b245a3051d66 100644
@@ -24,6 +24,7 @@ properties:
               - rockchip,rk3228-timer
               - rockchip,rk3229-timer
               - rockchip,rk3368-timer
+              - rockchip,rk3568-timer
               - rockchip,rk3576-timer
               - rockchip,rk3588-timer
               - rockchip,px30-timer
Signature · 1 line
2.53.0
maintainer
#3 lore raw

Re: [PATCH 1/2] dt-bindings: timer: rockchip: Add rk3568 compatible

In reply to Chris Morgan

Hi Chris,

Am Dienstag, 3. November 2026, 20:23:30 Mitteleuropäische Normalzeit schrieb Chris Morgan:

Quoted 5 lines

From: Chris Morgan <[email protected]>

Add compatible string for Rockchip RK3568 timer.

can you ideally send this one separately to the clocksource people, so that is maybe is clearer that this patch should go through the clocksource driver tree?

Heiko

Quoted 17 lines
---
 Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml +1 -0
index 6d0eb0014eee..b245a3051d66 100644
@@ -24,6 +24,7 @@ properties:
               - rockchip,rk3228-timer
               - rockchip,rk3229-timer
               - rockchip,rk3368-timer
+              - rockchip,rk3568-timer
               - rockchip,rk3576-timer
               - rockchip,rk3588-timer
               - rockchip,px30-timer
#4 lore raw

PATCH 2/2 arm64: dts: rockchip: Add timer node for rk356x

In reply to Chris Morgan

From: Chris Morgan <[email protected]>

Add the timer node for the rk356x. The timer is present at the SoC level and is register compatible with the rk3288 timer.

---
 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +8 -0
index 1a4562df20ee..cc3faeb9a86d 100644
@@ -1373,6 +1373,14 @@ i2c5: i2c@fe5e0000 {
 		status = "disabled";
 	};
 
+	timer0: timer@fe5f0000 {
+		compatible = "rockchip,rk3568-timer", "rockchip,rk3288-timer";
+		reg = <0x0 0xfe5f0000 0x0 0x1000>;
+		interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru PCLK_TIMER>, <&cru CLK_TIMER0>;
+		clock-names = "pclk", "timer";
+	};
+
 	wdt: watchdog@fe600000 {
 		compatible = "rockchip,rk3568-wdt", "snps,dw-wdt";
 		reg = <0x0 0xfe600000 0x0 0x100>;
Signature · 1 line
2.53.0