dts:starfive:jh7110: set gmac phy tx_inverted for JH7110B+YT8531PHY.
authorSamin Guo <samin.guo@linux.starfivetech.com>
Wed, 12 Oct 2022 05:05:44 +0000 (13:05 +0800)
committerJianlong Huang <jianlong.huang@starfivetech.com>
Thu, 3 Nov 2022 09:24:52 +0000 (17:24 +0800)
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 <samin.guo@linux.starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi

index d9a797c42b1055eaa1ea1e94c90ec6f2d013b605..b146ad3166d1aeb2510fde5fe7680278e1edf9e7 100644 (file)
        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>;
        };
 };
 
        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>;
        };
 };