[PATCH v2 10/34] ARM: dts: sama7g5: add PMC bindings

Eugen Hristev eugen.hristev at microchip.com
Sat Dec 5 11:02:52 CET 2020


From: Claudiu Beznea <claudiu.beznea at microchip.com>

Add DT bindings for PMC driver.

Signed-off-by: Claudiu Beznea <claudiu.beznea at microchip.com>
---
 arch/arm/dts/sama7g5.dtsi          | 9 +++++++++
 arch/arm/dts/sama7g5ek-u-boot.dtsi | 4 ++++
 2 files changed, 13 insertions(+)

diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi
index 9d390db5ff..28faa412dd 100644
--- a/arch/arm/dts/sama7g5.dtsi
+++ b/arch/arm/dts/sama7g5.dtsi
@@ -55,6 +55,15 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
+			pmc: pmc at e0018000 {
+				compatible = "microchip,sama7g5-pmc";
+				reg = <0xe0018000 0x200>;
+				#clock-cells = <2>;
+				clocks = <&clk32 1>, <&clk32 0>, <&main_xtal>, <&main_rc>;
+				clock-names = "td_slck", "md_slck", "main_xtal", "main_rc";
+				status = "okay";
+			};
+
 			clk32: sckc at e001d050 {
 				compatible = "microchip,sam9x60-sckc";
 				reg = <0xe001d050 0x4>;
diff --git a/arch/arm/dts/sama7g5ek-u-boot.dtsi b/arch/arm/dts/sama7g5ek-u-boot.dtsi
index d10448e031..428b98c303 100644
--- a/arch/arm/dts/sama7g5ek-u-boot.dtsi
+++ b/arch/arm/dts/sama7g5ek-u-boot.dtsi
@@ -31,6 +31,10 @@
 	u-boot,dm-pre-reloc;
 };
 
+&pmc {
+	u-boot,dm-pre-reloc;
+};
+
 &slow_rc_osc {
 	u-boot,dm-pre-reloc;
 };
-- 
2.25.1



More information about the U-Boot mailing list