Skip to content

Commit

Permalink
mips: dts: ralink: mt7621: change mt7530 switch address
Browse files Browse the repository at this point in the history
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.

Suggested-by: Sungbo Eo <[email protected]>
Signed-off-by: Arınç ÜNAL <[email protected]>
Reviewed-by: Sergio Paracuellos <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
arinc9 authored and davem330 committed Sep 23, 2022
1 parent 97721e8 commit 2b653a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/boot/dts/ralink/mt7621.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@
#address-cells = <1>;
#size-cells = <0>;

switch0: switch@0 {
switch0: switch@1f {
compatible = "mediatek,mt7621";
reg = <0>;
reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
reset-names = "mcm";
Expand Down

0 comments on commit 2b653a3

Please sign in to comment.