ARM: dts: imx1: Fix memory node duplication
authorFabio Estevam <festevam@gmail.com>
Mon, 26 Nov 2018 12:40:52 +0000 (10:40 -0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:02:51 +0000 (10:02 +0800)
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.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx1-ads.dts
arch/arm/boot/dts/imx1-apf9328.dts
arch/arm/boot/dts/imx1.dtsi

index a1d81ba..119b19b 100644 (file)
@@ -21,6 +21,7 @@
        };
 
        memory@8000000 {
+               device_type = "memory";
                reg = <0x08000000 0x04000000>;
        };
 };
index 11515c0..ee4b1b1 100644 (file)
@@ -21,6 +21,7 @@
        };
 
        memory@8000000 {
+               device_type = "memory";
                reg = <0x08000000 0x00800000>;
        };
 };
index b00ece1..b30448c 100644 (file)
         * 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;