ARM: dts: vf: Fix memory node duplication
authorFabio Estevam <festevam@gmail.com>
Sat, 1 Dec 2018 00:44:52 +0000 (22:44 -0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:03:04 +0000 (10:03 +0800)
Boards based on vf500/vf600 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the vf500.dtsi/vf610m4.dtsi files.

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: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/vf500-colibri.dtsi
arch/arm/boot/dts/vf500.dtsi
arch/arm/boot/dts/vf610-bk4.dts
arch/arm/boot/dts/vf610-colibri.dtsi
arch/arm/boot/dts/vf610-cosmic.dts
arch/arm/boot/dts/vf610-twr.dts
arch/arm/boot/dts/vf610-zii-cfu1.dts
arch/arm/boot/dts/vf610-zii-dev.dtsi
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts
arch/arm/boot/dts/vf610m4-colibri.dts
arch/arm/boot/dts/vf610m4.dtsi

index 2e7e3ce..237b024 100644 (file)
@@ -47,6 +47,7 @@
        compatible = "toradex,vf610-colibri_vf50", "fsl,vf500";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x8000000>;
        };
 
index 76a0949..b0ec475 100644 (file)
@@ -10,7 +10,6 @@
        #size-cells = <1>;
        chosen { };
        aliases { };
-       memory { device_type = "memory"; };
 
        cpus {
                #address-cells = <1>;
index cab9571..689c893 100644 (file)
@@ -16,6 +16,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x8000000>;
        };
 
index aeaf99f..05c9a39 100644 (file)
@@ -47,6 +47,7 @@
        compatible = "toradex,vf610-colibri_vf61", "fsl,vf610";
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x10000000>;
        };
 };
index a3014e8..ea1b996 100644 (file)
@@ -20,6 +20,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x10000000>;
        };
 
index 59fceea..dbb5ffc 100644 (file)
@@ -14,6 +14,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x8000000>;
        };
 
index b76c3d0..7cdcc5f 100644 (file)
@@ -16,6 +16,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };
 
index 5ae5abf..19eb4a8 100644 (file)
@@ -50,6 +50,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };
 
index fe35766..757af56 100644 (file)
@@ -24,6 +24,7 @@
        };
 
        memory@80000000 {
+               device_type = "memory";
                reg = <0x80000000 0x20000000>;
        };
 
index 41ec66a..607c602 100644 (file)
@@ -55,6 +55,7 @@
        };
 
        memory@8c000000 {
+               device_type = "memory";
                reg = <0x8c000000 0x3000000>;
        };
 };
index 8293276..76bbfd5 100644 (file)
@@ -50,7 +50,6 @@
        #size-cells = <1>;
        chosen { };
        aliases { };
-       memory { device_type = "memory"; };
 };
 
 &mscm_ir {