From a8dcd1a058b60973b2f5e953e6ecc1dc48cd2966 Mon Sep 17 00:00:00 2001 From: Calvin Johnson Date: Tue, 20 Nov 2018 21:52:03 +0530 Subject: arm64: dts: ls1012a: use phy-handle to handle phy params Replace properties "fsl,gemac-phy-id" and "fsl,pfe-phy-if-flags" and use phy-handle instead. Create mdio node with phy-handles defining PHYs available on the mdio bus. Signed-off-by: Calvin Johnson --- arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts') diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts index 4f18c150fa63..f658b7b71008 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts @@ -90,14 +90,9 @@ #size-cells = <0>; reg = <0x0>; /* GEM_ID */ fsl,gemac-bus-id = <0x0>; /* BUS_ID */ - fsl,gemac-phy-id = <0x2>; /* PHY_ID */ fsl,mdio-mux-val = <0x0>; phy-mode = "sgmii"; - fsl,pfe-phy-if-flags = <0x0>; - - mdio@0 { - reg = <0x1>; /* enabled/disabled */ - }; + phy-handle = <&sgmii_phy1>; }; ethernet@1 { @@ -106,13 +101,21 @@ #size-cells = <0>; reg = <0x1>; /* GEM_ID */ fsl,gemac-bus-id = <0x1>; /* BUS_ID */ - fsl,gemac-phy-id = <0x1>; /* PHY_ID */ fsl,mdio-mux-val = <0x0>; phy-mode = "sgmii"; - fsl,pfe-phy-if-flags = <0x0>; + phy-handle = <&sgmii_phy2>; + }; + + mdio@0 { + #address-cells = <1>; + #size-cells = <0>; + + sgmii_phy1: ethernet-phy@2 { + reg = <0x2>; + }; - mdio@0 { - reg = <0x0>; /* enabled/disabled */ + sgmii_phy2: ethernet-phy@1 { + reg = <0x1>; }; }; }; -- cgit v1.2.3