arm64: dts: ls1088ardb: add necessary DTS nodes for DPMAC2
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 30 Oct 2020 11:35:49 +0000 (13:35 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 30 Nov 2020 14:30:29 +0000 (22:30 +0800)
Annotate the external MDIO2 node and describe the 10GBASER PHY found on
the LS1088ARDB board and add a phy-handle for DPMAC2 to link it.
Also, add the internal PCS MDIO node for the internal MDIO buses found
on the LS1088A SoC along with its internal PCS PHY and link the
corresponding DPMAC to the PCS through the pcs-handle.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi

index e28443ba263333619c4c93f434d758a65d3379fe..528ec72d0b83888b56def17fae4580cd961d4b0f 100644 (file)
        compatible = "fsl,ls1088a-rdb", "fsl,ls1088a";
 };
 
+&dpmac2 {
+       phy-handle = <&mdio2_aquantia_phy>;
+       phy-connection-type = "10gbase-r";
+       pcs-handle = <&pcs2>;
+};
+
 &dpmac3 {
        phy-handle = <&mdio1_phy5>;
        phy-connection-type = "qsgmii";
        };
 };
 
+&emdio2 {
+       status = "okay";
+
+       mdio2_aquantia_phy: ethernet-phy@0 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x0>;
+       };
+};
+
 &i2c0 {
        status = "okay";
 
        status = "okay";
 };
 
+&pcs_mdio2 {
+       status = "okay";
+};
+
 &pcs_mdio3 {
        status = "okay";
 };
index 80ed64cdb73e94b90ca1fe1a2925a714afcd5e97..9c9c323cc3cdd3b7c5fcb38ddd735a132e2c5401 100644 (file)
                        status = "disabled";
                };
 
+               pcs_mdio2: mdio@8c0b000 {
+                       compatible = "fsl,fman-memac-mdio";
+                       reg = <0x0 0x8c0b000 0x0 0x1000>;
+                       little-endian;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+
+                       pcs2: ethernet-phy@0 {
+                               reg = <0>;
+                       };
+               };
+
                pcs_mdio3: mdio@8c0f000 {
                        compatible = "fsl,fman-memac-mdio";
                        reg = <0x0 0x8c0f000 0x0 0x1000>;