arm64: dts: {mt7622,mt7986}: add port@5 as CPU port
Subsystems (2)
PATCH 1/1 arm64: dts: {mt7622,mt7986}: add port@5 as CPU port
On Banana Pi BPI-R64, MediaTek MT7622 RFB1 board, MediaTek MT7986b RFB, and MediaTek MT7986a RFB, port 5 of the MT7531 switch is connected to the second MAC of the SoC as a CPU port. Add the port and set up the second MAC on the bindings.
--- .../dts/mediatek/mt7622-bananapi-bpi-r64.dts | 12 ++++++++++ arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 24 +++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 24 +++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 24 +++++++++++++++++++ 4 files changed, 84 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +12 -0
@@ -186,6 +186,18 @@ port@4 { label = "lan3"; }; + port@5 { + reg = <5>; + ethernet = <&gmac1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg = <6>; label = "cpu";
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +24 -0
@@ -117,6 +117,18 @@ fixed-link { }; }; + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + mdio-bus { #address-cells = <1>; #size-cells = <0>;
@@ -155,6 +167,18 @@ port@4 { label = "wan"; }; + port@5 { + reg = <5>; + ethernet = <&gmac1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg = <6>; label = "cpu";
arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts +24 -0
@@ -65,6 +65,18 @@ fixed-link { }; }; + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>;
@@ -287,6 +299,18 @@ port@4 { label = "lan4"; }; + port@5 { + reg = <5>; + ethernet = <&gmac1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg = <6>; label = "cpu";
arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts +24 -0
@@ -45,6 +45,18 @@ fixed-link { }; }; + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>;
@@ -83,6 +95,18 @@ port@4 { label = "lan4"; }; + port@5 { + reg = <5>; + ethernet = <&gmac1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg = <6>; label = "cpu";
Signature · 1 line
2.39.2
Matthias, please apply this patch.
Arınç
AngeloGioacchino Del Regno
maintainerIl 18/02/24 11:52, Arınç ÜNAL ha scritto:
Quoted 3 lines
Matthias, please apply this patch.
Arınç
Please split this by SoC and resend as two patches.
If you can resend fast enough, I can apply the patches for 6.9.
Cheers,
Angelo
Quoted 8 lines · AngeloGioacchino Del Regno
Il 18/02/24 11:52, Arınç ÜNAL ha scritto:
Quoted 3 lines
Matthias, please apply this patch.
Arınç
Please split this by SoC and resend as two patches.
If you can resend fast enough, I can apply the patches for 6.9.
Done.
https://lore.kernel.org/linux-mediatek/[email protected]/
Arınç