arm: mvebu: Remove redundant u-boot, dm-pre-reloc from all 32-bit Armada SoCs
authorPali Rohár <pali@kernel.org>
Wed, 3 Aug 2022 11:00:51 +0000 (13:00 +0200)
committerStefan Roese <sr@denx.de>
Tue, 9 Aug 2022 06:58:27 +0000 (08:58 +0200)
Replace it by including of mvebu-u-boot.dtsi file. When board does not use
-u-boot.dtsi then mvebu-u-boot.dtsi is included automatically by makefile
scripts/Makefile.lib.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
25 files changed:
arch/arm/dts/armada-370-xp.dtsi
arch/arm/dts/armada-375-db.dts
arch/arm/dts/armada-375.dtsi
arch/arm/dts/armada-385-atl-x530-u-boot.dtsi
arch/arm/dts/armada-385-db-88f6820-amc.dts
arch/arm/dts/armada-385-turris-omnia-u-boot.dtsi
arch/arm/dts/armada-388-clearfog-u-boot.dtsi
arch/arm/dts/armada-388-gp.dts
arch/arm/dts/armada-388-helios4-u-boot.dtsi
arch/arm/dts/armada-38x-controlcenterdc.dts
arch/arm/dts/armada-38x-solidrun-microsom.dtsi
arch/arm/dts/armada-38x.dtsi
arch/arm/dts/armada-xp-crs305-1g-4s-u-boot.dtsi [deleted file]
arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi [deleted file]
arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi [deleted file]
arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
arch/arm/dts/armada-xp-db-xc3-24g4xg-u-boot.dtsi
arch/arm/dts/armada-xp-gp-u-boot.dtsi [deleted file]
arch/arm/dts/armada-xp-maxbcm.dts
arch/arm/dts/armada-xp-synology-ds414-u-boot.dtsi [deleted file]
arch/arm/dts/armada-xp-synology-ds414.dts
arch/arm/dts/armada-xp-theadorable.dts
arch/arm/dts/armada-xp.dtsi

