OSDN Git Service

ARM: dts: imx1: Fix memory node duplication
authorFabio Estevam <festevam@gmail.com>
Mon, 26 Nov 2018 12:40:52 +0000 (10:40 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:19:55 +0000 (09:19 +0100)
[ Upstream commit 62864d5665c4fc636d3021f829b3ac00fa058e30 ]

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>
Signed-off-by: Sasha Levin <sashal@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 3edc7b5..2b6e770 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;