From 028c6ae96c4c12ec2598429857e3ea30e62ae9a8 Mon Sep 17 00:00:00 2001 From: "yanhong.wang" Date: Wed, 3 Aug 2022 09:58:37 +0800 Subject: [PATCH] riscv:dts:jh7110: Add YT8521 phy delay_chain configuration Some gmac is not working with YT8521 PHY default delay configuration, so add phy node to set delay config.. Signed-off-by: yanhong.wang --- arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi index 8cbe905..251461f 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi @@ -382,13 +382,20 @@ &gmac0 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@0 { + rxc_dly_en = <0>; + tx_delay_sel_fe = <5>; + tx_delay_sel = <11>; + }; }; &gmac1 { #address-cells = <1>; #size-cells = <0>; status = "okay"; - phy0: ethernet-phy@0 { + phy1: ethernet-phy@1 { rxc-skew-ps = <1060>; txc-skew-ps = <1800>; reg = <0>; -- 2.7.4