mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Add rockchip-timer for RK356X
@ 2026-11-03 19:23 Chris Morgan
  2026-11-03 19:23 ` [PATCH 1/2] dt-bindings: timer: rockchip: Add rk3568 compatible Chris Morgan
  2026-11-03 19:23 ` [PATCH 2/2] arm64: dts: rockchip: Add timer node for rk356x Chris Morgan
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Morgan @ 2026-11-03 19:23 UTC (permalink / raw)
  To: linux-rockchip
  Cc: linux-arm-kernel, devicetree, linux-kernel, david,
	detlev.casanova, maz, michael.riesch, diederik, shawn.lin, heiko,
	conor+dt, krzk+dt, robh, tglx, daniel.lezcano, Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

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(+)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] dt-bindings: timer: rockchip: Add rk3568 compatible
  2026-11-03 19:23 [PATCH 0/2] Add rockchip-timer for RK356X Chris Morgan
@ 2026-11-03 19:23 ` Chris Morgan
  2026-11-03 19:23 ` [PATCH 2/2] arm64: dts: rockchip: Add timer node for rk356x Chris Morgan
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Morgan @ 2026-11-03 19:23 UTC (permalink / raw)
  To: linux-rockchip
  Cc: linux-arm-kernel, devicetree, linux-kernel, david,
	detlev.casanova, maz, michael.riesch, diederik, shawn.lin, heiko,
	conor+dt, krzk+dt, robh, tglx, daniel.lezcano, Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Add compatible string for Rockchip RK3568 timer.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml b/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
index 6d0eb0014eee..b245a3051d66 100644
--- a/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
+++ b/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
@@ -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
-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: rockchip: Add timer node for rk356x
  2026-11-03 19:23 [PATCH 0/2] Add rockchip-timer for RK356X Chris Morgan
  2026-11-03 19:23 ` [PATCH 1/2] dt-bindings: timer: rockchip: Add rk3568 compatible Chris Morgan
@ 2026-11-03 19:23 ` Chris Morgan
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Morgan @ 2026-11-03 19:23 UTC (permalink / raw)
  To: linux-rockchip
  Cc: linux-arm-kernel, devicetree, linux-kernel, david,
	detlev.casanova, maz, michael.riesch, diederik, shawn.lin, heiko,
	conor+dt, krzk+dt, robh, tglx, daniel.lezcano, Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

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

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi
index 1a4562df20ee..cc3faeb9a86d 100644
--- a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi
@@ -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>;
-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-03 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 19:23 [PATCH 0/2] Add rockchip-timer for RK356X Chris Morgan
2026-11-03 19:23 ` [PATCH 1/2] dt-bindings: timer: rockchip: Add rk3568 compatible Chris Morgan
2026-11-03 19:23 ` [PATCH 2/2] arm64: dts: rockchip: Add timer node for rk356x Chris Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®