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

ARM: dts: imx6sl: Fix memory node duplication

Boards based on imx6sl have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx6sl.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>

authored by

Fabio Estevam and committed by
Shawn Guo
7fa8ab65 216f35fe

+3 -2
+1
arch/arm/boot/dts/imx6sl-evk.dts
··· 17 17 }; 18 18 19 19 memory@80000000 { 20 + device_type = "memory"; 20 21 reg = <0x80000000 0x40000000>; 21 22 }; 22 23
+1
arch/arm/boot/dts/imx6sl-warp.dts
··· 55 55 compatible = "warp,imx6sl-warp", "fsl,imx6sl"; 56 56 57 57 memory@80000000 { 58 + device_type = "memory"; 58 59 reg = <0x80000000 0x20000000>; 59 60 }; 60 61
-2
arch/arm/boot/dts/imx6sl.dtsi
··· 13 13 * The decompressor and also some bootloaders rely on a 14 14 * pre-existing /chosen node to be available to insert the 15 15 * command line and merge other ATAGS info. 16 - * Also for U-Boot there must be a pre-existing /memory node. 17 16 */ 18 17 chosen {}; 19 - memory { device_type = "memory"; }; 20 18 21 19 aliases { 22 20 ethernet0 = &fec;
+1
arch/arm/boot/dts/imx6sll-evk.dts
··· 20 20 }; 21 21 22 22 memory@80000000 { 23 + device_type = "memory"; 23 24 reg = <0x80000000 0x80000000>; 24 25 }; 25 26