arm64: dts: lx2160a: add RGMII phy nodes
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 4 Dec 2019 16:58:28 +0000 (18:58 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Dec 2019 03:17:49 +0000 (11:17 +0800)
Annotate the EMDIO1 node and describe the 2 AR8035 RGMII PHYs.
Also, add phy-handles for dpmac17 and dpmac18 to its associated PHY.
The MAC is not capable to add the needed RGMII delays, thus the
"rgmii-id" phy-connection-type is used.

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

index c2817b7..51615de 100644 (file)
        status = "okay";
 };
 
+&dpmac17 {
+       phy-handle = <&rgmii_phy1>;
+       phy-connection-type = "rgmii-id";
+};
+
+&dpmac18 {
+       phy-handle = <&rgmii_phy2>;
+       phy-connection-type = "rgmii-id";
+};
+
+&emdio1 {
+       status = "okay";
+
+       rgmii_phy1: ethernet-phy@1 {
+               /* AR8035 PHY */
+               compatible = "ethernet-phy-id004d.d072";
+               reg = <0x1>;
+               eee-broken-1000t;
+       };
+
+       rgmii_phy2: ethernet-phy@2 {
+               /* AR8035 PHY */
+               compatible = "ethernet-phy-id004d.d072";
+               reg = <0x2>;
+               eee-broken-1000t;
+       };
+};
+
 &esdhc0 {
        sd-uhs-sdr104;
        sd-uhs-sdr50;