Skip to contentSkip to conversation

Add rockchip-timer for RK356X

PATCH New Chris Morgan 1 participant 3 messages Nov 17

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 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.

Changes Since V1:
- Added additional missing maintainers that I forgot to send to for V1.

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 v2 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
#2 lore raw

PATCH v2 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 7e23f6983448..3c7178b013a5 100644
@@ -1389,6 +1389,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