ARM: dts: imx6ul: Fix memory node duplication
authorFabio Estevam <festevam@gmail.com>
Tue, 20 Nov 2018 15:59:43 +0000 (13:59 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:19:52 +0000 (09:19 +0100)
[ Upstream commit 750d8df6e7b269b828f66631a1d39ea027afc92a ]

Boards based on imx6ul have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx6ul.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/imx6ul-14x14-evk.dtsi
arch/arm/boot/dts/imx6ul-geam.dts
arch/arm/boot/dts/imx6ul-isiot.dtsi
arch/arm/boot/dts/imx6ul-litesom.dtsi
arch/arm/boot/dts/imx6ul-opos6ul.dtsi
arch/arm/boot/dts/imx6ul-pico-hobbit.dts
arch/arm/boot/dts/imx6ul-tx6ul.dtsi
arch/arm/boot/dts/imx6ul.dtsi
arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi
arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi

index 32a0723..8180211 100644 (file)
@@ -12,6 +12,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };
 
index d81d20f..85cfad0 100644 (file)
@@ -51,6 +51,7 @@
        compatible = "engicam,imx6ul-geam", "fsl,imx6ul";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x08000000>;
        };
 
index cd99285..1cb5274 100644 (file)
@@ -46,6 +46,7 @@
 
 / {
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };
 
index 8f775f6..8d68932 100644 (file)
@@ -48,6 +48,7 @@
        compatible = "grinn,imx6ul-litesom", "fsl,imx6ul";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };
 };
index a031bee..cf7faf4 100644 (file)
@@ -49,6 +49,7 @@
 
 / {
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0>; /* will be filled by U-Boot */
        };
 
index 0c09420..797262d 100644 (file)
@@ -53,6 +53,7 @@
 
        /* Will be filled by the bootloader */
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0>;
        };
 
index 02b5ba4..bb6dbfd 100644 (file)
@@ -71,6 +71,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0>; /* will be filled by U-Boot */
        };
 
index 336cdea..50834a4 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 = &fec1;
index 10ab469..fb213be 100644 (file)
@@ -7,6 +7,7 @@
 
 / {
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x10000000>;
        };
 };
index 183193e..038d8c9 100644 (file)
@@ -7,6 +7,7 @@
 
 / {
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };