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

- One coming from the board dts file: memory@

- One coming from the imx7s.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/imx7d-cl-som-imx7.dts
arch/arm/boot/dts/imx7d-colibri-emmc.dtsi
arch/arm/boot/dts/imx7d-colibri.dtsi
arch/arm/boot/dts/imx7d-nitrogen7.dts
arch/arm/boot/dts/imx7d-pico.dtsi
arch/arm/boot/dts/imx7d-sdb.dts
arch/arm/boot/dts/imx7s-colibri.dtsi
arch/arm/boot/dts/imx7s-warp.dts
arch/arm/boot/dts/imx7s.dtsi

index 8bf365d..e615674 100644 (file)
@@ -19,6 +19,7 @@
        compatible = "compulab,cl-som-imx7", "fsl,imx7d";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x10000000>; /* 256 MB - minimal configuration */
        };
 
                        MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5     0x14 /* OTG PWREN */
                >;
        };
-};
\ No newline at end of file
+};
index 04d24ee..898f4b8 100644 (file)
@@ -8,6 +8,7 @@
 
 / {
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x40000000>;
        };
 };
index d9f8fb6..e2e327f 100644 (file)
@@ -45,6 +45,7 @@
 
 / {
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };
 };
index d8aac4a..4fb7e84 100644 (file)
@@ -12,6 +12,7 @@
        compatible = "boundary,imx7d-nitrogen7", "fsl,imx7d";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x40000000>;
        };
 
index 21973eb..4846df0 100644 (file)
@@ -49,6 +49,7 @@
        compatible = "technexion,imx7d-pico", "fsl,imx7d";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x80000000>;
        };
 
index f1bafda..b1b613b 100644 (file)
@@ -15,6 +15,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x80000000>;
        };
 
index fe8344c..1fb1ec5 100644 (file)
@@ -45,6 +45,7 @@
 
 / {
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x10000000>;
        };
 };
index f7ba2c0..23431fa 100644 (file)
@@ -14,6 +14,7 @@
        compatible = "warp,imx7s-warp", "fsl,imx7s";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };
 
index aa8df7d..477901c 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;