From: SHIMAMOTO Takayoshi Date: Sun, 27 Mar 2022 17:09:25 +0000 (+0900) Subject: bcm53xx: add switch ports for Buffalo WZR-900DHP & re-enable it X-Git-Tag: v23.05.0-rc1~3754 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fc94c0d203d1c97d3dfdd045fb57b1cb7826e491;p=openwrt%2Fstaging%2Fhauke.git 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 [rmilecki: reword commit & drop unneeded whitespace change] Signed-off-by: Rafał Miłecki --- 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 &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@0 { ++ reg = <0>; ++ label = "lan1"; ++ }; ++ ++ port@1 { ++ reg = <1>; ++ label = "lan2"; ++ }; ++ ++ port@2 { ++ reg = <2>; ++ label = "lan3"; ++ }; ++ ++ port@3 { ++ reg = <3>; ++ label = "lan4"; ++ }; ++ ++ port@4 { ++ reg = <4>; ++ label = "wan"; ++ }; ++ ++ port@5 { ++ reg = <5>; ++ label = "cpu"; ++ ethernet = <&gmac0>; ++ }; ++ }; ++}; ++