diff options
author | Frank Wunderlich <frank-w@public-files.de> | 2022-06-10 19:05:41 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-14 22:35:16 -0700 |
commit | c1804463e5c6a2bf5ab3e278b9d360c25fa49af2 (patch) | |
tree | 0ae7b2ddab022d2834cfb932f7004b05a73f88c7 | |
parent | ae07485d7a1d8dbabf5211043f21987a268c898b (diff) | |
download | lwn-c1804463e5c6a2bf5ab3e278b9d360c25fa49af2.tar.gz lwn-c1804463e5c6a2bf5ab3e278b9d360c25fa49af2.zip |
arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board
Add Device Tree node for mt7531 switch connected to gmac0.
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index 40cf2236c0b6..7df8cfb1d3b9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -394,6 +394,54 @@ status = "disabled"; }; +&mdio0 { + #address-cells = <1>; + #size-cells = <0>; + + switch@0 { + compatible = "mediatek,mt7531"; + reg = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + label = "lan0"; + }; + + port@2 { + reg = <2>; + label = "lan1"; + }; + + port@3 { + reg = <3>; + label = "lan2"; + }; + + port@4 { + reg = <4>; + label = "lan3"; + }; + + port@5 { + reg = <5>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + }; + }; +}; + &mdio1 { rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; |