arm: dts: mt7623: relocate gmacs, mt7530 switch, and mux phy
Subsystems (2)
cover arm: dts: mt7623: relocate gmacs, mt7530 switch, and mux phy
Yeia sou!
I initially just wanted to submit the phy muxing patch for BPI-R2 but after looking around the bindings, I decided to do a bit of a cleanup.
The main takeaway of the cleanup is that the MT7530 switch is actually a part of the multi-chip module on the MT7623AI SoC. I'm moving the bindings for this switch to mt7623a.dtsi so they don't need to be defined on every device with this SoC. This should ease it up for supporting more devices with MT7623AI SoC on mainline.
I don't know if there's a pin wired for interrupt. The switch is going to work with polling for the time being. Folks from MediaTek, feel free to fill me in on this.
I've tested phy muxing on my BPI-R2. DTs compile fine.
Arınç ÜNAL (5):
arm: dts: mt7623: add gmacs to mt7623.dtsi
arm: dts: mt7623: add mt7530 switch to mt7623a.dtsi
arm: dts: mt7623: change mt7530 switch address
arm: dts: mt7623: mux phy0 on Bananapi BPI-R2
arm: dts: mt7623: enable flow control on port@6
arch/arm/boot/dts/mt7623.dtsi | 14 ++++ arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 86 ++++++---------------- arch/arm/boot/dts/mt7623a-rfb-nand.dts | 86 ++++++---------------- arch/arm/boot/dts/mt7623a.dtsi | 74 +++++++++++++++++++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 22 +++--- arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 13 ++-- 6 files changed, 147 insertions(+), 148 deletions(-)
PATCH 1/5 arm: dts: mt7623: add gmacs to mt7623.dtsi
There are two gigabit MACs on the MT7623AI and MT7623NI SoCs. Add them to mt7623.dtsi and adjust the DTs that call mt7623.dtsi.
--- arch/arm/boot/dts/mt7623.dtsi | 14 ++++++++++++++ arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 4 +--- arch/arm/boot/dts/mt7623a-rfb-nand.dts | 4 +--- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 4 +--- arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 8 ++------ 5 files changed, 19 insertions(+), 15 deletions(-)
arch/arm/boot/dts/mt7623.dtsi +14 -0
@@ -981,6 +981,20 @@ eth: ethernet@1b100000 { #address-cells = <1>; #size-cells = <0>; status = "disabled"; + + gmac0: mac@0 { + compatible = "mediatek,eth-mac"; + reg = <0>; + phy-mode = "trgmii"; + status = "disabled"; + }; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + status = "disabled"; + }; }; crypto: crypto@1b240000 {
arch/arm/boot/dts/mt7623a-rfb-emmc.dts +1 -3
@@ -116,9 +116,7 @@ ð { status = "okay"; gmac0: mac@0 { - compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>;
arch/arm/boot/dts/mt7623a-rfb-nand.dts +1 -3
@@ -120,9 +120,7 @@ ð { status = "okay"; gmac0: mac@0 { - compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>;
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +1 -3
@@ -175,9 +175,7 @@ ð { status = "okay"; gmac0: mac@0 { - compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>;
arch/arm/boot/dts/mt7623n-rfb-emmc.dts +2 -6
@@ -160,9 +160,7 @@ ð { status = "okay"; gmac0: mac@0 { - compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>;
@@ -172,9 +170,7 @@ fixed-link { }; mac@1 { - compatible = "mediatek,eth-mac"; - reg = <1>; - phy-mode = "rgmii"; + status = "okay"; phy-handle = <&phy5>; };
Signature · 1 line
2.37.2
Re: [PATCH 1/5] arm: dts: mt7623: add gmacs to mt7623.dtsi
Am 20. Januar 2023 21:53:14 MEZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 29 lines
index
25d31e40a553..5eb698a90d34100644arch/arm/boot/dts/mt7623.dtsi +14
-0@@ -981,6 +981,20 @@ eth: ethernet@1b100000 { #address-cells = <1>; #size-cells = <0>; status = "disabled"; + + gmac0: mac@0 { + compatible = "mediatek,eth-mac"; + reg = <0>; + phy-mode = "trgmii"; + status = "disabled"; + }; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + status = "disabled"; + }; };arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ð { · line 177
Quoted 3 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0@@ -175,9 +175,7 @@ ð { status = "okay"; gmac0: mac@0 {
Should node not be accessed with label (&gmac0) instead of defining it again and shadow the one from dtsi?
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ð { · line 181
Quoted 7 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +1
-3- compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>;
Same for other boards.
regards Frank
Re: [PATCH 1/5] arm: dts: mt7623: add gmacs to mt7623.dtsi
Quoted 33 lines · Frank Wunderlich
Am 20. Januar 2023 21:53:14 MEZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 31 lines
index
25d31e40a553..5eb698a90d34100644arch/arm/boot/dts/mt7623.dtsi +14
-0@@ -981,6 +981,20 @@ eth: ethernet@1b100000 { #address-cells = <1>; #size-cells = <0>; status = "disabled"; + + gmac0: mac@0 { + compatible = "mediatek,eth-mac"; + reg = <0>; + phy-mode = "trgmii"; + status = "disabled"; + }; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + status = "disabled"; + }; };arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0@@ -175,9 +175,7 @@ ð { status = "okay";
Quoted 3 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ð { · line 177
Quoted 1 line
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0gmac0: mac@0 {Should node not be accessed with label (&gmac0) instead of defining it again and shadow the one from dtsi?
I think that's up to preference. I kept it the current way as it's cleaner than taking it out of ð.
Arınç
Matthias Brugger
maintainerRe: [PATCH 1/5] arm: dts: mt7623: add gmacs to mt7623.dtsi
Quoted 34 lines · Arınç ÜNAL
Quoted 33 lines · Frank Wunderlich
Am 20. Januar 2023 21:53:14 MEZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 31 lines
index
25d31e40a553..5eb698a90d34100644arch/arm/boot/dts/mt7623.dtsi +14
-0@@ -981,6 +981,20 @@ eth: ethernet@1b100000 { #address-cells = <1>; #size-cells = <0>; status = "disabled"; + + gmac0: mac@0 { + compatible = "mediatek,eth-mac"; + reg = <0>; + phy-mode = "trgmii"; + status = "disabled"; + }; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + status = "disabled"; + }; };arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0@@ -175,9 +175,7 @@ ð { status = "okay";
Quoted 6 lines
Quoted 3 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ð { · line 177
Quoted 1 line
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0gmac0: mac@0 {Should node not be accessed with label (&gmac0) instead of defining it again and shadow the one from dtsi?
I think that's up to preference. I kept it the current way as it's cleaner than taking it out of ð.
I'd prefer to do use the label, so that we stay consistent in the source tree. I'll remove the whole series for now. Please provide a v2.
Thanks,
Matthias
PATCH 2/5 arm: dts: mt7623: add mt7530 switch to mt7623a.dtsi
In reply to Arınç ÜNALThe MT7530 switch is included as a part of the multi-chip module on the MT7623AI SoC. Add it to mt7623a.dtsi and adjust DTs that call mt7623a.dtsi.
---
I don’t know if there’s a pin wired for interrupt. The switch is going to work with polling for the time being. Folks from MediaTek, feel free to fill me in on this.
Arınç
--- arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 84 +++++++------------------- arch/arm/boot/dts/mt7623a-rfb-nand.dts | 84 +++++++------------------- arch/arm/boot/dts/mt7623a.dtsi | 73 ++++++++++++++++++++++ 3 files changed, 115 insertions(+), 126 deletions(-)
arch/arm/boot/dts/mt7623a-rfb-emmc.dts +21 -63
@@ -112,73 +112,31 @@ &crypto { status = "okay"; }; -ð { - status = "okay"; +&switch0 { + ports { + port@0 { + status = "okay"; + label = "lan0"; + }; - gmac0: mac@0 { - status = "okay"; + port@1 { + status = "okay"; + label = "lan1"; + }; - fixed-link { - speed = <1000>; - full-duplex; - pause; + port@2 { + status = "okay"; + label = "lan2"; + }; + + port@3 { + status = "okay"; + label = "lan3"; }; - }; - mdio-bus { - #address-cells = <1>; - #size-cells = <0>; - - switch@0 { - compatible = "mediatek,mt7530"; - reg = <0>; - mediatek,mcm; - resets = <ðsys MT2701_ETHSYS_MCM_RST>; - reset-names = "mcm"; - core-supply = <&mt6323_vpa_reg>; - io-supply = <&mt6323_vemc3v3_reg>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - label = "lan0"; - }; - - port@1 { - reg = <1>; - label = "lan1"; - }; - - port@2 { - reg = <2>; - label = "lan2"; - }; - - port@3 { - reg = <3>; - label = "lan3"; - }; - - port@4 { - reg = <4>; - label = "wan"; - }; - - port@6 { - reg = <6>; - label = "cpu"; - ethernet = <&gmac0>; - phy-mode = "trgmii"; - - fixed-link { - speed = <1000>; - full-duplex; - }; - }; - }; + port@4 { + status = "okay"; + label = "wan"; }; }; };
arch/arm/boot/dts/mt7623a-rfb-nand.dts +21 -63
94 lines not on this page · raw message
arch/arm/boot/dts/mt7623a.dtsi +73 -0
80 lines not on this page · raw message
Signature · 1 line
2.37.2
PATCH 3/5 arm: dts: mt7623: change mt7530 switch address
In reply to Arınç ÜNALIn the case of muxing phy0 of the MT7530 switch, the switch and the phy will have the same address on the mdio bus, 0. This causes the ethernet driver to fail since devices on the mdio bus cannot share an address.
Any address can be used for the switch, therefore, change the switch address to 0x1f.
--- arch/arm/boot/dts/mt7623a.dtsi | 4 ++-- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 4 ++-- arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/mt7623a.dtsi +2 -2
@@ -35,9 +35,9 @@ mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - switch0: switch@0 { + switch0: switch@1f { compatible = "mediatek,mt7530"; - reg = <0>; + reg = <0x1f>; mediatek,mcm; resets = <ðsys MT2701_ETHSYS_MCM_RST>; reset-names = "mcm";
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +2 -2
@@ -188,9 +188,9 @@ mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - switch@0 { + switch@1f { compatible = "mediatek,mt7530"; - reg = <0>; + reg = <0x1f>; reset-gpios = <&pio 33 0>; core-supply = <&mt6323_vpa_reg>; io-supply = <&mt6323_vemc3v3_reg>;
arch/arm/boot/dts/mt7623n-rfb-emmc.dts +2 -2
@@ -183,9 +183,9 @@ phy5: ethernet-phy@5 { phy-mode = "rgmii-rxid"; }; - switch@0 { + switch@1f { compatible = "mediatek,mt7530"; - reg = <0>; + reg = <0x1f>; reset-gpios = <&pio 33 0>; core-supply = <&mt6323_vpa_reg>; io-supply = <&mt6323_vemc3v3_reg>;
Signature · 1 line
2.37.2
PATCH 4/5 arm: dts: mt7623: mux phy0 on Bananapi BPI-R2
In reply to Arınç ÜNALMux the MT7530 switch's phy0 to gmac5 which is wired to the SoC's gmac1. This achieves 2 Gbps total bandwidth to the CPU using the second RGMII.
--- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +9 -5
@@ -184,10 +184,19 @@ fixed-link { }; }; + gmac1: mac@1 { + status = "okay"; + phy-handle = <ðphy0>; + }; + mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; + ethphy0: ethernet-phy@0 { + reg = <0>; + }; + switch@1f { compatible = "mediatek,mt7530"; reg = <0x1f>;
@@ -199,11 +208,6 @@ ports { #address-cells = <1>; #size-cells = <0>; - port@0 { - reg = <0>; - label = "wan"; - }; - port@1 { reg = <1>; label = "lan0";
Signature · 1 line
2.37.2
Re: [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2
Am 20. Januar 2023 21:53:17 MEZ schrieb "Arınç ÜNAL" <[email protected]>:
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ports { · line 206
Quoted 12 lines
switch@1f { compatible = "mediatek,mt7530"; reg = <0x1f>;arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-5@@ -199,11 +208,6 @@ ports { #address-cells = <1>; #size-cells = <0>; - port@0 { - reg = <0>; - label = "wan"; - }; -
This will break existing userspace setups using wan as interface name.
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ports { · line 213
Quoted 3 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0port@1 { reg = <1>; label = "lan0";
regards Frank
Re: [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2
Quoted 9 lines · Frank Wunderlich
Am 20. Januar 2023 21:53:17 MEZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 7 lines
switch@1f { compatible = "mediatek,mt7530"; reg = <0x1f>;arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0@@ -199,11 +208,6 @@ ports { #address-cells = <1>; #size-cells = <0>;
Quoted 7 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ports { · line 206
Quoted 5 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-5- port@0 { - reg = <0>; - label = "wan"; - }; -This will break existing userspace setups using wan as interface name.
Yup. The OS being used will have to either rename the interface or adapt to the new name, eth1.
Arınç
Matthias Brugger
maintainerRe: [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2
Quoted 18 lines · Arınç ÜNAL
Quoted 9 lines · Frank Wunderlich
Am 20. Januar 2023 21:53:17 MEZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 7 lines
switch@1f {
compatible = "mediatek,mt7530";
reg = <0x1f>;arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-0@@ -199,11 +208,6 @@ ports { #address-cells = <1>; #size-cells = <0>;Quoted 7 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ports { · line 206
Quoted 5 lines
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-5- port@0 { - reg = <0>; - label = "wan"; - }; -This will break existing userspace setups using wan as interface name.
Quoted 2 lines
Yup. The OS being used will have to either rename the interface or adapt to the new name, eth1.
In that case please explain in the commit message why this is needed. We are trying really hard to not break userspace by a device-tree update.
Regards,
Matthias
Aw: Re: [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2
Hi
Quoted 27 lines
Gesendet: Dienstag, 31. Januar 2023 um 12:55 Uhr
Von: "Matthias Brugger" <[email protected]>
An: "Arınç ÜNAL" <[email protected]>, [email protected], "Rob Herring" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], "Sean Wang" <[email protected]>, "DENG Qingfang" <[email protected]>
Betreff: Re: [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2Quoted 18 lines · Arınç ÜNAL
Quoted 16 lines · Frank Wunderlich
Am 20. Januar 2023 21:53:17 MEZ schrieb "Arınç ÜNAL" <[email protected]>:
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ports { · line 206
Quoted 12 lines
switch@1f {
compatible = "mediatek,mt7530";
reg = <0x1f>;arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-5@@ -199,11 +208,6 @@ ports { #address-cells = <1>; #size-cells = <0>; - port@0 { - reg = <0>; - label = "wan"; - }; -This will break existing userspace setups using wan as interface name.
Quoted 6 lines
Quoted 3 lines
Yup. The OS being used will have to either rename the interface or adapt to the new name, eth1.
In that case please explain in the commit message why this is needed. We are trying really hard to not break userspace by a device-tree update.
I understand the reason why Arınç wants to change it:
currently all ports including wan-port are routed via dsa over gmac0 (trgmii), Arınç enables the second gmac and port5 of switch to route wan-traffic over the other gmac. But unfortunately there is no mainline-way to rename the gmac1 interface (eth1) to wan...this would be a way to not break the userspace.
i had an older patch for mtk_eth_soc [1] which do it at driver level for mediatek ethernet driver, but afair a generic way to (re)name interfaces in dts (vendor independ) was requested as the right way.
regards Frank
[1] https://github.com/frank-w/BPI-Router-Linux/commit/5088c9c81e90014622a950fca38cfb29e0421155
Re: Aw: Re: [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2
Quoted 37 lines · Frank Wunderlich
Hi
Quoted 27 lines
Gesendet: Dienstag, 31. Januar 2023 um 12:55 Uhr
Von: "Matthias Brugger" <[email protected]>
An: "Arınç ÜNAL" <[email protected]>, [email protected], "Rob Herring" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], "Sean Wang" <[email protected]>, "DENG Qingfang" <[email protected]>
Betreff: Re: [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2Quoted 18 lines · Arınç ÜNAL
Quoted 16 lines · Frank Wunderlich
Am 20. Januar 2023 21:53:17 MEZ schrieb "Arınç ÜNAL" <[email protected]>:
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts ports { · line 206
Quoted 12 lines
switch@1f {
compatible = "mediatek,mt7530";
reg = <0x1f>;arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +0
-5@@ -199,11 +208,6 @@ ports { #address-cells = <1>; #size-cells = <0>; - port@0 { - reg = <0>; - label = "wan"; - }; -This will break existing userspace setups using wan as interface name.
Quoted 6 lines
Quoted 3 lines
Yup. The OS being used will have to either rename the interface or adapt to the new name, eth1.
In that case please explain in the commit message why this is needed. We are trying really hard to not break userspace by a device-tree update.
I understand the reason why Arınç wants to change it:
Quoted 7 lines
currently all ports including wan-port are routed via dsa over gmac0 (trgmii), Arınç enables the second gmac and port5 of switch to route wan-traffic over the other gmac. But unfortunately there is no mainline-way to rename the gmac1 interface (eth1) to wan...this would be a way to not break the userspace.
i had an older patch for
mtk_eth_soc[1] which do it at driver level for mediatek ethernet driver, but afair a generic way to (re)name interfaces in dts (vendor independ) was requested as the right way.regards Frank
[1] https://github.com/frank-w/BPI-Router-Linux/commit/5088c9c81e90014622a950fca38cfb29e0421155
I tried this [0] before. It's not going to happen on mainline, and that's fine. I'll just clearly mention on the patch log that the interface name will change with this patch.
[0] https://lore.kernel.org/netdev/[email protected]/t/#u
Arınç
PATCH 5/5 arm: dts: mt7623: enable flow control on port@6
In reply to Arınç ÜNALFlow control needs to be enabled on both sides to work. It is already enabled on gmac0, enable it on port@6 too.
--- arch/arm/boot/dts/mt7623a.dtsi | 1 + arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 1 + 2 files changed, 2 insertions(+)
arch/arm/boot/dts/mt7623a.dtsi +1 -0
@@ -87,6 +87,7 @@ port@6 { fixed-link { speed = <1000>; full-duplex; + pause; }; }; };
arch/arm/boot/dts/mt7623n-rfb-emmc.dts +1 -0
@@ -228,6 +228,7 @@ port@6 { fixed-link { speed = <1000>; full-duplex; + pause; }; }; };
Signature · 1 line
2.37.2
Matthias Brugger
maintainerQuoted 2 lines · Arınç ÜNAL
Yeia sou!
γεια σας!
Whole series applied, thanks!
Quoted 31 lines
I initially just wanted to submit the phy muxing patch for BPI-R2 but after looking around the bindings, I decided to do a bit of a cleanup.
The main takeaway of the cleanup is that the MT7530 switch is actually a part of the multi-chip module on the MT7623AI SoC. I'm moving the bindings for this switch to
mt7623a.dtsiso they don't need to be defined on every device with this SoC. This should ease it up for supporting more devices with MT7623AI SoC on mainline.I don't know if there's a pin wired for interrupt. The switch is going to work with polling for the time being. Folks from MediaTek, feel free to fill me in on this.
I've tested phy muxing on my BPI-R2. DTs compile fine.
Arınç ÜNAL (5):
arm: dts: mt7623: add gmacs tomt7623.dtsi
arm: dts: mt7623: add mt7530 switch tomt7623a.dtsi
arm: dts: mt7623: change mt7530 switch address
arm: dts: mt7623: mux phy0 on Bananapi BPI-R2
arm: dts: mt7623: enable flow control on port@6arch/arm/boot/dts/mt7623.dtsi | 14 ++++ arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 86 ++++++---------------- arch/arm/boot/dts/mt7623a-rfb-nand.dts | 86 ++++++---------------- arch/arm/boot/dts/mt7623a.dtsi | 74 +++++++++++++++++++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 22 +++--- arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 13 ++-- 6 files changed, 147 insertions(+), 148 deletions(-)