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

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/dts/p2020-post.dtsi
arch/powerpc/dts/p2020rdb-pc.dts
arch/powerpc/dts/p2020rdb-pc.dtsi [new file with mode: 0644]
arch/powerpc/dts/p2020rdb-pc_36b.dts
arch/powerpc/dts/pq3-etsec1-0.dtsi [new file with mode: 0644]
arch/powerpc/dts/pq3-etsec1-1.dtsi [new file with mode: 0644]
arch/powerpc/dts/pq3-etsec1-2.dtsi [new file with mode: 0644]
arch/powerpc/dts/pq3-etsec1-3.dtsi [new file with mode: 0644]

index 48989457df853b18967242ac96bd992091090703..6d46f7d8dd72710d4d53399b40de133e600122a4 100644 (file)
                status = "disabled";
        };
 
-       /include/ "pq3-i2c-0.dtsi"
-       /include/ "pq3-i2c-1.dtsi"
+/include/ "pq3-i2c-0.dtsi"
+/include/ "pq3-i2c-1.dtsi"
+
+/include/ "pq3-etsec1-0.dtsi"
+/include/ "pq3-etsec1-1.dtsi"
+/include/ "pq3-etsec1-2.dtsi"
 };
 
 /* PCIe controller base address 0x8000 */
index 5ae278cbfc585a71e9da8696073da21e74ff4114..b37931ac44913f7421ddeb55f8161714c70ba48d 100644 (file)
@@ -41,6 +41,7 @@
        };
 };
 
+/include/ "p2020rdb-pc.dtsi"
 /include/ "p2020-post.dtsi"
 
 &espi0 {
diff --git a/arch/powerpc/dts/p2020rdb-pc.dtsi b/arch/powerpc/dts/p2020rdb-pc.dtsi
new file mode 100644 (file)
index 0000000..0d2acc7
--- /dev/null
@@ -0,0 +1,50 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * P2020 RDB-PC Device Tree Source stub (no addresses or top-level ranges)
+ *
+ * Copyright 2011 Freescale Semiconductor Inc.
+ * Copyright 2020 NXP
+ */
+
+&soc {
+       mdio@24520 {
+               phy0: ethernet-phy@0 {
+                       interrupts = <3 1 0 0>;
+                       reg = <0x0>;
+                       };
+               phy1: ethernet-phy@1 {
+                       interrupts = <2 1 0 0>;
+                       reg = <0x1>;
+                       };
+       };
+
+       mdio@25520 {
+               tbi0: tbi-phy@11 {
+                       reg = <0x11>;
+                       device_type = "tbi-phy";
+               };
+       };
+
+       mdio@26520 {
+               status = "disabled";
+       };
+
+       enet0: ethernet@24000 {
+               phy-connection-type = "rgmii-id";
+               fixed-link {
+                       speed = <1000>;
+                       full-duplex;
+               };
+       };
+
+       enet1: ethernet@25000 {
+               tbi-handle = <&tbi0>;
+               phy-handle = <&phy0>;
+               phy-connection-type = "sgmii";
+       };
+
+       enet2: ethernet@26000 {
+               phy-handle = <&phy1>;
+               phy-connection-type = "rgmii-id";
+       };
+};
index 542fffc33ec66533e04eb06f1c7d62311d3658c5..ecdc022d9974b31898d8189ed83a16eb23aeacd0 100644 (file)
@@ -41,6 +41,7 @@
        };
 };
 
