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

ARM: dts: imx7: Fix memory node duplication

Boards based on imx7 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx7s.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
29988e86 8721610a

+8 -2
+1
arch/arm/boot/dts/imx7d-cl-som-imx7.dts
··· 19 19 compatible = "compulab,cl-som-imx7", "fsl,imx7d"; 20 20 21 21 memory@80000000 { 22 + device_type = "memory"; 22 23 reg = <0x80000000 0x10000000>; /* 256 MB - minimal configuration */ 23 24 }; 24 25
+1
arch/arm/boot/dts/imx7d-colibri-emmc.dtsi
··· 8 8 9 9 / { 10 10 memory@80000000 { 11 + device_type = "memory"; 11 12 reg = <0x80000000 0x40000000>; 12 13 }; 13 14 };
+1
arch/arm/boot/dts/imx7d-colibri.dtsi
··· 45 45 46 46 / { 47 47 memory@80000000 { 48 + device_type = "memory"; 48 49 reg = <0x80000000 0x20000000>; 49 50 }; 50 51 };
+1
arch/arm/boot/dts/imx7d-nitrogen7.dts
··· 12 12 compatible = "boundary,imx7d-nitrogen7", "fsl,imx7d"; 13 13 14 14 memory@80000000 { 15 + device_type = "memory"; 15 16 reg = <0x80000000 0x40000000>; 16 17 }; 17 18
+1
arch/arm/boot/dts/imx7d-pico.dtsi
··· 49 49 compatible = "technexion,imx7d-pico", "fsl,imx7d"; 50 50 51 51 memory@80000000 { 52 + device_type = "memory"; 52 53 reg = <0x80000000 0x80000000>; 53 54 }; 54 55
+1
arch/arm/boot/dts/imx7d-sdb.dts
··· 15 15 }; 16 16 17 17 memory@80000000 { 18 + device_type = "memory"; 18 19 reg = <0x80000000 0x80000000>; 19 20 }; 20 21
+1
arch/arm/boot/dts/imx7s-colibri.dtsi
··· 45 45 46 46 / { 47 47 memory@80000000 { 48 + device_type = "memory"; 48 49 reg = <0x80000000 0x10000000>; 49 50 }; 50 51 };
+1
arch/arm/boot/dts/imx7s-warp.dts
··· 14 14 compatible = "warp,imx7s-warp", "fsl,imx7s"; 15 15 16 16 memory@80000000 { 17 + device_type = "memory"; 17 18 reg = <0x80000000 0x20000000>; 18 19 }; 19 20
-2
arch/arm/boot/dts/imx7s.dtsi
··· 17 17 * The decompressor and also some bootloaders rely on a 18 18 * pre-existing /chosen node to be available to insert the 19 19 * command line and merge other ATAGS info. 20 - * Also for U-Boot there must be a pre-existing /memory node. 21 20 */ 22 21 chosen {}; 23 - memory { device_type = "memory"; }; 24 22 25 23 aliases { 26 24 gpio0 = &gpio1;