Skip to contentSkip to conversation

ARM: dts: npcm7xx: Move memory controller node into common devicetree

PATCH New Kun Yi 1 participant 1 message Mar 4, 2020 Device tree bindings

lore
Share & tools
lore

Kun Yi

author
#0 lore raw

PATCH 1/1 ARM: dts: npcm7xx: Move memory controller node into common devicetree

Include the EDAC node in the common devicetree piece so that downstream boards don't have to repeat the definitions to enable EDAC.

---
 arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 7 +++++++
 arch/arm/boot/dts/nuvoton-npcm730-gsj.dts     | 4 +---
 2 files changed, 8 insertions(+), 3 deletions(-)
arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi +7 -0
index 72841f54deb4..f17e60280200 100644
@@ -137,6 +137,13 @@
 			status = "disabled";
 		};
 
+		mc: memory-controller@f0824000 {
+			compatible = "nuvoton,npcm7xx-sdram-edac";
+			reg = <0xf0824000 0x1000>;
+			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
 		emc0: eth@f0825000 {
 			device_type = "network";
 			compatible = "nuvoton,npcm750-emc";
arch/arm/boot/dts/nuvoton-npcm730-gsj.dts +1 -3
index 801ed73d962c..b587df73b4cb 100644
@@ -41,9 +41,7 @@
 		};
 
 		mc: memory-controller@f0824000 {
-			compatible = "nuvoton,npcm7xx-sdram-edac";
-			reg = <0xf0824000 0x1000>;
-			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+			status = "okay";
 		};
 
 		emc0: eth@f0825000 {
Signature · 1 line
2.25.1.481.gfbce0eb801-goog