starfive: add new target for StarFive JH7100/7110 SoC
[openwrt/staging/981213.git] / target / linux / starfive / patches-6.1 / 0050-riscv-dts-starfive-visionfive-2-v1.3B-Set-the-driver.patch
1 From c156cb9ec64669600c96dbb01bf38dd2370b1850 Mon Sep 17 00:00:00 2001
2 From: Samin Guo <samin.guo@starfivetech.com>
3 Date: Wed, 26 Apr 2023 14:41:12 +0800
4 Subject: [PATCH 050/122] riscv: dts: starfive: visionfive-2-v1.3B: Set the
5 driver strength of RXC/RXD
6
7 VisionFive 2 v1.3B needs to increase the driver strength of rxd/rxc
8 to increase the stability of gmac's transmission.
9
10 Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
11 ---
12 .../boot/dts/starfive/jh7110-starfive-visionfive-2-v1.3b.dts | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.3b.dts
16 +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.3b.dts
17 @@ -28,6 +28,8 @@
18 motorcomm,tx-clk-adj-enabled;
19 motorcomm,tx-clk-100-inverted;
20 motorcomm,tx-clk-1000-inverted;
21 + rx-clk-driver-strength = <0x6>;
22 + rx-data-driver-strength = <0x3>;
23 rx-internal-delay-ps = <1500>;
24 tx-internal-delay-ps = <1500>;
25 };
26 @@ -35,6 +37,8 @@
27 &phy1 {
28 motorcomm,tx-clk-adj-enabled;
29 motorcomm,tx-clk-100-inverted;
30 + rx-clk-driver-strength = <0x6>;
31 + rx-data-driver-strength = <0x3>;
32 rx-internal-delay-ps = <300>;
33 tx-internal-delay-ps = <0>;
34 };