Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx31: Fix memory node duplication

Boards based on imx31 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx31.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>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Tested-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Fabio Estevam and committed by
Shawn Guo
013d37e4 d2cf9fd3

+2 -2
+1
arch/arm/boot/dts/imx31-bug.dts
··· 17 17 compatible = "buglabs,imx31-bug", "fsl,imx31"; 18 18 19 19 memory@80000000 { 20 + device_type = "memory"; 20 21 reg = <0x80000000 0x8000000>; /* 128M */ 21 22 }; 22 23 };
+1
arch/arm/boot/dts/imx31-lite.dts
··· 18 18 }; 19 19 20 20 memory@80000000 { 21 + device_type = "memory"; 21 22 reg = <0x80000000 0x8000000>; 22 23 }; 23 24
-2
arch/arm/boot/dts/imx31.dtsi
··· 10 10 * The decompressor and also some bootloaders rely on a 11 11 * pre-existing /chosen node to be available to insert the 12 12 * command line and merge other ATAGS info. 13 - * Also for U-Boot there must be a pre-existing /memory node. 14 13 */ 15 14 chosen {}; 16 - memory { device_type = "memory"; }; 17 15 18 16 aliases { 19 17 gpio0 = &gpio1;