summaryrefslogtreecommitdiff
path: root/arch/riscv/dts/starfive_evb.dts
diff options
context:
space:
mode:
authorSamin Guo <samin.guo@starfivetech.com>2022-11-01 04:47:48 +0300
committerSamin Guo <samin.guo@starfivetech.com>2022-11-01 11:24:08 +0300
commit460fe5dd0b3a288eb58bee6874683288bef671ce (patch)
treeb5f7cfb1e82a4eb92a466c550617d7e9c36d8b3b /arch/riscv/dts/starfive_evb.dts
parentfe0ba7e18ed6fddfa4fe22e93cb1827d7a73a7a7 (diff)
downloadu-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/dts/starfive_evb.dts')
-rw-r--r--arch/riscv/dts/starfive_evb.dts12
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>;