]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dts: powerpc: p1010rdb: Add eTSEC DT nodes
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Mon, 21 Sep 2020 09:43:22 +0000 (15:13 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 24 Sep 2020 12:27:44 +0000 (08:27 -0400)
P1010RDB implements 3 enhanced three-speed Ethernet controllers,
and the connection is shown below:
    eTSEC1: Connected to RGMII PHY AR8033
    eTSEC2: Connected to SGMII PHY AR8033
    eTSEC3: Connected to SGMII PHY AR8033

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/dts/p1010rdb.dtsi
arch/powerpc/dts/p1010si-post.dtsi

index 20bd57029923dbcbcd20f358231de5d3df0885e0..c2aecde134d2bb8a00280fab3fbdfe3b37565d2d 100644 (file)
 };
 
 &soc {
+       mdio@24000 {
+               phy0: ethernet-phy@0 {
+                       reg = <0x1>;
+               };
+
+               phy1: ethernet-phy@1 {
+                       reg = <0x0>;
+               };
+
+               phy2: ethernet-phy@2 {
+                       reg = <0x2>;
+               };
+
+               tbi-phy@3 {
+                       device_type = "tbi-phy";
+                       reg = <0x3>;
+               };
+       };
+
+       mdio@25000 {
+               tbi0: tbi-phy@11 {
+                       reg = <0x11>;
+                       device_type = "tbi-phy";
+               };
+       };
+
+       mdio@26000 {
+               tbi1: tbi-phy@11 {
+                       reg = <0x11>;
+                       device_type = "tbi-phy";
+               };
+       };
+
+       enet0: ethernet@b0000 {
+               phy-handle = <&phy0>;
+               phy-connection-type = "rgmii-id";
+       };
+
+       enet1: ethernet@b1000 {
+               phy-handle = <&phy1>;
+               tbi-handle = <&tbi0>;
+               phy-connection-type = "sgmii";
+       };
+
+       enet2: ethernet@b2000 {
+               phy-handle = <&phy2>;
+               tbi-handle = <&tbi1>;
+               phy-connection-type = "sgmii";
+       };
+
        i2c@3000 {
                rtc@68 {
                        compatible = "pericom,pt7c4338";
index aa04f5f0336279b57df4115eee74153788381952..2e7eb0e2fb1c7d6c7461c7d8201a441939061c75 100644 (file)
 
 /include/ "pq3-i2c-0.dtsi"
 /include/ "pq3-i2c-1.dtsi"
+
+/include/ "pq3-etsec2-0.dtsi"
+       enet0: ethernet@b0000 {
+               queue-group@b0000 {
+                       fsl,rx-bit-map = <0xff>;
+                       fsl,tx-bit-map = <0xff>;
+               };
+       };
+
+/include/ "pq3-etsec2-1.dtsi"
+       enet1: ethernet@b1000 {
+               queue-group@b1000 {
+                       fsl,rx-bit-map = <0xff>;
+                       fsl,tx-bit-map = <0xff>;
+               };
+       };
+
+/include/ "pq3-etsec2-2.dtsi"
+       enet2: ethernet@b2000 {
+               queue-group@b2000 {
+                       fsl,rx-bit-map = <0xff>;
+                       fsl,tx-bit-map = <0xff>;
+               };
+
+       };
 };
 
 /* controller at 0x9000 */