[PATCH v1 11/20] ARM: dts: AT91: use label-relative paths for extending nodes

Ahmad Fatoum a.fatoum at pengutronix.de
Fri Feb 17 09:30:48 PST 2023


We now have fancy new syntax for having label references be
both short and trigger an error if non-existent. Let's make use of it.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/arm/dts/at91-sama5d27_som1.dtsi   |  2 +-
 arch/arm/dts/at91-sama5d27_som1_ek.dts |  3 +-
 arch/arm/dts/at91-skov-arm9cpu.dts     |  8 ++---
 arch/arm/dts/at91sam9263ek.dts         | 44 ++++++++++++--------------
 4 files changed, 26 insertions(+), 31 deletions(-)

diff --git a/arch/arm/dts/at91-sama5d27_som1.dtsi b/arch/arm/dts/at91-sama5d27_som1.dtsi
index 0d84c45f9263..357f46e3097e 100644
--- a/arch/arm/dts/at91-sama5d27_som1.dtsi
+++ b/arch/arm/dts/at91-sama5d27_som1.dtsi
@@ -7,7 +7,7 @@
 	nvmem-cell-names = "mac-address";
 };
 
-&{/ahb/apb/i2c at f8028000/at24 at 50} {
+&{i2c0/at24 at 50} {
 	#address-cells = <1>;
 	#size-cells = <1>;
 
diff --git a/arch/arm/dts/at91-sama5d27_som1_ek.dts b/arch/arm/dts/at91-sama5d27_som1_ek.dts
index 1a704b42680f..a879c17cfcf9 100644
--- a/arch/arm/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/dts/at91-sama5d27_som1_ek.dts
@@ -30,9 +30,8 @@
 	};
 };
 
+/delete-node/ &{qspi1/flash at 0};
 &qspi1 {
-	/delete-node/ flash at 0;
-
 	flash at 0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
diff --git a/arch/arm/dts/at91-skov-arm9cpu.dts b/arch/arm/dts/at91-skov-arm9cpu.dts
index 8e4fddfd3fa1..35988eff0652 100644
--- a/arch/arm/dts/at91-skov-arm9cpu.dts
+++ b/arch/arm/dts/at91-skov-arm9cpu.dts
@@ -204,13 +204,11 @@
 	};
 };
 
-&{/ahb/apb} {
-	pinctrl: pinctrl at fffff200 {
-	};
+pinctrl: &{/ahb/apb/pinctrl at fffff200} {
+};
 
-	watchdog at fffffd40 {
+&{/ahb/apb/watchdog at fffffd40} {
 		status = "okay";
-	};
 };
 
 &dbgu {
diff --git a/arch/arm/dts/at91sam9263ek.dts b/arch/arm/dts/at91sam9263ek.dts
index cce137e39422..522252d54f9b 100644
--- a/arch/arm/dts/at91sam9263ek.dts
+++ b/arch/arm/dts/at91sam9263ek.dts
@@ -9,34 +9,32 @@
 
 };
 
-&nand_controller {
-	nand at 3 {
-		/delete-node/ partitions;
+&{nand_controller/nand at 3} {
+	/delete-node/ partitions;
 
-		partitions {
-			compatible = "fixed-partitions";
-			#address-cells = <1>;
-			#size-cells = <1>;
+	partitions {
+		compatible = "fixed-partitions";
+		#address-cells = <1>;
+		#size-cells = <1>;
 
-			at91bootstrap at 0 {
-				label = "at91bootstrap";
-				reg = <0x0 0x20000>;
-			};
+		at91bootstrap at 0 {
+			label = "at91bootstrap";
+			reg = <0x0 0x20000>;
+		};
 
-			barebox at 20000 {
-				label = "barebox";
-				reg = <0x20000 0x100000>;
-			};
+		barebox at 20000 {
+			label = "barebox";
+			reg = <0x20000 0x100000>;
+		};
 
-			environment_nand: bareboxenv at 120000 {
-				label = "barebox-environment";
-				reg = <0x120000 0x20000>;
-			};
+		environment_nand: bareboxenv at 120000 {
+			label = "barebox-environment";
+			reg = <0x120000 0x20000>;
+		};
 
-			rootfs at 140000 {
-				label = "root";
-				reg = <0x140000 0x0>;
-			};
+		rootfs at 140000 {
+			label = "root";
+			reg = <0x140000 0x0>;
 		};
 	};
 };
-- 
2.30.2




More information about the barebox mailing list