ARM: dts: imx1: Fix memory node duplicaton
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/3 ARM: dts: imx1: Fix memory node duplicaton
Boards based on imx1 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the imx1.dtsi file.
Fix the duplication by removing the memory node from the dtsi file and by adding 'device_type = "memory";' in the board dts.
--- arch/arm/boot/dts/imx1-ads.dts | 1 + arch/arm/boot/dts/imx1-apf9328.dts | 1 + arch/arm/boot/dts/imx1.dtsi | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx1-ads.dts +1 -0
@@ -21,6 +21,7 @@ }; memory at 8000000 { + device_type = "memory"; reg = <0x08000000 0x04000000>; }; };
arch/arm/boot/dts/imx1-apf9328.dts +1 -0
@@ -21,6 +21,7 @@ }; memory at 8000000 { + device_type = "memory"; reg = <0x08000000 0x00800000>; }; };
arch/arm/boot/dts/imx1.dtsi +0 -2
@@ -15,10 +15,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 { gpio0 = &gpio1;
Signature · 1 line
2.7.4
Fabio Estevam
reviewerPATCH 2/3 ARM: dts: imx27: Fix memory node duplicaton
Boards based on imx27 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the imx27.dtsi file.
Fix the duplication by removing the memory node from the dtsi file and by adding 'device_type = "memory";' in the board dts.
--- arch/arm/boot/dts/imx27-apf27.dts | 1 + arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi | 1 + arch/arm/boot/dts/imx27-pdk.dts | 1 + arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi | 1 + arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi | 1 + arch/arm/boot/dts/imx27.dtsi | 2 -- 6 files changed, 5 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx27-apf27.dts +1 -0
@@ -20,6 +20,7 @@ compatible = "armadeus,imx27-apf27", "fsl,imx27"; memory at a0000000 { + device_type = "memory"; reg = <0xa0000000 0x04000000>; }; };
arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi +1 -0
@@ -17,6 +17,7 @@ compatible = "eukrea,cpuimx27", "fsl,imx27"; memory at a0000000 { + device_type = "memory"; reg = <0xa0000000 0x04000000>; };
arch/arm/boot/dts/imx27-pdk.dts +1 -0
@@ -10,6 +10,7 @@ compatible = "fsl,imx27-pdk", "fsl,imx27"; memory at a0000000 { + device_type = "memory"; reg = <0xa0000000 0x08000000>; };
arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi +1 -0
@@ -18,6 +18,7 @@ compatible = "phytec,imx27-pca100", "fsl,imx27"; memory at a0000000 { + device_type = "memory"; reg = <0xa0000000 0x08000000>; /* 128MB */ }; };
arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi +1 -0
@@ -17,6 +17,7 @@ compatible = "phytec,imx27-pcm038", "fsl,imx27"; memory at a0000000 { + device_type = "memory"; reg = <0xa0000000 0x08000000>; };
arch/arm/boot/dts/imx27.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 3/3 ARM: dts: imx25: Fix memory node duplicaton
In reply to Fabio EstevamBoards based on imx25 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the imx25.dtsi file.
Fix the duplication by removing the memory node from the dtsi file and by adding 'device_type = "memory";' in the board dts.
--- arch/arm/boot/dts/imx25-eukrea-cpuimx25.dtsi | 1 + arch/arm/boot/dts/imx25-karo-tx25.dts | 1 + arch/arm/boot/dts/imx25-pdk.dts | 1 + arch/arm/boot/dts/imx25.dtsi | 2 -- 4 files changed, 3 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx25-eukrea-cpuimx25.dtsi +1 -0
@@ -18,6 +18,7 @@ compatible = "eukrea,cpuimx25", "fsl,imx25"; memory at 80000000 { + device_type = "memory"; reg = <0x80000000 0x4000000>; /* 64M */ }; };
arch/arm/boot/dts/imx25-karo-tx25.dts +1 -0
@@ -37,6 +37,7 @@ }; memory at 80000000 { + device_type = "memory"; reg = <0x80000000 0x02000000 0x90000000 0x02000000>; }; };
arch/arm/boot/dts/imx25-pdk.dts +1 -0
@@ -12,6 +12,7 @@ compatible = "fsl,imx25-pdk", "fsl,imx25"; memory at 80000000 { + device_type = "memory"; reg = <0x80000000 0x4000000>; };
arch/arm/boot/dts/imx25.dtsi +0 -2
@@ -12,10 +12,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
PATCH 1/3 ARM: dts: imx1: Fix memory node duplicaton
In reply to Fabio EstevamHi Fabio,
Quoted 22 lines · Fabio Estevam
Boards based on imx1 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the
imx1.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]>--- arch/arm/boot/dts/imx1-ads.dts | 1 + arch/arm/boot/dts/imx1-apf9328.dts | 1 + arch/arm/boot/dts/imx1.dtsi | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx1-ads.dts +0
-0
arch/arm/boot/dts/imx1-ads.dts line 25
Quoted 5 lines
arch/arm/boot/dts/imx1-ads.dts +1
-0@@ -21,6 +21,7 @@ }; memory at 8000000 { + device_type = "memory"; reg = <0x08000000 0x04000000>;
there is an unwanted space symbol before 'device_type'.
--
Best wishes,
Vladimir
PATCH 1/3 ARM: dts: imx1: Fix memory node duplicaton
Quoted 27 lines · Vladimir Zapolskiy
Hi Fabio,
Quoted 24 lines · Fabio Estevam
Boards based on imx1 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the
imx1.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]>--- arch/arm/boot/dts/imx1-ads.dts | 1 + arch/arm/boot/dts/imx1-apf9328.dts | 1 + arch/arm/boot/dts/imx1.dtsi | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx1-ads.dts +0
-0@@ -21,6 +21,7 @@ };
Quoted 5 lines
arch/arm/boot/dts/imx1-ads.dts line 25
Quoted 3 lines
arch/arm/boot/dts/imx1-ads.dts +1
-0memory at 8000000 { + device_type = "memory"; reg = <0x08000000 0x04000000>;there is an unwanted space symbol before '
device_type'.
I fixed it up and applied the series.
Shawn