From d742d0388c84e392091c974d346fb42d1e0753c0 Mon Sep 17 00:00:00 2001 From: Ioana Ciornei Date: Thu, 15 Apr 2021 16:48:15 +0300 Subject: [PATCH] arm: dts: lx2160ardb: add DPMAC and PHY nodes for the Cortina PHY Annotate the external MDIO 1 with the Cortina PHY and make the dpmac2 node to point to the PHY through the phy-handle attribute. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a-rdb.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts index 5fbdd90701..79615cacc1 100644 --- a/arch/arm/dts/fsl-lx2160a-rdb.dts +++ b/arch/arm/dts/fsl-lx2160a-rdb.dts @@ -5,7 +5,7 @@ * Author: Priyanka Jain * Sriram Dash * - * Copyright 2018 NXP + * Copyright 2018-2021 NXP * */ @@ -21,6 +21,12 @@ }; }; +&dpmac2 { + status = "okay"; + phy-handle = <&cortina_phy>; + phy-connection-type = "xlaui4"; +}; + &dpmac3 { status = "okay"; phy-handle = <&aquantia_phy1>; @@ -47,6 +53,11 @@ &emdio1 { status = "okay"; + + cortina_phy: ethernet-phy@0 { + reg = <0x0>; + }; + rgmii_phy1: ethernet-phy@1 { /* AR8035 PHY - "compatible" property not strictly needed */ compatible = "ethernet-phy-id004d.d072"; -- 2.17.1