diff options
author | Calvin Johnson <calvin.johnson@nxp.com> | 2018-11-20 21:52:03 +0530 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 16:10:52 +0800 |
commit | a8dcd1a058b60973b2f5e953e6ecc1dc48cd2966 (patch) | |
tree | b6d90275c32baba44377fccc0a1eede814656742 /arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | |
parent | 8e7862e54020575d4758a5a0c16c00f50af2d7c5 (diff) |
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 <calvin.johnson@nxp.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts')
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 23 |
1 files changed, 13 insertions, 10 deletions
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>; }; }; }; |