summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2023-10-13 13:25:33 +0200
committerRafał Miłecki <rafal@milecki.pl>2023-10-24 08:26:24 +0200
commita912ee74d6ca08020933dcdb9ce791e74244c25b (patch)
treeda4123847cd15b5b030e26200ef9bf4e8e9ef88f /target/linux
parenta67af19bc84e98588c307af9b08686bde9dd38d5 (diff)
downloadopenwrt-a912ee74d6ca08020933dcdb9ce791e74244c25b.tar.gz
openwrt-a912ee74d6ca08020933dcdb9ce791e74244c25b.tar.bz2
openwrt-a912ee74d6ca08020933dcdb9ce791e74244c25b.zip
bcm53xx: disable unused switch ports in downstream patch
This makes Linux use correct switch ports again. Fixes: a4792d79e899 ("bcm53xx: backport DT changes from v6.5") Fixes: https://github.com/openwrt/openwrt/issues/13548 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/bcm53xx/patches-5.15/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch160
-rw-r--r--target/linux/bcm53xx/patches-6.1/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch160
2 files changed, 288 insertions, 32 deletions
diff --git a/target/linux/bcm53xx/patches-5.15/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch b/target/linux/bcm53xx/patches-5.15/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
index 0efb284039..ed75623460 100644
--- a/target/linux/bcm53xx/patches-5.15/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
+++ b/target/linux/bcm53xx/patches-5.15/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
@@ -10,7 +10,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
+++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
-@@ -92,3 +92,33 @@
+@@ -92,3 +92,41 @@
&usb3_phy {
status = "okay";
};
@@ -42,11 +42,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
+++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
-@@ -83,3 +83,33 @@
+@@ -83,3 +83,41 @@
&usb3_phy {
status = "okay";
};
@@ -78,11 +86,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
+++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
-@@ -149,3 +149,33 @@
+@@ -149,3 +149,41 @@
&usb3_phy {
status = "okay";
};
@@ -114,11 +130,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
+++ b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
-@@ -46,3 +46,33 @@
+@@ -46,3 +46,41 @@
&usb3_phy {
status = "okay";
};
@@ -150,11 +174,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-linksys-ea6500-v2.dts
+++ b/arch/arm/boot/dts/bcm4708-linksys-ea6500-v2.dts
-@@ -43,3 +43,33 @@
+@@ -43,3 +43,41 @@
&usb3_phy {
status = "okay";
};
@@ -186,11 +218,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
+++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
-@@ -86,3 +86,33 @@
+@@ -86,3 +86,41 @@
&usb3_phy {
status = "okay";
};
@@ -222,11 +262,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
+++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
-@@ -77,3 +77,33 @@
+@@ -77,3 +77,41 @@
&usb3_phy {
status = "okay";
};
@@ -258,11 +306,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
+++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
-@@ -77,6 +77,32 @@
+@@ -77,6 +77,40 @@
status = "okay";
};
@@ -286,9 +342,17 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ label = "lan3";
+ };
+
++ port@5 {
++ status = "disabled";
++ };
++
+ port@7 {
+ label = "cpu";
+ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
@@ -297,7 +361,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
compatible = "fixed-partitions";
--- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
+++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
-@@ -130,3 +130,33 @@
+@@ -130,3 +130,41 @@
&usb3_phy {
status = "okay";
};
@@ -329,11 +393,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
+++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
-@@ -47,3 +47,33 @@
+@@ -47,3 +47,41 @@
&usb3_phy {
status = "okay";
};
@@ -362,6 +434,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ label = "wan";
+ };
+
++ port@5 {
++ status = "disabled";
++ };
++
++ port@7 {
++ status = "disabled";
++ };
++
+ port@8 {
+ label = "cpu";
+ };
@@ -369,7 +449,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+};
--- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
+++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
-@@ -104,3 +104,33 @@
+@@ -104,3 +104,41 @@
&usb3_phy {
status = "okay";
};
@@ -401,11 +481,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
+++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
-@@ -94,3 +94,33 @@
+@@ -94,3 +94,41 @@
&usb3_phy {
status = "okay";
};
@@ -434,6 +522,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ label = "lan4";
+ };
+
++ port@5 {
++ status = "disabled";
++ };
++
++ port@7 {
++ status = "disabled";
++ };
++
+ port@8 {
+ label = "cpu";
+ };
@@ -441,7 +537,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+};
--- a/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
+++ b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
-@@ -38,6 +38,32 @@
+@@ -38,6 +38,40 @@
status = "okay";
};
@@ -468,6 +564,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
@@ -476,7 +580,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
compatible = "fixed-partitions";
--- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
+++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
-@@ -91,6 +91,36 @@
+@@ -91,6 +91,44 @@
};
};
@@ -507,6 +611,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
@@ -515,7 +627,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
--- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
+++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
-@@ -100,6 +100,36 @@
+@@ -100,6 +100,44 @@
vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
};
@@ -546,6 +658,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
@@ -554,7 +674,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
--- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
+++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
-@@ -107,3 +107,34 @@
+@@ -107,3 +107,42 @@
&usb3_phy {
status = "okay";
};
@@ -586,6 +706,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
diff --git a/target/linux/bcm53xx/patches-6.1/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch b/target/linux/bcm53xx/patches-6.1/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
index 0efb284039..ed75623460 100644
--- a/target/linux/bcm53xx/patches-6.1/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
+++ b/target/linux/bcm53xx/patches-6.1/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
@@ -10,7 +10,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
+++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
-@@ -92,3 +92,33 @@
+@@ -92,3 +92,41 @@
&usb3_phy {
status = "okay";
};
@@ -42,11 +42,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
+++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
-@@ -83,3 +83,33 @@
+@@ -83,3 +83,41 @@
&usb3_phy {
status = "okay";
};
@@ -78,11 +86,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
+++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
-@@ -149,3 +149,33 @@
+@@ -149,3 +149,41 @@
&usb3_phy {
status = "okay";
};
@@ -114,11 +130,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
+++ b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
-@@ -46,3 +46,33 @@
+@@ -46,3 +46,41 @@
&usb3_phy {
status = "okay";
};
@@ -150,11 +174,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-linksys-ea6500-v2.dts
+++ b/arch/arm/boot/dts/bcm4708-linksys-ea6500-v2.dts
-@@ -43,3 +43,33 @@
+@@ -43,3 +43,41 @@
&usb3_phy {
status = "okay";
};
@@ -186,11 +218,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
+++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
-@@ -86,3 +86,33 @@
+@@ -86,3 +86,41 @@
&usb3_phy {
status = "okay";
};
@@ -222,11 +262,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
+++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
-@@ -77,3 +77,33 @@
+@@ -77,3 +77,41 @@
&usb3_phy {
status = "okay";
};
@@ -258,11 +306,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
+++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
-@@ -77,6 +77,32 @@
+@@ -77,6 +77,40 @@
status = "okay";
};
@@ -286,9 +342,17 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ label = "lan3";
+ };
+
++ port@5 {
++ status = "disabled";
++ };
++
+ port@7 {
+ label = "cpu";
+ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
@@ -297,7 +361,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
compatible = "fixed-partitions";
--- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
+++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
-@@ -130,3 +130,33 @@
+@@ -130,3 +130,41 @@
&usb3_phy {
status = "okay";
};
@@ -329,11 +393,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
+++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
-@@ -47,3 +47,33 @@
+@@ -47,3 +47,41 @@
&usb3_phy {
status = "okay";
};
@@ -362,6 +434,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ label = "wan";
+ };
+
++ port@5 {
++ status = "disabled";
++ };
++
++ port@7 {
++ status = "disabled";
++ };
++
+ port@8 {
+ label = "cpu";
+ };
@@ -369,7 +449,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+};
--- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
+++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
-@@ -104,3 +104,33 @@
+@@ -104,3 +104,41 @@
&usb3_phy {
status = "okay";
};
@@ -401,11 +481,19 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
--- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
+++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
-@@ -94,3 +94,33 @@
+@@ -94,3 +94,41 @@
&usb3_phy {
status = "okay";
};
@@ -434,6 +522,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ label = "lan4";
+ };
+
++ port@5 {
++ status = "disabled";
++ };
++
++ port@7 {
++ status = "disabled";
++ };
++
+ port@8 {
+ label = "cpu";
+ };
@@ -441,7 +537,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+};
--- a/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
+++ b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
-@@ -38,6 +38,32 @@
+@@ -38,6 +38,40 @@
status = "okay";
};
@@ -468,6 +564,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
@@ -476,7 +580,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
compatible = "fixed-partitions";
--- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
+++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
-@@ -91,6 +91,36 @@
+@@ -91,6 +91,44 @@
};
};
@@ -507,6 +611,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
@@ -515,7 +627,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
--- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
+++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
-@@ -100,6 +100,36 @@
+@@ -100,6 +100,44 @@
vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
};
@@ -546,6 +658,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+
@@ -554,7 +674,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
--- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
+++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
-@@ -107,3 +107,34 @@
+@@ -107,3 +107,42 @@
&usb3_phy {
status = "okay";
};
@@ -586,6 +706,14 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ port@5 {
+ label = "cpu";
+ };
++
++ port@7 {
++ status = "disabled";
++ };
++
++ port@8 {
++ status = "disabled";
++ };
+ };
+};
+