[openwrt/openwrt] bcm53xx: specify switch ports on TP-LINK devices

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 22 06:23:32 PST 2021


rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/294fa3770ba750c4f7bc096fcc5198759a74db6b

commit 294fa3770ba750c4f7bc096fcc5198759a74db6b
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Sun Nov 21 13:44:58 2021 +0100

    bcm53xx: specify switch ports on TP-LINK devices
    
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 ...5301X-Specify-switch-ports-for-remaining-.patch | 92 ++++++++++++++++++++++
 1 file changed, 92 insertions(+)

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
index 0c8a5c63cd..8b2b5e49c9 100644
--- 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
@@ -573,3 +573,95 @@ Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
  &nandcs {
  	partitions {
  		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,43 @@
+ 	};
+ };
+ 
++&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>;
++		};
++	};
++};
++
+ &spi_nor {
+ 	status = "okay";
+ 
+--- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
++++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
+@@ -102,6 +102,43 @@
+ 	vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
+ };
+ 
++&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>;
++		};
++	};
++};
++
+ &spi_nor {
+ 	status = "okay";
+ 



More information about the lede-commits mailing list