Skip to content

Commit

Permalink
bcm53xx: add switch ports for Buffalo WZR-900DHP & re-enable it
Browse files Browse the repository at this point in the history
Specify the switch ports in the DTS file.
Re-enable it after it was disabled by commit e9672b1 ("bcm53xx: switch to the
upstream DSA-based b53 driver").

Signed-off-by: SHIMAMOTO Takayoshi <takayoshi.shimamoto.360@gmail.com>
[rmilecki: reword commit & drop unneeded whitespace change]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  • Loading branch information
shimamoto360 authored and Rafał Miłecki committed Mar 30, 2022
1 parent a721fb9 commit fc94c0d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
1 change: 0 additions & 1 deletion target/linux/bcm53xx/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,3 +665,47 @@ Signed-off-by: Rafał Miłecki <rafal@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@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>;
+ };
+ };
+};
+

0 comments on commit fc94c0d

Please sign in to comment.