From 0c0b00422ed173820c2c7e57b160150fae70931e Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 28 Nov 2025 19:25:47 -0800 Subject: [PATCH] mpc85xx: fix dtc warnings 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 Link: https://github.com/openwrt/openwrt/pull/20990 Signed-off-by: Robert Marko --- .../files/arch/powerpc/boot/dts/br200-wp.dts | 17 +++++++++++++++-- .../arch/powerpc/boot/dts/firebox-t1x.dtsi | 15 +++++++++++++++ .../files/arch/powerpc/boot/dts/hiveap-330.dts | 5 ----- .../arch/powerpc/boot/dts/red-15w-rev1.dts | 15 +++++++++++++++ .../arch/powerpc/boot/dts/tl-wdr4900-v1.dts | 2 ++ .../files/arch/powerpc/boot/dts/ws-ap3710i.dts | 3 --- .../files/arch/powerpc/boot/dts/ws-ap3715i.dts | 3 +++ .../files/arch/powerpc/boot/dts/ws-ap3825i.dts | 5 ----- 8 files changed, 50 insertions(+), 15 deletions(-) diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/br200-wp.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/br200-wp.dts index 81364b9682..f6208e3b82 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/br200-wp.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/br200-wp.dts @@ -226,7 +226,6 @@ }; enet0: ethernet@b0000 { - status = "okay"; phy-connection-type = "rgmii-id"; nvmem-cells = <&macaddr_hwinfo_0 0>; nvmem-cell-names = "mac-address"; @@ -259,13 +258,27 @@ }; 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>; diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t1x.dtsi b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t1x.dtsi index 5b494745e1..7be1dc4dcd 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t1x.dtsi +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t1x.dtsi @@ -232,7 +232,22 @@ }; 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 { diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts index 7ba282766e..d97952789b 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts @@ -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 */ @@ -130,8 +129,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>; @@ -334,7 +331,6 @@ 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>; @@ -349,7 +345,6 @@ 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>; diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts index ac7209bd51..933601dd50 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts @@ -194,13 +194,28 @@ }; 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 diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index 598c1822fe..5bfb12c119 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -391,6 +391,8 @@ }; ifc: ifc@ffe1e000 { + reg = <0x0 0xffe1e000 0 0x2000>; + status = "disabled"; }; diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3710i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3710i.dts index ef342ff607..9e6c458fa5 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3710i.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3710i.dts @@ -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>; @@ -207,7 +205,6 @@ i-cache-size = <0x8000>; i-cache-sets = <0x80>; cpu-release-addr = <0x0 0x0ffff280>; - status = "okay"; enable-method = "spin-table"; }; diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts index 6648ff884b..fc06bbc620 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts @@ -140,6 +140,9 @@ }; ifc: ifc@ffe1e000 { + reg = <0x0 0xffe1e000 0 0x2000>; + + status = "disabled"; }; pci0: pcie@ffe09000 { diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts index 30fae7f7d6..f2698e4dac 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts @@ -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>; @@ -176,7 +174,6 @@ }; enet0: ethernet@b0000 { - status = "okay"; phy-handle = <&phy0>; phy-connection-type = "rgmii-id"; }; @@ -186,7 +183,6 @@ }; enet2: ethernet@b2000 { - status = "okay"; phy-handle = <&phy2>; phy-connection-type = "rgmii-id"; }; @@ -286,7 +282,6 @@ i-cache-size = <0x8000>; i-cache-sets = <0x80>; cpu-release-addr = <0x0 0x0ffff280>; - status = "okay"; enable-method = "spin-table"; };