powerpc: dts: qoriq: update the mdio offsets under the second FMan v3
authorCamelia Groza <camelia.groza@nxp.com>
Tue, 13 Apr 2021 16:48:01 +0000 (19:48 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 15 Apr 2021 08:56:56 +0000 (14:26 +0530)
When two FMan's are present on a board, the MDIO nodes are found at the
same offsets inside each FMan. This causes "non unique device name"
errors when registering the MDIO nodes under the second FMan. Fix this
by updating the offsets of the MDIO nodes to include the parent FMan's
offset.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/dts/qoriq-fman3-1-10g-0.dtsi
arch/powerpc/dts/qoriq-fman3-1-10g-1.dtsi
arch/powerpc/dts/qoriq-fman3-1-1g-0.dtsi
arch/powerpc/dts/qoriq-fman3-1-1g-1.dtsi
arch/powerpc/dts/qoriq-fman3-1-1g-2.dtsi
arch/powerpc/dts/qoriq-fman3-1-1g-3.dtsi
arch/powerpc/dts/qoriq-fman3-1-1g-4.dtsi
arch/powerpc/dts/qoriq-fman3-1-1g-5.dtsi
arch/powerpc/dts/qoriq-fman3-1.dtsi
arch/powerpc/dts/t4240rdb.dts
arch/powerpc/dts/t4240si-post.dtsi

index 889c8d4..65bb8a4 100644 (file)
@@ -30,7 +30,7 @@ fman@500000 {
                pcsphy-handle = <&pcsphy14>;
        };
 
-       mdio@f1000 {
+       mdio@5f1000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index 2e45698..eb39d29 100644 (file)
@@ -30,7 +30,7 @@ fman@500000 {
                pcsphy-handle = <&pcsphy15>;
        };
 
-       mdio@f3000 {
+       mdio@5f3000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index b4ff19b..2f2209d 100644 (file)
@@ -29,7 +29,7 @@ fman@500000 {
                pcsphy-handle = <&pcsphy8>;
        };
 
-       mdio@e1000 {
+       mdio@5e1000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index 239c56a..11653c5 100644 (file)
@@ -29,7 +29,7 @@ fman@500000 {
                pcsphy-handle = <&pcsphy9>;
        };
 
-       mdio@e3000 {
+       mdio@5e3000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index 6e2bb00..ae27c7b 100644 (file)
@@ -29,7 +29,7 @@ fman@500000 {
                pcsphy-handle = <&pcsphy10>;
        };
 
-       mdio@e5000 {
+       mdio@5e5000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index 29dd94b..55ae549 100644 (file)
@@ -29,7 +29,7 @@ fman@500000 {
                pcsphy-handle = <&pcsphy11>;
        };
 
-       mdio@e7000 {
+       mdio@5e7000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index a5b4935..833cf3e 100644 (file)
@@ -29,7 +29,7 @@ fman@500000 {
                pcsphy-handle = <&pcsphy12>;
        };
 
-       mdio@e9000 {
+       mdio@5e9000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index 486c84b..81da55d 100644 (file)
@@ -29,7 +29,7 @@ fman@500000 {
                pcsphy-handle = <&pcsphy13>;
        };
 
-       mdio@eb000 {
+       mdio@5eb000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index d8609c3..9efcf26 100644 (file)
@@ -61,14 +61,14 @@ fman1: fman@500000 {
                reg = <0x87000 0x1000>;
        };
 
-       mdio1: mdio@fc000 {
+       mdio1: mdio@5fc000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xfc000 0x1000>;
        };
 
-       mdio@fd000 {
+       mdio@5fd000 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
index 6d31675..b3251e3 100644 (file)
                        phy-connection-type = "xgmii";
                };
 
-               mdio@fc000 {
+               mdio@5fc000 {
                        sgmiiphy21: ethernet-phy@0 {
                                reg = <0x0>;
                        };
                        };
                };
 
-               mdio@fd000 {
+               mdio@5fd000 {
                        xfiphy1: ethernet-phy@10 {
                                compatible = "ethernet-phy-id13e5.1002";
                                reg = <0x10>;
index f614d19..a596f48 100644 (file)
                enet15: ethernet@f2000 {
                };
 
-               mdio@fc000 {
+               mdio@5fc000 {
                        interrupts = <100 1 0 0>;
                };
 
-               mdio@fd000 {
+               mdio@5fd000 {
                        interrupts = <101 1 0 0>;
                };
        };