Skip to content

Commit

Permalink
dts:starfive:jh7110: set gmac phy tx_inverted for JH7110B+YT8531PHY.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
SaminGuo authored and jianlonghuang committed Nov 3, 2022
1 parent b04bf6b commit b516027
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
};

Expand All @@ -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>;
};
};

Expand Down

0 comments on commit b516027

Please sign in to comment.