index 4cd168c..310f159 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
-                       u-boot,dm-pre-reloc;
 
                        rtc: rtc@10300 {
                                compatible = "marvell,orion-rtc";
index 343349b..d778839 100644 (file)
                                 * by default.
                                 */
                                status = "okay";
-                               u-boot,dm-pre-reloc;
 
                                spi-flash@0 {
-                                       u-boot,dm-pre-reloc;
                                        #address-cells = <1>;
                                        #size-cells = <1>;
                                        compatible = "n25q128a13", "jedec,spi-nor";
                        };
 
                        serial@12000 {
-                               u-boot,dm-pre-reloc;
                                status = "okay";
                        };
 
index fcb9245..20a8c35 100644 (file)
 
        soc {
                compatible = "marvell,armada375-mbus", "simple-bus";
-               u-boot,dm-pre-reloc;
                #address-cells = <2>;
                #size-cells = <1>;
                controller = <&mbusc>;
 
                internal-regs {
                        compatible = "simple-bus";
-                       u-boot,dm-pre-reloc;
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
index 79b694c..4a3fb2c 100644 (file)
@@ -1,17 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 
-&spi1 {
-       u-boot,dm-pre-reloc;
-
-       spi-flash@0 {
-               u-boot,dm-pre-reloc;
-       };
-};
-
-&uart0 {
-       u-boot,dm-pre-reloc;
-};
-
 &watchdog {
        u-boot,dm-pre-reloc;
 };
+
+#include "mvebu-u-boot.dtsi"
index 59a425f..1a2d79d 100644 (file)
@@ -53,7 +53,6 @@
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_pins>;
        status = "okay";
-       u-boot,dm-pre-reloc;
 };
 
 
        pinctrl-names = "default";
        pinctrl-0 = <&spi1_pins>;
        status = "okay";
-       u-boot,dm-pre-reloc;
 
        spi-flash@0 {
-               u-boot,dm-pre-reloc;
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
index ec12298..3f1e761 100644 (file)
 
 #ifdef CONFIG_ENV_IS_IN_SPI_FLASH
 &spi0 {
-       u-boot,dm-pre-reloc;
-
        flash@0 {
-               u-boot,dm-pre-reloc;
-
                partitions {
                        partition@0 {
                                reg = <0x0 CONFIG_ENV_OFFSET>;
@@ -56,6 +52,4 @@
 };
 #endif
 
-&uart0 {
-       u-boot,dm-pre-reloc;
-};
+#include "mvebu-u-boot.dtsi"
index 20f5c8f..9662929 100644 (file)
@@ -35,3 +35,5 @@
                u-boot,dm-spl;
        };
 };
+
+#include "mvebu-u-boot.dtsi"
index d59aa5f..f5345fb 100644 (file)
                                pinctrl-names = "default";
                                pinctrl-0 = <&spi0_pins>;
                                status = "okay";
-                               u-boot,dm-pre-reloc;
                                #address-cells = <1>;
                                #size-cells = <0>;
 
                                spi-flash@0 {
-                                       u-boot,dm-pre-reloc;
                                        #address-cells = <1>;
                                        #size-cells = <1>;
                                        compatible = "st,m25p128", "jedec,spi-nor";
                                pinctrl-names = "default";
                                pinctrl-0 = <&uart0_pins>;
                                status = "okay";
-                               u-boot,dm-pre-reloc;
                        };
 
                        /* GE1 CON15 */
index 1047c1a..bac4b06 100644 (file)
@@ -42,3 +42,5 @@
                u-boot,dm-spl;
        };
 };
+
+#include "mvebu-u-boot.dtsi"
index 5063a79..b5d76f8 100644 (file)
        u-boot,dm-pre-reloc;
 };
 
-&uart0 {
-       u-boot,dm-pre-reloc;
-};
-
 &uart1 {
        u-boot,dm-pre-reloc;
 };
index 9bbeafc..f6ae784 100644 (file)
@@ -96,7 +96,6 @@
        pinctrl-0 = <&uart0_pins>;
        pinctrl-names = "default";
        status = "okay";
-       u-boot,dm-pre-reloc;
 };
 
 &i2c0 {
index 3e97009..cf7ac4a 100644 (file)
@@ -35,7 +35,6 @@
 
        soc {
                compatible = "marvell,armada380-mbus", "simple-bus";
-               u-boot,dm-pre-reloc;
                #address-cells = <2>;
                #size-cells = <1>;
                controller = <&mbusc>;
 
                internal-regs {
                        compatible = "simple-bus";
-                       u-boot,dm-pre-reloc;
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
diff --git a/arch/arm/dts/armada-xp-crs305-1g-4s-u-boot.dtsi b/arch/arm/dts/armada-xp-crs305-1g-4s-u-boot.dtsi
deleted file mode 100644 (file)
index 8576a02..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-
-&uart0 {
-       u-boot,dm-pre-reloc;
-};
-
-&spi0 {
-       u-boot,dm-pre-reloc;
-
-       spi-flash@0 {
-               u-boot,dm-pre-reloc;
-       };
-};
index 1a74ecd..d09cd47 100644 (file)
@@ -19,7 +19,6 @@
 
 /dts-v1/;
 #include "armada-xp-98dx3236.dtsi"
-#include "armada-xp-crs305-1g-4s-u-boot.dtsi"
 
 / {
        model = "CRS305-1G-4S+";
diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi b/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
deleted file mode 100644 (file)
index 8576a02..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-
-&uart0 {
-       u-boot,dm-pre-reloc;
-};
-
-&spi0 {
-       u-boot,dm-pre-reloc;
-
-       spi-flash@0 {
-               u-boot,dm-pre-reloc;
-       };
-};
index e50f3ea..35b432f 100644 (file)
@@ -19,7 +19,6 @@
 
 /dts-v1/;
 #include "armada-xp-98dx3236.dtsi"
-#include "armada-xp-crs326-24g-2s-u-boot.dtsi"
 
 / {
        model = "CRS326-24G-2S+";
diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
deleted file mode 100644 (file)
index 8576a02..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-
-&uart0 {
-       u-boot,dm-pre-reloc;
-};
-
-&spi0 {
-       u-boot,dm-pre-reloc;
-
-       spi-flash@0 {
-               u-boot,dm-pre-reloc;
-       };
-};
index daff1af..63586b6 100644 (file)
@@ -19,7 +19,6 @@
 
 /dts-v1/;
 #include "armada-xp-98dx3236.dtsi"
-#include "armada-xp-crs328-4c-20s-4s-u-boot.dtsi"
 
 / {
        model = "CRS328-4C-20S-4S+";
index fdbe168..dc20643 100644 (file)
@@ -1,9 +1,5 @@
 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 
-&uart0 {
-       u-boot,dm-pre-reloc;
-};
-
 &nand_controller {
        compatible="marvell,armada370-nand-controller";
        status = "okay";
        nand-ecc-step-size = <512>;
 };
 
-&spi0 {
-       u-boot,dm-pre-reloc;
-
-       spi-flash@0 {
-               u-boot,dm-pre-reloc;
-       };
-};
+#include "mvebu-u-boot.dtsi"
diff --git a/arch/arm/dts/armada-xp-gp-u-boot.dtsi b/arch/arm/dts/armada-xp-gp-u-boot.dtsi
deleted file mode 100644 (file)
index 2422856..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-
-/ {
-       soc {
-               internal-regs {
-                       serial@12000 {
-                               u-boot,dm-pre-reloc;
-                       };
-               };
-       };
-};
-
-&spi0 {
-       u-boot,dm-pre-reloc;
-
-       spi-flash@0 {
-               u-boot,dm-pre-reloc;
-       };
-};
index d2b07f7..b0b0484 100644 (file)
                internal-regs {
                        serial@12000 {
                                status = "okay";
-                               u-boot,dm-pre-reloc;
                        };
                        serial@12100 {
                                status = "okay";
diff --git a/arch/arm/dts/armada-xp-synology-ds414-u-boot.dtsi b/arch/arm/dts/armada-xp-synology-ds414-u-boot.dtsi
deleted file mode 100644 (file)
index 22fae16..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-
-&spi0 {
-       u-boot,dm-pre-reloc;
-
-       spi-flash@0 {
-               u-boot,dm-pre-reloc;
-       };
-};
index 35909e3..fdc9b47 100644 (file)
@@ -78,7 +78,6 @@
                         */
                        serial@12000 {
                                status = "okay";
-                               u-boot,dm-pre-reloc;
                        };
 
                        /* Connected to a Microchip PIC16F883 for power control */
index a06a65a..2f6aa19 100644 (file)
@@ -88,7 +88,6 @@
                internal-regs {
                        serial@12000 {
                                status = "okay";
-                               u-boot,dm-pre-reloc;
                        };
 
                        serial@12100 {
 
 &spi0 {
        status = "okay";
-       u-boot,dm-pre-reloc;
 
        spi-flash@0 {
-               u-boot,dm-pre-reloc;
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "n25q128a13", "jedec,spi-nor";
index fb5640b..3bd72f1 100644 (file)
@@ -29,7 +29,6 @@
 
        soc {
                compatible = "marvell,armadaxp-mbus", "simple-bus";
-               u-boot,dm-pre-reloc;
 
                bootrom {
                        compatible = "marvell,bootrom";