]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mpc85xx: fix dtc warnings 20990/head
authorRosen Penev <rosenp@gmail.com>
Sat, 29 Nov 2025 03:25:47 +0000 (19:25 -0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 6 Mar 2026 11:06:49 +0000 (12:06 +0100)
Even though these are disabled, dtc still warns on missing reg and
ranges.

Add them. No real difference as it's disabled anyway.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20990
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/mpc85xx/files/arch/powerpc/boot/dts/br200-wp.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t1x.dtsi
target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3710i.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts

index 81364b9682bcc1bb9c27cfb9a7b13e9a68e27d5a..f6208e3b823fd1bd41d2d3f01a146713ea5acf27 100644 (file)
                };
 
                enet0: ethernet@b0000 {
-                       status = "okay";
                        phy-connection-type = "rgmii-id";
                        nvmem-cells = <&macaddr_hwinfo_0 0>;
                        nvmem-cell-names = "mac-address";
        };
 
        pci0: pcie@ffe09000 {
+               reg = <0 0xffe09000 0 0x1000>;
+               ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
+                         0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
+
                status = "disabled";
+
+               pcie@0 {
+                       ranges = <0x2000000 0x0 0xa0000000
+                                 0x2000000 0x0 0xa0000000
+                                 0x0 0x20000000
+
+                                 0x1000000 0x0 0x0
+                                 0x1000000 0x0 0x0
+                                 0x0 0x100000>;
+               };
        };
 
        pci1: pcie@ffe0a000 {
                reg = <0x0 0xffe0a000 0x0 0x1000>;
                ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
-                                 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
+                         0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
 
                reset-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
 
index 5b494745e1c7c012290ba8856ef4b8f8eff1c3bc..7be1dc4dcd236a56629d74313bdabb95c1e005d1 100644 (file)
        };
 
        pci0: pcie@ffe09000 {
+               reg = <0 0xffe09000 0 0x1000>;
+               ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
+                         0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
+
                status = "disabled";
+
+               pcie@0 {
+                       ranges = <0x2000000 0x0 0xa0000000
+                                 0x2000000 0x0 0xa0000000
+                                 0x0 0x20000000
+
+                                 0x1000000 0x0 0x0
+                                 0x1000000 0x0 0x0
+                                 0x0 0x100000>;
+               };
+
        };
 
        pci1: pcie@ffe0a000 {
index 7ba282766e2b61bcafd688adb2c9608730e6b0b3..d97952789b8680cfe6f451cc0028eca420d69a77 100644 (file)
@@ -49,7 +49,6 @@
                        d-cache-sets = <0x80>;
                        d-cache-size = <0x8000>;
                        d-cache-block-size = <0x20>;
-                       status = "okay";
                        clock-frequency = <533333328>; /* 533.33 MHz */
                        bus-frequency = <266666664>;  /* 266.66 MHz */
                        timebase-frequency = <33333333>; /* 33.33 MHz */
                ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
 
                nor@0 {
-                       #address-cells = <1>;
-                       #size-cells = <1>;
                        compatible = "cfi-flash";
                        reg = <0x0 0x0 0x4000000>;
                        bank-width = <2>;
                        rx-stash-idx = <0x00>;
                        rx-stash-len = <0x60>;
                        bd-stash;
-                       status = "okay";
                        phy-handle = <&phy0>;
                        phy-connection-type = "rgmii-id";
                        nvmem-cells = <&macaddr_hwinfo_0 0>;
                        rx-stash-idx = <0x00>;
                        rx-stash-len = <0x60>;
                        bd-stash;
-                       status = "okay";
                        phy-handle = <&phy1>;
                        phy-connection-type = "rgmii-id";
                        nvmem-cells = <&macaddr_hwinfo_0 1>;
index ac7209bd5172810ad95c8910ef81090503e9cd5d..933601dd50e5539754d0de8774b0953b267df048 100644 (file)
        };
 
        pci0: pcie@ffe09000 {
+               reg = <0 0xffe09000 0 0x1000>;
+               ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
+                         0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
+
                status = "disabled";
+
+               pcie@0 {
+                       ranges = <0x2000000 0x0 0xa0000000
+                                 0x2000000 0x0 0xa0000000
+                                 0x0 0x20000000
+
+                                 0x1000000 0x0 0x0
+                                 0x1000000 0x0 0x0
+                                 0x0 0x100000>;
+               };
        };
 
        pci1: pcie@ffe0a000 {
                reg = <0 0xffe0a000 0 0x1000>;
                ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
                          0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
+
                pcie@0 {
                        ranges = <0x2000000 0x0 0x80000000
                                  0x2000000 0x0 0x80000000
index 598c1822fe3b12cb590f3b748853bbb02f29bd41..5bfb12c119899d271d9b0ca193b284977c8f6e16 100644 (file)
        };
 
        ifc: ifc@ffe1e000 {
+               reg = <0x0 0xffe1e000 0 0x2000>;
+
                status = "disabled";
        };
 
index ef342ff6075742bb4f360cec8ea697d3ef3abc49..9e6c458fa5bf99a53eb45f56ea3fc112a2c10ea2 100644 (file)
@@ -67,8 +67,6 @@
                ranges = <0x0 0x0 0x0 0xee000000 0x2000000>;
 
                nor@0 {
-                       #address-cells = <1>;
-                       #size-cells = <1>;
                        compatible = "cfi-flash";
                        reg = <0x0 0x0 0x2000000>;
                        bank-width = <2>;
                        i-cache-size = <0x8000>;
                        i-cache-sets = <0x80>;
                        cpu-release-addr = <0x0 0x0ffff280>;
-                       status = "okay";
                        enable-method = "spin-table";
                };
 
index 6648ff884b31521bccc1233000641598f9188cc6..fc06bbc6205a338b768abacdd972595ca2b8d3d8 100644 (file)
        };
 
        ifc: ifc@ffe1e000 {
+               reg = <0x0 0xffe1e000 0 0x2000>;
+
+               status = "disabled";
        };
 
        pci0: pcie@ffe09000 {
index 30fae7f7d6a11a963b1f517a08a312c62f07d37f..f2698e4dace6ba9d33a196439842a781fc23bb2a 100644 (file)
@@ -94,8 +94,6 @@
                ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
 
                nor@0 {
-                       #address-cells = <1>;
-                       #size-cells = <1>;
                        compatible = "cfi-flash";
                        reg = <0x0 0x0 0x4000000>;
                        bank-width = <2>;
                };
 
                enet0: ethernet@b0000 {
-                       status = "okay";
                        phy-handle = <&phy0>;
                        phy-connection-type = "rgmii-id";
                };
                };
 
                enet2: ethernet@b2000 {
-                       status = "okay";
                        phy-handle = <&phy2>;
                        phy-connection-type = "rgmii-id";
                };
                        i-cache-size = <0x8000>;
                        i-cache-sets = <0x80>;
                        cpu-release-addr = <0x0 0x0ffff280>;
-                       status = "okay";
                        enable-method = "spin-table";
                };