]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: dts: imx51: Fix memory node duplication
authorFabio Estevam <festevam@gmail.com>
Mon, 5 Nov 2018 21:14:45 +0000 (19:14 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:19:49 +0000 (09:19 +0100)
[ Upstream commit 6a9681168b83c62abfa457c709f2f4b126bd6b92 ]

Boards based on imx51 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx51.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/imx51-apf51.dts
arch/arm/boot/dts/imx51-babbage.dts
arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi
arch/arm/boot/dts/imx51-eukrea-cpuimx51.dtsi
arch/arm/boot/dts/imx51-ts4800.dts
arch/arm/boot/dts/imx51-zii-rdu1.dts
arch/arm/boot/dts/imx51-zii-scu2-mezz.dts
arch/arm/boot/dts/imx51-zii-scu3-esb.dts
arch/arm/boot/dts/imx51.dtsi

index 79d80036f74de643f3c0e210bcb363fd239a9526..1eddf2908b3f2962d46d32245d618f243cb794ef 100644 (file)
@@ -22,6 +22,7 @@
        compatible = "armadeus,imx51-apf51", "fsl,imx51";
 
        memory@90000000 {
+               device_type = "memory";
                reg = <0x90000000 0x20000000>;
        };
 
index ba60b0cb3cc13ba08c9c414d7b8c317cc936ad7e..99191466a80852fc9e92386c34d4f9ea15337cbf 100644 (file)
@@ -15,6 +15,7 @@
        };
 
        memory@90000000 {
+               device_type = "memory";
                reg = <0x90000000 0x20000000>;
        };
 
index 5761a66e8a0d3736f9c4776690174883bdb2dd14..82d8df097ef1fbb6296640fe1631bd90c604db92 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "digi,connectcore-ccxmx51-som", "fsl,imx51";
 
        memory@90000000 {
+               device_type = "memory";
                reg = <0x90000000 0x08000000>;
        };
 };
index f8902a338e49a40b27814230d0228fd675e62649..2e3125391bc49a78e3a3be67fa567cd3c9705672 100644 (file)
@@ -23,6 +23,7 @@
        compatible = "eukrea,cpuimx51", "fsl,imx51";
 
        memory@90000000 {
+               device_type = "memory";
                reg = <0x90000000 0x10000000>; /* 256M */
        };
 };
index 39eb067904c3ded221952cc1770f397d90cd019d..4344632f794002e054c86f40121d7059347f70e0 100644 (file)
@@ -18,6 +18,7 @@
        };
 
        memory@90000000 {
+               device_type = "memory";
                reg = <0x90000000 0x10000000>;
        };
 
index 3fb66ddfe93a55ec31514dda4bf87c744d82f13e..9235fd45a824ec1b552a8a6f7aacb30b91b11330 100644 (file)
@@ -53,6 +53,7 @@
 
        /* Will be filled by the bootloader */
        memory@90000000 {
+               device_type = "memory";
                reg = <0x90000000 0>;
        };
 
index 26cf08549df401e61325ceb017fea2a7848cefa8..f5b2d768fe47f45f27f0f193f93cc1722eed6bdc 100644 (file)
@@ -18,6 +18,7 @@
 
        /* Will be filled by the bootloader */
        memory@90000000 {
+               device_type = "memory";
                reg = <0x90000000 0>;
        };
 
index e6ebac8f43e4fbfe64a18d8254ebe80d374ebf7a..ad90d66ccca6cbcdb1425bf721bf43c794412284 100644 (file)
@@ -18,6 +18,7 @@
 
        /* Will be filled by the bootloader */
        memory@90000000 {
+               device_type = "memory";
                reg = <0x90000000 0>;
        };
 
index ef2abc0978439df5a18f770e932b37de94d043e5..81f60c96a2e410f2dddce0557aa2c6229db0f8b9 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 {
                ethernet0 = &fec;