From 1c189e1aa7555b71d0903064c95797a27094afee Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Mon, 5 Dec 2022 17:25:19 -0600 Subject: bsps/zynqmp: Fix and update device trees Add ref-clock-num identifiers to the device tree to ensure that interfaces use the correct clocks even when some are not used due to unconnected MII busses. This also adjusts the default ZynqMP PHY attachment to RGMII-ID which was the default before device trees were introduced. --- bsps/aarch64/xilinx-zynqmp/fdt/zynqmp.dts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bsps/aarch64/xilinx-zynqmp/fdt/zynqmp.dts') diff --git a/bsps/aarch64/xilinx-zynqmp/fdt/zynqmp.dts b/bsps/aarch64/xilinx-zynqmp/fdt/zynqmp.dts index 65c7dcbba8..ec13563072 100644 --- a/bsps/aarch64/xilinx-zynqmp/fdt/zynqmp.dts +++ b/bsps/aarch64/xilinx-zynqmp/fdt/zynqmp.dts @@ -61,7 +61,8 @@ interrupt-parent = <0x01>; interrupts = <0x00 0x39 0x04>; reg = <0x00 0xff0b0000 0x00 0x1000>; - phy-mode = "sgmii"; + phy-mode = "rgmii-id"; + ref-clock-num = <0>; }; ethernet@ff0c0000 { @@ -70,7 +71,8 @@ interrupt-parent = <0x01>; interrupts = <0x00 0x3b 0x04>; reg = <0x00 0xff0c0000 0x00 0x1000>; - phy-mode = "sgmii"; + phy-mode = "rgmii-id"; + ref-clock-num = <1>; }; ethernet@ff0d0000 { @@ -79,7 +81,8 @@ interrupt-parent = <0x01>; interrupts = <0x00 0x3d 0x04>; reg = <0x00 0xff0d0000 0x00 0x1000>; - phy-mode = "sgmii"; + phy-mode = "rgmii-id"; + ref-clock-num = <2>; }; ethernet@ff0e0000 { @@ -88,7 +91,8 @@ interrupt-parent = <0x01>; interrupts = <0x00 0x3f 0x04>; reg = <0x00 0xff0e0000 0x00 0x1000>; - phy-mode = "sgmii"; + phy-mode = "rgmii-id"; + ref-clock-num = <3>; }; }; }; -- cgit v1.2.3