]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: Refactor device trees using "&{/aliases}" syntax
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Fri, 23 Feb 2024 09:11:40 +0000 (10:11 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 1 Mar 2024 14:10:44 +0000 (09:10 -0500)
Use the common syntax to define aliases.

Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> # Verdin iMX8M Plus
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx6dl-colibri-eval-v3-u-boot.dtsi
arch/arm/dts/imx6q-apalis-eval-u-boot.dtsi
arch/arm/dts/imx7d-colibri-eval-v3-u-boot.dtsi
arch/arm/dts/imx8mm-verdin-wifi-dev-u-boot.dtsi
arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi

index 31f3a48dd9f0ffdcabb4b06f581b96a160be536e..0eea4d1862ae095d3e56688014843cde96065222 100644 (file)
@@ -5,13 +5,17 @@
 
 #include "imx6qdl-u-boot.dtsi"
 
-&{/aliases} {
-       /* U-Boot won't find PMIC otherwise */
-       i2c0 = &i2c3;
-       i2c1 = &i2c2;
-       /* SDHCI instance order: eMMC, 4-bit SD/MMC (U-Boot won't find ConfigBlock otherwise) */
-       mmc0 = &usdhc3;
-       mmc1 = &usdhc1;
+/ {
+       aliases {
+               /* U-Boot won't find PMIC otherwise */
+               i2c0 = &i2c3;
+               i2c1 = &i2c2;
+               /* SDHCI instance order: eMMC, 4-bit SD/MMC
+                * (U-Boot won't find ConfigBlock otherwise)
+                */
+               mmc0 = &usdhc3;
+               mmc1 = &usdhc1;
+       };
 };
 
 &wdog1 {
index 3d19796cb69832fc068e74c64cfcf833d02c5a9b..3c6e503d043b649a41f9706607033d16c79410f3 100644 (file)
@@ -5,18 +5,20 @@
 
 #include "imx6qdl-u-boot.dtsi"
 
-&{/aliases} {
-       /* U-Boot won't find PMIC otherwise */
-       i2c0 = &i2c1;
-       i2c1 = &i2c2;
-       i2c2 = &i2c3;
-       /*
-        * SDHCI instance order: eMMC, 8-bit SD/MMC, 4-bit SD
-        * (U-Boot won't find ConfigBlock otherwise)
-        */
-       mmc0 = &usdhc3;
-       mmc1 = &usdhc1;
-       mmc2 = &usdhc2;
+/ {
+       aliases {
+               /* U-Boot won't find PMIC otherwise */
+               i2c0 = &i2c1;
+               i2c1 = &i2c2;
+               i2c2 = &i2c3;
+               /*
+                * SDHCI instance order: eMMC, 8-bit SD/MMC, 4-bit SD
+                * (U-Boot won't find ConfigBlock otherwise)
+                */
+               mmc0 = &usdhc3;
+               mmc1 = &usdhc1;
+               mmc2 = &usdhc2;
+       };
 };
 
 &wdog1 {
index 57ca28edb70d227e737803c3b410c006e0fe11d3..b2c12a413daf1190bd85f16c64f65c87c7dce2a0 100644 (file)
@@ -5,10 +5,12 @@
 
 #include "imx7s-u-boot.dtsi"
 
-&{/aliases} {
-       /* SDHCI instance order: eMMC, SD/MMC */
-       mmc0 = &usdhc3;
-       mmc1 = &usdhc1;
+/ {
+       aliases {
+               /* SDHCI instance order: eMMC, SD/MMC */
+               mmc0 = &usdhc3;
+               mmc1 = &usdhc1;
+       };
 };
 
 &lcdif {
index 8efa4ddc734a98adf5b8db1a0899496f3314be76..515f195ab759186c4d695ccf04b2bacb76318164 100644 (file)
@@ -6,6 +6,12 @@
 #include "imx8mm-u-boot.dtsi"
 
 / {
+       aliases {
+               eeprom0 = &eeprom_module;
+               eeprom1 = &eeprom_carrier_board;
+               eeprom2 = &eeprom_display_adapter;
+       };
+
        wdt-reboot {
                compatible = "wdt-reboot";
                bootph-pre-ram;
        };
 };
 
-&{/aliases} {
-       eeprom0 = &eeprom_module;
-       eeprom1 = &eeprom_carrier_board;
-       eeprom2 = &eeprom_display_adapter;
-};
-
 &{/soc@0/bus@30800000/i2c@30a20000/pmic@25} {
        bootph-pre-ram;
 };
index 2a1aa1935a76ab48eaed0ceba59e4d9c7ce51906..67f1d45ce2691bb03bfc2d39805e50a5b376aec5 100644 (file)
@@ -6,6 +6,12 @@
 #include "imx8mp-u-boot.dtsi"
 
 / {
+       aliases {
+               eeprom0 = &eeprom_module;
+               eeprom1 = &eeprom_carrier_board;
+               eeprom2 = &eeprom_display_adapter;
+       };
+
        wdt-reboot {
                compatible = "wdt-reboot";
                bootph-pre-ram;
        };
 };
 
-&{/aliases} {
-       eeprom0 = &eeprom_module;
-       eeprom1 = &eeprom_carrier_board;
-       eeprom2 = &eeprom_display_adapter;
-};
-
 &clk {
        bootph-all;
        bootph-pre-ram;