summaryrefslogtreecommitdiffstats
path: root/arch/arm/dts/imx6ul-litesom.dtsi
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-06-18 11:10:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-06-23 09:56:43 +0200
commit7bbcfc85aa5d93f5729673d5c745fb753f39a78f (patch)
tree08e39eaab23cffbe2bcc9f0d7a091f6398942036 /arch/arm/dts/imx6ul-litesom.dtsi
parent414ba34b6cdf3872b511a7735b971d6664172b83 (diff)
downloadbarebox-7bbcfc85aa5d93f5729673d5c745fb753f39a78f.tar.gz
barebox-7bbcfc85aa5d93f5729673d5c745fb753f39a78f.tar.xz
ARM: dts: reference nodes to extend by phandles instead
Many device trees upstream have moved to memory@BASE_ADDRESS for the memory node instead of a unit-name-less memory node. This has resulted in breakage[1] in barebox, because some device trees feature an upstream memory size that's not available in all variants and the barebox device tree must override it, not create a second correct node next to the broken one and risk of_add_memory allocating banks with bogus sizes. To avoid this happening in future, to memory or to other nodes, extension of nodes should happen via phandles throughout, because a phandle is assumed to be more stable and if one is removed a compile error results instead of creating a new node somewhere. For nodes lacking a phandle, we can use the &{/path} syntax to declare an anonymous phandle that will fail to compile when the upstream path changes. This is better than having devices fail to boot at runtime. [1]: 0d26ce1c11a1 ("ARM: Phytec phyFLEX i.MX6: delete wrong memory node") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/dts/imx6ul-litesom.dtsi')
-rw-r--r--arch/arm/dts/imx6ul-litesom.dtsi4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/dts/imx6ul-litesom.dtsi b/arch/arm/dts/imx6ul-litesom.dtsi
index 8b73bfdd6f..3776d160ca 100644
--- a/arch/arm/dts/imx6ul-litesom.dtsi
+++ b/arch/arm/dts/imx6ul-litesom.dtsi
@@ -3,6 +3,4 @@
* to dynamic memory size detection based on DDR controller settings
*/
-/ {
- /delete-node/ memory@80000000;
-};
+/delete-node/ &{/memory@80000000};