Przeglądaj źródła

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.

If you do not configure tx_inverted_10/100/1000 in dts, the default is 0.

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
Samin Guo 1 rok temu
rodzic
commit
a953d55d4b
1 zmienionych plików z 8 dodań i 2 usunięć
  1. 8 2
      arch/riscv/dts/starfive_visionfive2.dts

+ 8 - 2
arch/riscv/dts/starfive_visionfive2.dts

@@ -66,7 +66,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>;
 	};
 };
 
@@ -76,8 +79,11 @@
 	#size-cells = <0>;
 	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>;
 	};
 };