]> git.itanic.dy.fi Git - linux-stable/commitdiff
arm: dts: mt7623: change mt7530 switch address
authorArınç ÜNAL <arinc.unal@arinc9.com>
Fri, 10 Feb 2023 18:25:03 +0000 (21:25 +0300)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 9 Jun 2023 14:33:28 +0000 (16:33 +0200)
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>
arch/arm/boot/dts/mt7623a.dtsi
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
arch/arm/boot/dts/mt7623n-rfb-emmc.dts

index fbb5731a3a53556cbcea86d187d6021e07e3f191..dd522e508eb30b9cf8e016b08ea7783e56f3ee73 100644 (file)
@@ -36,9 +36,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 = <&ethsys MT2701_ETHSYS_MCM_RST>;
                        reset-names = "mcm";
index 8ae9a99f9e6d5d8bbd349e4e14ec48ac228333bf..b05479e055d49f5524545ee03c91fea52f9a31a2 100644 (file)
@@ -189,9 +189,9 @@ 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>;
index 5e328c2a6a6e393dff4e4e6844f5fa5d4c158f28..6b0c3d1006abe03b52ef579ff05ef5ce64cf9ffa 100644 (file)
@@ -185,9 +185,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>;