mediatek: correct address of MT753x switch IC
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Thu, 9 May 2024 11:11:16 +0000 (13:11 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 9 May 2024 17:43:54 +0000 (19:43 +0200)
Continuation of commit 8b66f1a. Set the switch address on the MDIO bus to 31.
This is required for all boards currently working with the mt7530 DSA driver.

Fixes: #15419
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
target/linux/mediatek/dts/mt7622-netgear-wax206.dts
target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi

index ce1cd46d2d96de26b3094029889f11b04e0d70e2..524a49874089fb6ce7712bace140805d4ad939c1 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
-               switch@0 {
+               switch@1f {
                        compatible = "mediatek,mt7531";
+                       reg = <31>;
                        #interrupt-cells = <1>;
                        interrupt-controller;
                        interrupt-parent = <&pio>;
                        interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
-                       reg = <0>;
                        reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
 
                        ports {
index a4e443a0fb6f9d1f2196b3d0d3ce9d97a5f74d70..fedf8b859661f864cf67dd706b564f85e52150c3 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
-               mt7530: switch@0 {
-                       compatible = "mediatek,mt7530";
+               mt7530: switch@1f {
                };
        };
 };
 
 &mt7530 {
        compatible = "mediatek,mt7530";
+       reg = <31>;
        #address-cells = <1>;
        #size-cells = <0>;
-       reg = <0>;
        pinctrl-names = "default";
        mediatek,mcm;
        resets = <&ethsys 2>;