Skip to content

Commit cf8f3a7

Browse files
arinc9mbgg
authored andcommitted
arm: dts: mt7623: change mt7530 switch address
In 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. Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> Link: https://lore.kernel.org/r/20230210182505.24597-4-arinc.unal@arinc9.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent e5240c3 commit cf8f3a7

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

arch/arm/boot/dts/mt7623a.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
#address-cells = <1>;
3737
#size-cells = <0>;
3838

39-
switch0: switch@0 {
39+
switch0: switch@1f {
4040
compatible = "mediatek,mt7530";
41-
reg = <0>;
41+
reg = <0x1f>;
4242
mediatek,mcm;
4343
resets = <&ethsys MT2701_ETHSYS_MCM_RST>;
4444
reset-names = "mcm";

arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@
189189
#address-cells = <1>;
190190
#size-cells = <0>;
191191

192-
switch@0 {
192+
switch@1f {
193193
compatible = "mediatek,mt7530";
194-
reg = <0>;
194+
reg = <0x1f>;
195195
reset-gpios = <&pio 33 0>;
196196
core-supply = <&mt6323_vpa_reg>;
197197
io-supply = <&mt6323_vemc3v3_reg>;

arch/arm/boot/dts/mt7623n-rfb-emmc.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@
185185
phy-mode = "rgmii-rxid";
186186
};
187187

188-
switch@0 {
188+
switch@1f {
189189
compatible = "mediatek,mt7530";
190-
reg = <0>;
190+
reg = <0x1f>;
191191
reset-gpios = <&pio 33 0>;
192192
core-supply = <&mt6323_vpa_reg>;
193193
io-supply = <&mt6323_vemc3v3_reg>;

0 commit comments

Comments
 (0)