ARM: dts: imx6qdl: Fix memory node duplication
authorMarco Franchi <marco.franchi@nxp.com>
Wed, 5 Dec 2018 18:10:03 +0000 (16:10 -0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:03:07 +0000 (10:03 +0800)
Boards based on imx6qdl have duplicate memory nodes:
- One coming from the board device tree file: memory@
- One coming from the imx6qdl.dtsi file.

Fix the duplication by removing the memory node from
the imx6qdl.dtsi file and by adding 'device_type = "memory";'
in the board Device Tree.

Converted using the following command:
perl -p0777i -e 's/memory\@10000000 \{\n/memory\@10000000 \{\n\t\tdevice_type = \"memory\";\n/m' `find ./arch/arm/boot/dts -name "imx6*"``

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Marco Franchi <marco.franchi@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
73 files changed:
arch/arm/boot/dts/imx6dl-apf6dev.dts
arch/arm/boot/dts/imx6dl-aristainetos2_4.dts
arch/arm/boot/dts/imx6dl-aristainetos2_7.dts
arch/arm/boot/dts/imx6dl-aristainetos_4.dts
arch/arm/boot/dts/imx6dl-aristainetos_7.dts
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts
arch/arm/boot/dts/imx6dl-dfi-fs700-m60.dts
arch/arm/boot/dts/imx6dl-phytec-pfla02.dtsi
arch/arm/boot/dts/imx6dl-rex-basic.dts
arch/arm/boot/dts/imx6dl-riotboard.dts
arch/arm/boot/dts/imx6dl-ts4900.dts
arch/arm/boot/dts/imx6dl-ts7970.dts
arch/arm/boot/dts/imx6dl-wandboard-revb1.dts
arch/arm/boot/dts/imx6dl-wandboard-revd1.dts
arch/arm/boot/dts/imx6dl-wandboard.dts
arch/arm/boot/dts/imx6q-apf6dev.dts
arch/arm/boot/dts/imx6q-arm2.dts
arch/arm/boot/dts/imx6q-ba16.dtsi
arch/arm/boot/dts/imx6q-cm-fx6.dts
arch/arm/boot/dts/imx6q-dfi-fs700-m60.dts
arch/arm/boot/dts/imx6q-dhcom-som.dtsi
arch/arm/boot/dts/imx6q-display5.dtsi
arch/arm/boot/dts/imx6q-dmo-edmqmx6.dts
arch/arm/boot/dts/imx6q-evi.dts
arch/arm/boot/dts/imx6q-gk802.dts
arch/arm/boot/dts/imx6q-gw5400-a.dts
arch/arm/boot/dts/imx6q-h100.dts
arch/arm/boot/dts/imx6q-kp-tpc.dts
arch/arm/boot/dts/imx6q-marsboard.dts
arch/arm/boot/dts/imx6q-mccmon6.dts
arch/arm/boot/dts/imx6q-novena.dts
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi
arch/arm/boot/dts/imx6q-pistachio.dts
arch/arm/boot/dts/imx6q-rex-pro.dts
arch/arm/boot/dts/imx6q-sbc6x.dts
arch/arm/boot/dts/imx6q-tbs2910.dts
arch/arm/boot/dts/imx6q-ts4900.dts
arch/arm/boot/dts/imx6q-ts7970.dts
arch/arm/boot/dts/imx6q-wandboard-revb1.dts
arch/arm/boot/dts/imx6q-wandboard-revd1.dts
arch/arm/boot/dts/imx6q-wandboard.dts
arch/arm/boot/dts/imx6q-zii-rdu2.dts
arch/arm/boot/dts/imx6qdl-apalis.dtsi
arch/arm/boot/dts/imx6qdl-cubox-i.dtsi
arch/arm/boot/dts/imx6qdl-emcon.dtsi
arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
arch/arm/boot/dts/imx6qdl-gw551x.dtsi
arch/arm/boot/dts/imx6qdl-gw552x.dtsi
arch/arm/boot/dts/imx6qdl-gw553x.dtsi
arch/arm/boot/dts/imx6qdl-gw560x.dtsi
arch/arm/boot/dts/imx6qdl-gw5903.dtsi
arch/arm/boot/dts/imx6qdl-gw5904.dtsi
arch/arm/boot/dts/imx6qdl-hummingboard.dtsi
arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi
arch/arm/boot/dts/imx6qdl-icore.dtsi
arch/arm/boot/dts/imx6qdl-nit6xlite.dtsi
arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi
arch/arm/boot/dts/imx6qdl-nitrogen6_som2.dtsi
arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
arch/arm/boot/dts/imx6qdl-sabrelite.dtsi
arch/arm/boot/dts/imx6qdl-sabresd.dtsi
arch/arm/boot/dts/imx6qdl-tx6.dtsi
arch/arm/boot/dts/imx6qdl-udoo.dtsi
arch/arm/boot/dts/imx6qdl-var-dart.dtsi
arch/arm/boot/dts/imx6qdl.dtsi
arch/arm/boot/dts/imx6qp-wandboard-revd1.dts
arch/arm/boot/dts/imx6qp-zii-rdu2.dts

index 4a7f86d..6632e99 100644 (file)
@@ -55,6 +55,7 @@
        compatible = "armadeus,imx6dl-apf6dev", "armadeus,imx6dl-apf6", "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 };
index 29940ba..b16603f 100644 (file)
@@ -49,6 +49,7 @@
        compatible = "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 240f366..abb2a1b 100644 (file)
@@ -49,6 +49,7 @@
        compatible = "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index ad77336..b87a85c 100644 (file)
@@ -28,6 +28,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 64ed84e..e71ad90 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index d08e040..d5f7a17 100644 (file)
@@ -55,6 +55,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 
index 89384cb..588286a 100644 (file)
@@ -23,6 +23,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 };
index 7d98889..d7e7299 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "phytec,imx6dl-pfla02", "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 };
index 3fb7f4e..853e58d 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "rex,imx6dl-rex-basic", "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 };
index 8e51491..65c184b 100644 (file)
@@ -16,6 +16,7 @@
        compatible = "riot,imx6s-riotboard", "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index cc01a7a..3d60cc7 100644 (file)
@@ -49,6 +49,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 };
index 82435d5..5da6feb 100644 (file)
@@ -50,6 +50,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 };
index 738db4f..c2946fb 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "wand,imx6dl-wandboard", "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 };
index 51de6b4..6d1d863 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "wand,imx6dl-wandboard", "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 };
index b43454d..4a08d5a 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "wand,imx6dl-wandboard", "fsl,imx6dl";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 };
index 5e72f81..07a36bb 100644 (file)
@@ -55,6 +55,7 @@
        compatible = "armadeus,imx6q-apf6dev", "armadeus,imx6q-apf6", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 };
index 953a5b5..baadcb7 100644 (file)
@@ -19,6 +19,7 @@
        compatible = "fsl,imx6q-arm2", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index e903c48..adc9455 100644 (file)
@@ -47,6 +47,7 @@
 
 / {
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 18ae4f3..cab9e92 100644 (file)
@@ -51,6 +51,7 @@
        compatible = "compulab,cm-fx6", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index ad12d76..e13acbb 100644 (file)
@@ -23,6 +23,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 };
index bbba067..387801d 100644 (file)
@@ -19,6 +19,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 85232c7..83524bb 100644 (file)
@@ -48,6 +48,7 @@
        compatible = "lwn,display5", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index b3c6a4a..ee8c38e 100644 (file)
@@ -30,6 +30,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index fcd257b..c63f371 100644 (file)
@@ -51,6 +51,7 @@
        compatible = "uniwest,imx6q-evi", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 84d3540..ccc2487 100644 (file)
@@ -20,6 +20,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index a8f70b4..4038170 100644 (file)
@@ -61,6 +61,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 714e09e..b8feadb 100644 (file)
@@ -51,6 +51,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 
index 302d8d0..50fbf46 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "kiebackpeter,imx6q-tpc", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 };
index dd763f2..d8ccb53 100644 (file)
@@ -48,6 +48,7 @@
        compatible = "embest,imx6q-marsboard", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index b7e9f38..74d9824 100644 (file)
@@ -20,6 +20,7 @@
        compatible = "lwn,mccmon6", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index fcd824d..61347a5 100644 (file)
@@ -57,6 +57,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 
index fad858c..097f2c5 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "phytec,imx6q-pfla02", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 };
index a31e83c..5edf858 100644 (file)
@@ -57,6 +57,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index d6cae73..aa3004e 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "rex,imx6q-rex-pro", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 };
index b7aa2f0..3129f72 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "microsys,sbc6x", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 };
index 505cba7..279b15e 100644 (file)
@@ -60,6 +60,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index e655107..dce1e86 100644 (file)
@@ -49,6 +49,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 };
index c615ac4..570bd3c 100644 (file)
@@ -50,6 +50,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 };
index be85b98..f6ccbec 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "wand,imx6q-wandboard", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 };
index fcfba28..5533102 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "wand,imx6q-wandboard", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 };
index fa36fe1..0be548b 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "wand,imx6q-wandboard", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 };
index 7da6dde..0f0743d 100644 (file)
@@ -50,6 +50,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 };
index 3dc99dd..8380f1b 100644 (file)
@@ -49,6 +49,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 
index 9332a31..e3be453 100644 (file)
@@ -44,6 +44,7 @@
 / {
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 
index bfd5f37..397e205 100644 (file)
@@ -24,6 +24,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 17a7b9c..d360996 100644 (file)
@@ -45,6 +45,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 
index b804468..2ff377d 100644 (file)
@@ -60,6 +60,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 
index 629908f..68ab543 100644 (file)
@@ -60,6 +60,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index a1a6fb5..81b2fcf 100644 (file)
@@ -60,6 +60,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 4e21b38..8e46a80 100644 (file)
@@ -75,6 +75,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 
index 81dae5b..dacc2a1 100644 (file)
@@ -52,6 +52,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 
index c5d95e8..a106689 100644 (file)
@@ -81,6 +81,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 
index b5986ef..e8e36df 100644 (file)
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 3681322..9cb9a74 100644 (file)
@@ -84,6 +84,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 3c52bdb..6d21cc6 100644 (file)
@@ -94,6 +94,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 0e64016..2ffb21d 100644 (file)
@@ -43,6 +43,7 @@
 / {
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 
index c413f9c..e423133 100644 (file)
@@ -43,6 +43,7 @@
 / {
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 
index ba93026..1d1b4bd 100644 (file)
@@ -10,6 +10,7 @@
 
 / {
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index aaed37c..7814f1e 100644 (file)
@@ -10,6 +10,7 @@
 
 / {
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index 29baf25..7a85116 100644 (file)
@@ -11,6 +11,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x20000000>;
        };
 
index 39200e5..c3415aa 100644 (file)
@@ -11,6 +11,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0xF0000000>;
        };
 
index 572abd7..ed53f07 100644 (file)
@@ -11,6 +11,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 98384a6..8b0e432 100644 (file)
@@ -13,6 +13,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index ed1aafd..1b50b01 100644 (file)
@@ -16,6 +16,7 @@
        compatible = "phytec,imx6q-pfla02", "fsl,imx6q";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index a031023..1280de5 100644 (file)
@@ -12,6 +12,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 
index 654cf2c..8468216 100644 (file)
@@ -50,6 +50,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index d7389b5..173aa2b 100644 (file)
@@ -13,6 +13,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index a98fb25..c68cb90 100644 (file)
@@ -62,6 +62,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>; /* will be filled by U-Boot */
        };
 
index 40d1b0d..776bfc7 100644 (file)
@@ -32,6 +32,7 @@
        };
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 38080c1..8752a49 100644 (file)
@@ -11,6 +11,7 @@
 
 / {
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x40000000>;
        };
 
index 7fb8be1..fe17a34 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;
index bcca5ac..08d8b78 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "wand,imx6qp-wandboard", "fsl,imx6qp";
 
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0x80000000>;
        };
 };
index 8c293e9..98bf7a6 100644 (file)
@@ -50,6 +50,7 @@
 
        /* Will be filled by the bootloader */
        memory@10000000 {
+               device_type = "memory";
                reg = <0x10000000 0>;
        };
 };