diff options
author | John Crispin <john@phrozen.org> | 2020-06-04 15:07:28 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2020-06-07 19:10:51 +0200 |
commit | ad39d06df7f6c6af6249c0f33358ae2d799ec4b4 (patch) | |
tree | a16dc1b5933acf842ae43f49f18070dce5b331d8 /target/linux/mediatek/files-5.4/arch | |
parent | f72a2b004c3541b1834fe7af2ae69dcfcde8d338 (diff) | |
download | upstream-ad39d06df7f6c6af6249c0f33358ae2d799ec4b4.tar.gz upstream-ad39d06df7f6c6af6249c0f33358ae2d799ec4b4.tar.bz2 upstream-ad39d06df7f6c6af6249c0f33358ae2d799ec4b4.zip |
mediatek: add mt7531 DSA support
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/files-5.4/arch')
-rw-r--r-- | target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-rootdisk.dts | 87 |
1 files changed, 50 insertions, 37 deletions
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-rootdisk.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-rootdisk.dts index 9d80366a18..6a14ef369b 100644 --- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-rootdisk.dts +++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-rootdisk.dts @@ -53,13 +53,6 @@ }; }; - gsw: gsw@0 { - compatible = "mediatek,mt753x"; - mediatek,ethsys = <ðsys>; - #address-cells = <1>; - #size-cells = <0>; - }; - leds { compatible = "gpio-leds"; @@ -150,37 +143,57 @@ mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - }; -}; -&gsw { - mediatek,mdio = <&mdio>; - mediatek,portmap = "wllll"; - mediatek,mdio_master_pinmux = <0>; - reset-gpios = <&pio 54 0>; - interrupt-parent = <&pio>; - interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; - status = "okay"; - - port5: port@5 { - compatible = "mediatek,mt753x-port"; - reg = <5>; - phy-mode = "rgmii"; - fixed-link { - speed = <1000>; - full-duplex; - }; - }; - - port6: port@6 { - compatible = "mediatek,mt753x-port"; - reg = <6>; - phy-mode = "sgmii"; - fixed-link { - speed = <2500>; - full-duplex; - }; - }; + switch@1f { + compatible = "mediatek,mt7531"; + reg = <0x1f>; + reset-gpios = <&pio 54 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + wan: port@0 { + reg = <0>; + label = "wan"; + }; + + 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@6 { + reg = <6>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "2500base-x"; + + fixed-link { + speed = <2500>; + full-duplex; + pause; + }; + }; + }; + }; + + }; }; &i2c1 { |