diff mbox series

[U-Boot,2/2] ARM: dts: at91: sama5: Add the sfr node

Message ID 20170905103008.3099-3-wenyou.yang@microchip.com
State Accepted
Commit 56246d1e87050bf22198e95c4526331a94c8a520
Delegated to: Tom Rini
Headers show
Series clk: at91: utmi: Fix to set the main clock | expand

Commit Message

Wenyou Yang Sept. 5, 2017, 10:30 a.m. UTC
For sama5d2, add the sfr node with syscon support.

In order to access the SFR_UTMICKTRIM register for the utmi clock
driver, add the phandle property for the utmi node to point to the
sfr node.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
---

 arch/arm/dts/sama5d2.dtsi | 6 ++++++
 arch/arm/dts/sama5d3.dtsi | 2 ++
 2 files changed, 8 insertions(+)

Comments

Tom Rini Sept. 15, 2017, 12:47 a.m. UTC | #1
On Tue, Sep 05, 2017 at 06:30:08PM +0800, Wenyou Yang wrote:

> For sama5d2, add the sfr node with syscon support.
> 
> In order to access the SFR_UTMICKTRIM register for the utmi clock
> driver, add the phandle property for the utmi node to point to the
> sfr node.
> 
> Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi
index d8a65145d6..4233ef8c18 100644
--- a/arch/arm/dts/sama5d2.dtsi
+++ b/arch/arm/dts/sama5d2.dtsi
@@ -122,6 +122,7 @@ 
 					compatible = "atmel,at91sam9x5-clk-utmi";
 					#clock-cells = <0>;
 					clocks = <&main>;
+					regmap-sfr = <&sfr>;
 					u-boot,dm-pre-reloc;
 				};
 
@@ -660,6 +661,11 @@ 
 				status = "disabled";
 			};
 
+			sfr: sfr@f8030000 {
+				compatible = "atmel,sama5d2-sfr", "syscon";
+				reg = <0xf8030000 0x98>;
+			};
+
 			sckc@f8048050 {
 				compatible = "atmel,at91sam9x5-sckc";
 				reg = <0xf8048050 0x4>;
diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi
index 84ee089202..ee0e14e516 100644
--- a/arch/arm/dts/sama5d3.dtsi
+++ b/arch/arm/dts/sama5d3.dtsi
@@ -998,6 +998,8 @@ 
 					interrupt-parent = <&pmc>;
 					interrupts = <AT91_PMC_LOCKU>;
 					clocks = <&main>;
+					regmap-sfr = <&sfr>;
+					u-boot,dm-pre-reloc;
 				};
 
 				mck: masterck {