ARM: dts: imx51: Fix memory node duplicaton
Subsystems (2)
Fabio Estevam
reviewerPATCH v2 1/2 ARM: dts: imx51: Fix memory node duplicaton
Boards based on imx51 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the imx51.dtsi file.
Fix the duplication by removing the memory node from the dtsi file and by adding 'device_type = "memory";' in the board dts.
---
Changes since v1:
- None
arch/arm/boot/dts/imx51-apf51.dts | 1 + arch/arm/boot/dts/imx51-babbage.dts | 1 + arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi | 1 + arch/arm/boot/dts/imx51-eukrea-cpuimx51.dtsi | 1 + arch/arm/boot/dts/imx51-ts4800.dts | 1 + arch/arm/boot/dts/imx51-zii-rdu1.dts | 1 + arch/arm/boot/dts/imx51-zii-scu2-mezz.dts | 1 + arch/arm/boot/dts/imx51-zii-scu3-esb.dts | 1 + arch/arm/boot/dts/imx51.dtsi | 2 -- 9 files changed, 8 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx51-apf51.dts +1 -0
@@ -22,6 +22,7 @@ compatible = "armadeus,imx51-apf51", "fsl,imx51"; memory at 90000000 { + device_type = "memory"; reg = <0x90000000 0x20000000>; };
arch/arm/boot/dts/imx51-babbage.dts +1 -0
@@ -15,6 +15,7 @@ }; memory at 90000000 { + device_type = "memory"; reg = <0x90000000 0x20000000>; };
arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi +1 -0
@@ -17,6 +17,7 @@ compatible = "digi,connectcore-ccxmx51-som", "fsl,imx51"; memory at 90000000 { + device_type = "memory"; reg = <0x90000000 0x08000000>; }; };
arch/arm/boot/dts/imx51-eukrea-cpuimx51.dtsi +1 -0
@@ -23,6 +23,7 @@ compatible = "eukrea,cpuimx51", "fsl,imx51"; memory at 90000000 { + device_type = "memory"; reg = <0x90000000 0x10000000>; /* 256M */ }; };
arch/arm/boot/dts/imx51-ts4800.dts +1 -0
@@ -18,6 +18,7 @@ }; memory at 90000000 { + device_type = "memory"; reg = <0x90000000 0x10000000>; };
arch/arm/boot/dts/imx51-zii-rdu1.dts +1 -0
@@ -53,6 +53,7 @@ /* Will be filled by the bootloader */ memory at 90000000 { + device_type = "memory"; reg = <0x90000000 0>; };
arch/arm/boot/dts/imx51-zii-scu2-mezz.dts +1 -0
@@ -18,6 +18,7 @@ /* Will be filled by the bootloader */ memory at 90000000 { + device_type = "memory"; reg = <0x90000000 0>; };
arch/arm/boot/dts/imx51-zii-scu3-esb.dts +1 -0
@@ -18,6 +18,7 @@ /* Will be filled by the bootloader */ memory at 90000000 { + device_type = "memory"; reg = <0x90000000 0>; };
arch/arm/boot/dts/imx51.dtsi +0 -2
@@ -16,10 +16,8 @@ * The decompressor and also some bootloaders rely on a * pre-existing /chosen node to be available to insert the * command line and merge other ATAGS info. - * Also for U-Boot there must be a pre-existing /memory node. */ chosen {}; - memory { device_type = "memory"; }; aliases { ethernet0 = &fec;
Signature · 1 line
2.7.4
Fabio Estevam
reviewerPATCH v2 2/2 ARM: dts: imx53: Fix memory node duplicaton
Boards based on imx53 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the imx53.dtsi file.
Fix the duplication by removing the memory node from the dtsi file and by adding 'device_type = "memory";' in the board dts.
---
Changes since v1:
- Also change imx53-ard.dts
arch/arm/boot/dts/imx53-ard.dts | 1 + arch/arm/boot/dts/imx53-cx9020.dts | 1 + arch/arm/boot/dts/imx53-m53.dtsi | 1 + arch/arm/boot/dts/imx53-qsb-common.dtsi | 1 + arch/arm/boot/dts/imx53-smd.dts | 1 + arch/arm/boot/dts/imx53-tqma53.dtsi | 1 + arch/arm/boot/dts/imx53-tx53.dtsi | 1 + arch/arm/boot/dts/imx53-usbarmory.dts | 1 + arch/arm/boot/dts/imx53.dtsi | 2 -- 9 files changed, 8 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx53-ard.dts +1 -0
@@ -19,6 +19,7 @@ compatible = "fsl,imx53-ard", "fsl,imx53"; memory at 70000000 { + device_type = "memory"; reg = <0x70000000 0x40000000>; };
arch/arm/boot/dts/imx53-cx9020.dts +1 -0
@@ -22,6 +22,7 @@ }; memory at 70000000 { + device_type = "memory"; reg = <0x70000000 0x20000000>, <0xb0000000 0x20000000>; };
arch/arm/boot/dts/imx53-m53.dtsi +1 -0
@@ -16,6 +16,7 @@ compatible = "aries,imx53-m53", "denx,imx53-m53", "fsl,imx53"; memory at 70000000 { + device_type = "memory"; reg = <0x70000000 0x20000000>, <0xb0000000 0x20000000>; };
arch/arm/boot/dts/imx53-qsb-common.dtsi +1 -0
@@ -11,6 +11,7 @@ }; memory at 70000000 { + device_type = "memory"; reg = <0x70000000 0x20000000>, <0xb0000000 0x20000000>; };
arch/arm/boot/dts/imx53-smd.dts +1 -0
@@ -12,6 +12,7 @@ compatible = "fsl,imx53-smd", "fsl,imx53"; memory at 70000000 { + device_type = "memory"; reg = <0x70000000 0x40000000>; };
arch/arm/boot/dts/imx53-tqma53.dtsi +1 -0
@@ -17,6 +17,7 @@ compatible = "tq,tqma53", "fsl,imx53"; memory at 70000000 { + device_type = "memory"; reg = <0x70000000 0x40000000>; /* Up to 1GiB */ };
arch/arm/boot/dts/imx53-tx53.dtsi +1 -0
@@ -51,6 +51,7 @@ /* Will be filled by the bootloader */ memory at 70000000 { + device_type = "memory"; reg = <0x70000000 0>; };
arch/arm/boot/dts/imx53-usbarmory.dts +1 -0
@@ -58,6 +58,7 @@ }; memory at 70000000 { + device_type = "memory"; reg = <0x70000000 0x20000000>; };
arch/arm/boot/dts/imx53.dtsi +0 -2
@@ -23,10 +23,8 @@ * The decompressor and also some bootloaders rely on a * pre-existing /chosen node to be available to insert the * command line and merge other ATAGS info. - * Also for U-Boot there must be a pre-existing /memory node. */ chosen {}; - memory { device_type = "memory"; }; aliases { ethernet0 = &fec;
Signature · 1 line
2.7.4
Shawn Guo
AppliedPATCH v2 1/2 ARM: dts: imx51: Fix memory node duplicaton
In reply to Fabio EstevamQuoted 11 lines · Fabio Estevam
Boards based on imx51 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the
imx51.dtsifile.Fix the duplication by removing the memory node from the dtsi file and by adding '
device_type= "memory";' in the board dts.Reported-by Rob Herring <[email protected]>Signed-off-by Fabio Estevam <[email protected]>
Applied both, thanks.