+/include/ "p2020rdb-pc.dtsi"
 /include/ "p2020-post.dtsi"
 
 &espi0 {
diff --git a/arch/powerpc/dts/pq3-etsec1-0.dtsi b/arch/powerpc/dts/pq3-etsec1-0.dtsi
new file mode 100644 (file)
index 0000000..8800243
--- /dev/null
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * PQ3 eTSEC device tree stub [ @ offsets 0x24000 ]
+ *
+ * Copyright 2011-2012 Freescale Semiconductor Inc.
+ * Copyright 2020 NXP
+ */
+
+ethernet@24000 {
+       #address-cells = <1>;
+       #size-cells = <1>;
+       cell-index = <0>;
+       device_type = "network";
+       model = "eTSEC";
+       compatible = "gianfar";
+       reg = <0x24000 0x1000>;
+       ranges = <0x0 0x24000 0x1000>;
+       fsl,magic-packet;
+       local-mac-address = [ 00 00 00 00 00 00 ];
+       interrupts = <29 2 0 0 30 2 0 0 34 2 0 0>;
+};
+
+mdio@24520 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       compatible = "fsl,gianfar-mdio";
+       reg = <0x24520 0x20>;
+};
diff --git a/arch/powerpc/dts/pq3-etsec1-1.dtsi b/arch/powerpc/dts/pq3-etsec1-1.dtsi
new file mode 100644 (file)
index 0000000..2bc62d1
--- /dev/null
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * PQ3 eTSEC device tree stub [ @ offsets 0x25000 ]
+ *
+ * Copyright 2011-2012 Freescale Semiconductor Inc.
+ * Copyright 2020 NXP
+ */
+
+ethernet@25000 {
+       #address-cells = <1>;
+       #size-cells = <1>;
+       cell-index = <1>;
+       device_type = "network";
+       model = "eTSEC";
+       compatible = "gianfar";
+       reg = <0x25000 0x1000>;
+       ranges = <0x0 0x25000 0x1000>;
+       fsl,magic-packet;
+       local-mac-address = [ 00 00 00 00 00 00 ];
+       interrupts = <35 2 0 0 36 2 0 0 40 2 0 0>;
+};
+
+mdio@25520 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       compatible = "fsl,gianfar-tbi";
+       reg = <0x25520 0x20>;
+};
diff --git a/arch/powerpc/dts/pq3-etsec1-2.dtsi b/arch/powerpc/dts/pq3-etsec1-2.dtsi
new file mode 100644 (file)
index 0000000..d45865f
--- /dev/null
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * PQ3 eTSEC device tree stub [ @ offsets 0x26000 ]
+ *
+ * Copyright 2011-2012 Freescale Semiconductor Inc.
+ * Copyright 2020 NXP
+ */
+
+ethernet@26000 {
+       #address-cells = <1>;
+       #size-cells = <1>;
+       cell-index = <2>;
+       device_type = "network";
+       model = "eTSEC";
+       compatible = "gianfar";
+       reg = <0x26000 0x1000>;
+       ranges = <0x0 0x26000 0x1000>;
+       fsl,magic-packet;
+       local-mac-address = [ 00 00 00 00 00 00 ];
+       interrupts = <31 2 0 0 32 2 0 0 33 2 0 0>;
+};
+
+mdio@26520 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       compatible = "fsl,gianfar-tbi";
+       reg = <0x26520 0x20>;
+};
diff --git a/arch/powerpc/dts/pq3-etsec1-3.dtsi b/arch/powerpc/dts/pq3-etsec1-3.dtsi
new file mode 100644 (file)
index 0000000..853a273
--- /dev/null
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * PQ3 eTSEC device tree stub [ @ offsets 0x27000 ]
+ *
+ * Copyright 2011-2012 Freescale Semiconductor Inc.
+ * Copyright 2020 NXP
+ */
+
+ethernet@27000 {
+       #address-cells = <1>;
+       #size-cells = <1>;
+       cell-index = <3>;
+       device_type = "network";
+       model = "eTSEC";
+       compatible = "gianfar";
+       reg = <0x27000 0x1000>;
+       ranges = <0x0 0x27000 0x1000>;
+       fsl,magic-packet;
+       local-mac-address = [ 00 00 00 00 00 00 ];
+       interrupts = <37 2 0 0 38 2 0 0 39 2 0 0>;
+};
+
+mdio@27520 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       compatible = "fsl,gianfar-tbi";
+       reg = <0x27520 0x20>;
+};