ARM: dts: imx23: Fix memory node duplicaton
Subsystems (3)
Fabio Estevam
reviewerPATCH 1/2 ARM: dts: imx23: Fix memory node duplicaton
Boards based on imx23 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the imx23.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/imx23-evk.dts | 1 + arch/arm/boot/dts/imx23-olinuxino.dts | 1 + arch/arm/boot/dts/imx23-sansa.dts | 1 + arch/arm/boot/dts/imx23-stmp378x_devb.dts | 1 + arch/arm/boot/dts/imx23-xfi3.dts | 1 + arch/arm/boot/dts/imx23.dtsi | 2 -- 6 files changed, 5 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx23-evk.dts +1 -0
@@ -10,6 +10,7 @@ compatible = "fsl,imx23-evk", "fsl,imx23"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx23-olinuxino.dts +1 -0
@@ -20,6 +20,7 @@ compatible = "olimex,imx23-olinuxino", "fsl,imx23"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx23-sansa.dts +1 -0
@@ -50,6 +50,7 @@ compatible = "sandisk,sansa_fuze_plus", "fsl,imx23"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx23-stmp378x_devb.dts +1 -0
@@ -17,6 +17,7 @@ compatible = "fsl,stmp378x-devb", "fsl,imx23"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx23-xfi3.dts +1 -0
@@ -49,6 +49,7 @@ compatible = "creative,x-fi3", "fsl,imx23"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx23.dtsi +0 -2
@@ -13,10 +13,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 = &gpio0;
Signature · 1 line
2.7.4
Fabio Estevam
reviewerPATCH 2/2 ARM: dts: imx28: Fix memory node duplicaton
Boards based on imx28 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the imx28.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/imx28-apf28.dts | 1 + arch/arm/boot/dts/imx28-apx4devkit.dts | 1 + arch/arm/boot/dts/imx28-cfa10036.dts | 1 + arch/arm/boot/dts/imx28-duckbill-2-485.dts | 1 + arch/arm/boot/dts/imx28-duckbill-2-enocean.dts | 1 + arch/arm/boot/dts/imx28-duckbill-2-spi.dts | 1 + arch/arm/boot/dts/imx28-duckbill-2.dts | 1 + arch/arm/boot/dts/imx28-duckbill.dts | 1 + arch/arm/boot/dts/imx28-eukrea-mbmx283lc.dts | 1 + arch/arm/boot/dts/imx28-eukrea-mbmx287lc.dts | 1 + arch/arm/boot/dts/imx28-evk.dts | 1 + arch/arm/boot/dts/imx28-m28.dtsi | 1 + arch/arm/boot/dts/imx28-m28cu3.dts | 1 + arch/arm/boot/dts/imx28-m28evk.dts | 1 + arch/arm/boot/dts/imx28-sps1.dts | 1 + arch/arm/boot/dts/imx28-ts4600.dts | 1 + arch/arm/boot/dts/imx28-tx28.dts | 1 + arch/arm/boot/dts/imx28.dtsi | 2 -- 18 files changed, 17 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx28-apf28.dts +1 -0
@@ -17,6 +17,7 @@ compatible = "armadeus,imx28-apf28", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-apx4devkit.dts +1 -0
@@ -7,6 +7,7 @@ compatible = "bluegiga,apx4devkit", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx28-cfa10036.dts +1 -0
@@ -17,6 +17,7 @@ compatible = "crystalfontz,cfa10036", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-duckbill-2-485.dts +1 -0
@@ -20,6 +20,7 @@ compatible = "i2se,duckbill-2-485", "i2se,duckbill-2", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-duckbill-2-enocean.dts +1 -0
@@ -21,6 +21,7 @@ compatible = "i2se,duckbill-2-enocean", "i2se,duckbill-2", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-duckbill-2-spi.dts +1 -0
@@ -24,6 +24,7 @@ }; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-duckbill-2.dts +1 -0
@@ -20,6 +20,7 @@ compatible = "i2se,duckbill-2", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-duckbill.dts +1 -0
@@ -19,6 +19,7 @@ compatible = "i2se,duckbill", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-eukrea-mbmx283lc.dts +1 -0
@@ -24,6 +24,7 @@ compatible = "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; }; };
arch/arm/boot/dts/imx28-eukrea-mbmx287lc.dts +1 -0
@@ -23,6 +23,7 @@ compatible = "eukrea,mbmx287lc", "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; }; };
arch/arm/boot/dts/imx28-evk.dts +1 -0
@@ -10,6 +10,7 @@ compatible = "fsl,imx28-evk", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-m28.dtsi +1 -0
@@ -16,6 +16,7 @@ compatible = "aries,m28", "denx,m28", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-m28cu3.dts +1 -0
@@ -17,6 +17,7 @@ compatible = "msr,m28cu3", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-m28evk.dts +1 -0
@@ -1,4 +1,5 @@ /* + * Copyright (C) 2012 Marek Vasut <[email protected]> * * The code contained herein is licensed under the GNU General Public
arch/arm/boot/dts/imx28-sps1.dts +1 -0
@@ -17,6 +17,7 @@ compatible = "schulercontrol,imx28-sps1", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-ts4600.dts +1 -0
@@ -20,6 +20,7 @@ compatible = "technologic,imx28-ts4600", "fsl,imx28"; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x10000000>; /* 256MB */ };
arch/arm/boot/dts/imx28-tx28.dts +1 -0
@@ -66,6 +66,7 @@ }; memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0>; /* will be filled in by U-Boot */ };
arch/arm/boot/dts/imx28.dtsi +0 -2
@@ -14,10 +14,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 = &mac0;
Signature · 1 line
2.7.4
Shawn Guo
AppliedPATCH 1/2 ARM: dts: imx23: Fix memory node duplicaton
In reply to Fabio EstevamQuoted 11 lines · Fabio Estevam
Boards based on imx23 have duplicate memory nodes:
- One coming from the board dts file: memory@
- One coming from the
imx23.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, thanks.