Commit 404c0c93 authored by Marco Franchi's avatar Marco Franchi Committed by Shawn Guo

ARM: dts: imx6qdl: Fix memory node duplication

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: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarMarco Franchi <marco.franchi@nxp.com>
Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 69bf2fec
......@@ -55,6 +55,7 @@ / {
compatible = "armadeus,imx6dl-apf6dev", "armadeus,imx6dl-apf6", "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
};
......@@ -49,6 +49,7 @@ / {
compatible = "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -49,6 +49,7 @@ / {
compatible = "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -28,6 +28,7 @@ backlight {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -17,6 +17,7 @@ / {
compatible = "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -55,6 +55,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
......
......@@ -23,6 +23,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
};
......@@ -17,6 +17,7 @@ / {
compatible = "phytec,imx6dl-pfla02", "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
};
......@@ -17,6 +17,7 @@ / {
compatible = "rex,imx6dl-rex-basic", "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
};
......
......@@ -16,6 +16,7 @@ / {
compatible = "riot,imx6s-riotboard", "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -49,6 +49,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
};
......@@ -50,6 +50,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
};
......@@ -13,6 +13,7 @@ / {
compatible = "wand,imx6dl-wandboard", "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
};
......@@ -13,6 +13,7 @@ / {
compatible = "wand,imx6dl-wandboard", "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
};
......@@ -13,6 +13,7 @@ / {
compatible = "wand,imx6dl-wandboard", "fsl,imx6dl";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
};
......@@ -55,6 +55,7 @@ / {
compatible = "armadeus,imx6q-apf6dev", "armadeus,imx6q-apf6", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
};
......
......@@ -19,6 +19,7 @@ / {
compatible = "fsl,imx6q-arm2", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -47,6 +47,7 @@
/ {
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -51,6 +51,7 @@ / {
compatible = "compulab,cm-fx6", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -23,6 +23,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
};
......@@ -19,6 +19,7 @@ aliases {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -48,6 +48,7 @@ / {
compatible = "lwn,display5", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -30,6 +30,7 @@ aliases {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -51,6 +51,7 @@ / {
compatible = "uniwest,imx6q-evi", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -20,6 +20,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -61,6 +61,7 @@ led2: user3 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -51,6 +51,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
......
......@@ -13,6 +13,7 @@ / {
compatible = "kiebackpeter,imx6q-tpc", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
};
......
......@@ -48,6 +48,7 @@ / {
compatible = "embest,imx6q-marsboard", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -20,6 +20,7 @@ / {
compatible = "lwn,mccmon6", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -57,6 +57,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
......
......@@ -17,6 +17,7 @@ / {
compatible = "phytec,imx6q-pfla02", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
};
......@@ -57,6 +57,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -17,6 +17,7 @@ / {
compatible = "rex,imx6q-rex-pro", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
};
......
......@@ -13,6 +13,7 @@ / {
compatible = "microsys,sbc6x", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
};
......
......@@ -60,6 +60,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -49,6 +49,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
};
......
......@@ -50,6 +50,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
};
......
......@@ -13,6 +13,7 @@ / {
compatible = "wand,imx6q-wandboard", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
};
......
......@@ -13,6 +13,7 @@ / {
compatible = "wand,imx6q-wandboard", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
};
......
......@@ -13,6 +13,7 @@ / {
compatible = "wand,imx6q-wandboard", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
};
......
......@@ -50,6 +50,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
};
......@@ -49,6 +49,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
......
......@@ -44,6 +44,7 @@
/ {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
......
......@@ -24,6 +24,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -45,6 +45,7 @@ led1: user2 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
......
......@@ -60,6 +60,7 @@ led2: user3 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
......
......@@ -60,6 +60,7 @@ led2: user3 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -60,6 +60,7 @@ led2: user3 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -75,6 +75,7 @@ led0: user1 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
......
......@@ -52,6 +52,7 @@ led2: user3 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
......
......@@ -81,6 +81,7 @@ led1: user2 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
......
......@@ -114,6 +114,7 @@ led2: user3 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -84,6 +84,7 @@ led0: user1 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -94,6 +94,7 @@ led2: user3 {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -43,6 +43,7 @@
/ {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
......
......@@ -43,6 +43,7 @@
/ {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
......
......@@ -10,6 +10,7 @@
/ {
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -10,6 +10,7 @@
/ {
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -11,6 +11,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x20000000>;
};
......
......@@ -11,6 +11,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0xF0000000>;
};
......
......@@ -11,6 +11,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -13,6 +13,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -16,6 +16,7 @@ / {
compatible = "phytec,imx6q-pfla02", "fsl,imx6q";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -12,6 +12,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
......
......@@ -50,6 +50,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -13,6 +13,7 @@ chosen {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -62,6 +62,7 @@ aliases {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>; /* will be filled by U-Boot */
};
......
......@@ -32,6 +32,7 @@ gpio-poweroff {
};
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -11,6 +11,7 @@
/ {
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x40000000>;
};
......
......@@ -13,10 +13,8 @@ / {
* 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;
......
......@@ -13,6 +13,7 @@ / {
compatible = "wand,imx6qp-wandboard", "fsl,imx6qp";
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>;
};
};
......
......@@ -50,6 +50,7 @@ / {
/* Will be filled by the bootloader */
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0>;
};
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment