diff mbox series

[v3,07/34] ARM: dts: sama7g5: add slow rc and main rc oscillators

Message ID 20201207172848.230192-1-eugen.hristev@microchip.com
State Accepted
Commit 5e19ade9e50e1277587a5ba74ecfd92395c5e1df
Delegated to: Eugen Hristev
Headers show
Series None | expand

Commit Message

Eugen Hristev Dec. 7, 2020, 5:28 p.m. UTC
From: Claudiu Beznea <claudiu.beznea@microchip.com>

Add slow rc and main rc oscillators to dtsi.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
Changes in v3:
- adapt slow rc frequency to real value: 32 kHz


 arch/arm/dts/sama7g5.dtsi          | 12 ++++++++++++
 arch/arm/dts/sama7g5ek-u-boot.dtsi |  8 ++++++++
 2 files changed, 20 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi
index 618f3a37d5..0fc7a5e197 100644
--- a/arch/arm/dts/sama7g5.dtsi
+++ b/arch/arm/dts/sama7g5.dtsi
@@ -16,6 +16,18 @@ 
 	compatible = "microchip,sama7g5";
 
 	clocks {
+		slow_rc_osc: slow_rc_osc {
+			compatible = "fixed-clock";
+			#clock-cells = <0>;
+			clock-frequency = <32000>;
+		};
+
+		main_rc: main_rc {
+			compatible = "fixed-clock";
+			#clock-cells = <0>;
+			clock-frequency = <12000000>;
+		};
+
 		slow_xtal: slow_xtal {
 			compatible = "fixed-clock";
 			#clock-cells = <0>;
diff --git a/arch/arm/dts/sama7g5ek-u-boot.dtsi b/arch/arm/dts/sama7g5ek-u-boot.dtsi
index c0f8f94027..06af2f74ee 100644
--- a/arch/arm/dts/sama7g5ek-u-boot.dtsi
+++ b/arch/arm/dts/sama7g5ek-u-boot.dtsi
@@ -23,6 +23,14 @@ 
 	};
 };
 
+&main_rc {
+	u-boot,dm-pre-reloc;
+};
+
+&slow_rc_osc {
+	u-boot,dm-pre-reloc;
+};
+
 &uart0 {
 	u-boot,dm-pre-reloc;
 };