From: Samin Guo Date: Wed, 12 Oct 2022 05:05:44 +0000 (+0800) Subject: dts:starfive:jh7110: set gmac phy tx_inverted for JH7110B+YT8531PHY. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b516027b3e4ec522b457c6026a39735f16505d2b;p=platform%2Fkernel%2Flinux-starfive.git dts:starfive:jh7110: set gmac phy tx_inverted for JH7110B+YT8531PHY. JH7110B requires tx_inverted_10/100/1000 configuration, and different parameters may be required in 10M/100M/1000M mode. This parameter supports JH7110B+YT8531PHY by default. Other boards can modify the parameters of the tx_inverted_10/100/1000 to obtain support. Signed-off-by: Samin Guo --- diff --git a/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi index d9a797c42b10..b146ad3166d1 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi @@ -581,7 +581,10 @@ phy0: ethernet-phy@0 { rxc_dly_en = <1>; tx_delay_sel_fe = <5>; - tx_delay_sel = <9>; + tx_delay_sel = <0xb>; + tx_inverted_10 = <0x1>; + tx_inverted_100 = <0x1>; + tx_inverted_1000 = <0x1>; }; }; @@ -591,8 +594,11 @@ status = "okay"; phy1: ethernet-phy@1 { tx_delay_sel_fe = <5>; - tx_delay_sel = <9>; + tx_delay_sel = <0>; rxc_dly_en = <0>; + tx_inverted_10 = <0x1>; + tx_inverted_100 = <0x1>; + tx_inverted_1000 = <0x0>; }; };