[openwrt/openwrt] bcm53xx: add switch ports for Buffalo WZR-900DHP & re-enable it
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 30 07:21:19 PDT 2022
rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/fc94c0d203d1c97d3dfdd045fb57b1cb7826e491
commit fc94c0d203d1c97d3dfdd045fb57b1cb7826e491
Author: SHIMAMOTO Takayoshi <takayoshi.shimamoto.360 at gmail.com>
AuthorDate: Mon Mar 28 02:09:25 2022 +0900
bcm53xx: add switch ports for Buffalo WZR-900DHP & re-enable it
Specify the switch ports in the DTS file.
Re-enable it after it was disabled by commit e9672b1a8fa4 ("bcm53xx: switch to the
upstream DSA-based b53 driver").
Signed-off-by: SHIMAMOTO Takayoshi <takayoshi.shimamoto.360 at gmail.com>
[rmilecki: reword commit & drop unneeded whitespace change]
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
target/linux/bcm53xx/image/Makefile | 1 -
...5301X-Specify-switch-ports-for-remaining-.patch | 44 ++++++++++++++++++++++
2 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile
index 3df24013ce..d70e394b94 100644
--- a/target/linux/bcm53xx/image/Makefile
+++ b/target/linux/bcm53xx/image/Makefile
@@ -227,7 +227,6 @@ define Device/buffalo_wzr-900dhp
buffalo-enc WZR-900DHP2 $$(BUFFALO_TAG_VERSION) | \
buffalo-tag-dhp WZR-900DHP2 JP jp | buffalo-enc-tag | \
buffalo-dhp-image
- BROKEN := y
endef
TARGET_DEVICES += buffalo_wzr-900dhp
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 8b2b5e49c9..d20fe71d48 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
@@ -665,3 +665,47 @@ Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
&spi_nor {
status = "okay";
+--- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
++++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
+@@ -107,3 +107,41 @@
+ &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>;
++ };
++ };
++};
++
More information about the lede-commits
mailing list