summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
diff options
context:
space:
mode:
authorCalvin Johnson <calvin.johnson@nxp.com>2018-11-20 21:52:03 +0530
committerLi Yang <leoyang.li@nxp.com>2021-11-22 16:14:57 -0600
commit0188a6af4e01addcb5f97251a13b3049fa8c686a (patch)
treed105eaa6897b7d04e505d5af22762edde9d5bf5b /arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
parent66a1a4adb8a7834d392cfccbc56c70946320d836 (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.dts23
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 37828267a6d8..b587dd70e79c 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
@@ -126,14 +126,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 {
@@ -142,13 +137,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>;
};
};
};