[openwrt/openwrt] bcm53xx: specify switch ports for more devices
LEDE Commits
lede-commits at lists.infradead.org
Tue Sep 7 05:10:14 PDT 2021
rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/ae33ce2af2b273332017d0b49e37c4224e40a62a
commit ae33ce2af2b273332017d0b49e37c4224e40a62a
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Tue Sep 7 13:22:41 2021 +0200
bcm53xx: specify switch ports for more devices
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
...5301X-Specify-switch-ports-for-more-devic.patch | 289 +++++++++++
...5301X-Specify-switch-ports-for-remaining-.patch | 575 +++++++++++++++++++++
2 files changed, 864 insertions(+)
diff --git a/target/linux/bcm53xx/patches-5.10/130-ARM-dts-BCM5301X-Specify-switch-ports-for-more-devic.patch b/target/linux/bcm53xx/patches-5.10/130-ARM-dts-BCM5301X-Specify-switch-ports-for-more-devic.patch
new file mode 100644
index 0000000000..211de34af7
--- /dev/null
+++ b/target/linux/bcm53xx/patches-5.10/130-ARM-dts-BCM5301X-Specify-switch-ports-for-more-devic.patch
@@ -0,0 +1,289 @@
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal at milecki.pl>
+Date: Tue, 7 Sep 2021 07:51:17 +0200
+Subject: [PATCH next] ARM: dts: BCM5301X: Specify switch ports for more
+ devices
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Those are remaining models I have that didn't have ports yet. All
+tested.
+
+Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
+---
+ arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 37 ++++++++++++++++
+ .../boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 37 ++++++++++++++++
+ arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 42 +++++++++++++++++++
+ arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 42 +++++++++++++++++++
+ arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts | 37 ++++++++++++++++
+ arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts | 37 ++++++++++++++++
+ 6 files changed, 232 insertions(+)
+
+--- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
++++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
+@@ -94,3 +94,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan4";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan3";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan2";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan1";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
++++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
+@@ -117,3 +117,40 @@
+ };
+ };
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
++++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
+@@ -187,3 +187,45 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 8 {
++ reg = <8>;
++ label = "cpu";
++ ethernet = <&gmac2>;
++
++ fixed-link {
++ speed = <1000>;
++ full-duplex;
++ };
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
++++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
+@@ -118,3 +118,45 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan4";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan3";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan2";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan1";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 8 {
++ reg = <8>;
++ label = "cpu";
++ ethernet = <&gmac2>;
++
++ fixed-link {
++ speed = <1000>;
++ full-duplex;
++ };
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
++++ b/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
+@@ -68,3 +68,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "wan";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan4";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan2";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "lan1";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
++++ b/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
+@@ -68,3 +68,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "wan";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan4";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan2";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "lan1";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
diff --git a/target/linux/bcm53xx/patches-5.10/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch b/target/linux/bcm53xx/patches-5.10/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
new file mode 100644
index 0000000000..0c8a5c63cd
--- /dev/null
+++ b/target/linux/bcm53xx/patches-5.10/304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
@@ -0,0 +1,575 @@
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal at milecki.pl>
+Subject: [PATCH] ARM: dts: BCM5301X: Specify switch ports for remaining
+ devices
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
+---
+
+--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
++++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
+@@ -93,3 +93,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
++++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
+@@ -83,3 +83,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "wan";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan1";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan2";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan3";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "lan4";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
++++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
+@@ -149,3 +149,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
++++ b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
+@@ -46,3 +46,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4708-linksys-ea6500-v2.dts
++++ b/arch/arm/boot/dts/bcm4708-linksys-ea6500-v2.dts
+@@ -42,3 +42,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
++++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
+@@ -86,3 +86,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
++++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
+@@ -77,3 +77,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "wan";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan1";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan2";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan3";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "lan4";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
++++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
+@@ -68,6 +68,38 @@
+ status = "okay";
+ };
+
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "wan";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan1";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan2";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan3";
++ };
++
++ port at 7 {
++ reg = <7>;
++ label = "cpu";
++ ethernet = <&gmac1>;
++ };
++ };
++};
++
+ &nandcs {
+ partitions {
+ compatible = "fixed-partitions";
+--- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
++++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
+@@ -132,3 +132,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
++++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
+@@ -49,3 +49,45 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan4";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "wan";
++ };
++
++ port at 8 {
++ reg = <8>;
++ label = "cpu";
++ ethernet = <&gmac2>;
++
++ fixed-link {
++ speed = <1000>;
++ full-duplex;
++ };
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
++++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
+@@ -106,3 +106,40 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "wan";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan1";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan2";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan3";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "lan4";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
++++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
+@@ -94,3 +94,45 @@
+ &usb3_phy {
+ status = "okay";
+ };
++
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "wan";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan1";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan2";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "lan3";
++ };
++
++ port at 4 {
++ reg = <4>;
++ label = "lan4";
++ };
++
++ port at 8 {
++ reg = <8>;
++ label = "cpu";
++ ethernet = <&gmac2>;
++
++ fixed-link {
++ speed = <1000>;
++ full-duplex;
++ };
++ };
++ };
++};
+--- a/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
++++ b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
+@@ -38,6 +38,38 @@
+ status = "okay";
+ };
+
++&srab {
++ status = "okay";
++
++ ports {
++ port at 0 {
++ reg = <0>;
++ label = "lan1";
++ };
++
++ port at 1 {
++ reg = <1>;
++ label = "lan2";
++ };
++
++ port at 2 {
++ reg = <2>;
++ label = "lan3";
++ };
++
++ port at 3 {
++ reg = <3>;
++ label = "wan";
++ };
++
++ port at 5 {
++ reg = <5>;
++ label = "cpu";
++ ethernet = <&gmac0>;
++ };
++ };
++};
++
+ &nandcs {
+ partitions {
+ compatible = "fixed-partitions";
More information about the lede-commits
mailing list