Thread (13 messages) 13 messages, 4 authors, 2021-12-02
STALE1640d
Revisions (3)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]

[PATCH 5/5] ARM: dts: mstar: Switch to compatible "mstar, ssd20xd-timer" on ssd20xd

From: Romain Perier <romain.perier@gmail.com>
Date: 2021-11-26 20:25:21
Also in: linux-devicetree, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

This defines the real oscillators as input of timer1 and timer2 and
switch to "mstar,ssd20xd-timer".

Signed-off-by: Romain Perier <romain.perier@gmail.com>
---
 .../arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi b/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi
index 6f067da61ba3..6ff1f02e00a0 100644
--- a/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi
+++ b/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi
@@ -6,6 +6,14 @@
 
 #include "mstar-infinity2m.dtsi"
 
+/ {
+	xtal_timer: timer_xtal {
+		#clock-cells = <0>;
+		compatible = "fixed-clock";
+		clock-frequency = <432000000>;
+	};
+};
+
 &gpio {
 	compatible = "sstar,ssd20xd-gpio";
 	status = "okay";
@@ -15,3 +23,13 @@ &smpctrl {
 	compatible = "sstar,ssd201-smpctrl", "mstar,smpctrl";
 	status = "okay";
 };
+
+&timer1 {
+	compatible = "mstar,ssd20xd-timer";
+	clocks = <&xtal_timer>;
+};
+
+&timer2 {
+	compatible = "mstar,ssd20xd-timer";
+	clocks = <&xtal_timer>;
+};
-- 
2.33.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help