ARM: dts: imx31: Fix memory node duplication
authorFabio Estevam <festevam@gmail.com>
Tue, 6 Nov 2018 15:40:45 +0000 (13:40 -0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:02:11 +0000 (10:02 +0800)
Boards based on imx31 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx31.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>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Tested-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx31-bug.dts
arch/arm/boot/dts/imx31-lite.dts
arch/arm/boot/dts/imx31.dtsi

index 6ee4ff8e4e8f0f470a77a3878c4eac392efebbe6..9eb960cc02cc514f8abccaf579280fc18fe9694a 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "buglabs,imx31-bug", "fsl,imx31";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x8000000>; /* 128M */
        };
 };
index db52ddccabc3338a87490e4c02d21bb2a1d8e01e..d17abdfb6330c1f6ea919f5d224c782e9df8267e 100644 (file)
@@ -18,6 +18,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x8000000>;
        };
 
index af7afccf5f2fbaf9dae3ee049c3773a37216663b..d7f6fb764997aff54cc833d77eb28111e820bd7e 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;