diff options
author | Samin Guo <samin.guo@starfivetech.com> | 2022-11-01 04:47:48 +0300 |
---|---|---|
committer | Samin Guo <samin.guo@starfivetech.com> | 2022-11-01 11:24:08 +0300 |
commit | 460fe5dd0b3a288eb58bee6874683288bef671ce (patch) | |
tree | b5f7cfb1e82a4eb92a466c550617d7e9c36d8b3b /arch/riscv | |
parent | fe0ba7e18ed6fddfa4fe22e93cb1827d7a73a7a7 (diff) | |
download | u-boot-460fe5dd0b3a288eb58bee6874683288bef671ce.tar.xz |
dts:starfive:jh7110: set gmac phy tx_inverted for JH7110A/B.
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.
If you do not configure tx_inverted_10/100/1000 in dts, the default is
0.
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/dts/starfive_evb.dts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/riscv/dts/starfive_evb.dts b/arch/riscv/dts/starfive_evb.dts index 619317c3f4..24dc4d9a6e 100644 --- a/arch/riscv/dts/starfive_evb.dts +++ b/arch/riscv/dts/starfive_evb.dts @@ -58,13 +58,23 @@ &gmac0 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@0 { + rxc_dly_en = <1>; + tx_delay_sel_fe = <5>; + tx_delay_sel = <0xb>; + tx_inverted_10 = <0x0>; + tx_inverted_100 = <0x0>; + tx_inverted_1000 = <0x0>; + }; }; &gmac1 { status = "okay"; #address-cells = <1>; #size-cells = <0>; - phy0: ethernet-phy@0 { + phy1: ethernet-phy@1 { rxc-skew-ps = <1060>; txc-skew-ps = <1800>; reg = <0>; |