[PATCH 15/15] ARM: AT91: sama5d3: always read memory size from controller

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Jan 11 09:40:23 PST 2023


No need to hardcode sizes, sama5d3.dtsi has an "atmel,sama5d3-ddramc"
node, which we have a driver for that does dynamic memory size readout.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/arm/dts/at91-microchip-ksz9477-evb.dts | 4 ----
 arch/arm/dts/at91-sama5d3_xplained.dts      | 3 ---
 arch/arm/dts/sama5d3.dtsi                   | 3 +++
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/arch/arm/dts/at91-microchip-ksz9477-evb.dts b/arch/arm/dts/at91-microchip-ksz9477-evb.dts
index 3762361b5362..60efc77f69bd 100644
--- a/arch/arm/dts/at91-microchip-ksz9477-evb.dts
+++ b/arch/arm/dts/at91-microchip-ksz9477-evb.dts
@@ -13,10 +13,6 @@
 	};
 };
 
-&{/memory at 20000000} {
-	reg = <0x20000000 0x10000000>;
-};
-
 &reg_vcc_mmc0 {
 	status = "disabled";
 };
diff --git a/arch/arm/dts/at91-sama5d3_xplained.dts b/arch/arm/dts/at91-sama5d3_xplained.dts
index b734457214eb..1580bd29f814 100644
--- a/arch/arm/dts/at91-sama5d3_xplained.dts
+++ b/arch/arm/dts/at91-sama5d3_xplained.dts
@@ -19,6 +19,3 @@
 		};
 	};
 };
-
-/* Will be automatically read back from HW */
-/delete-node/ &{/memory at 20000000};
diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi
index 84fc1d0ed431..658292792fb7 100644
--- a/arch/arm/dts/sama5d3.dtsi
+++ b/arch/arm/dts/sama5d3.dtsi
@@ -5,3 +5,6 @@
 		mmc1 = &mmc1;
 	};
 };
+
+/* Will be automatically read back from HW */
+/delete-node/ &{/memory at 20000000};
-- 
2.30.2




More information about the barebox mailing list