aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Tekieli <tekieli.lukasz@gmail.com>2024-01-28 20:22:48 +0100
committerLeo Yu-Chi Liang <ycliang@andestech.com>2024-01-31 16:52:49 +0800
commit70f150759b4dd7481664ebdcd99cfe8e5e2c2e4e (patch)
tree646154cbbb938defb913a1cc00e8f7b8be624491
parentc025c8afd4002ab795c4e0a8f2aebfbe32b91c2e (diff)
downloadu-boot-70f150759b4dd7481664ebdcd99cfe8e5e2c2e4e.zip
u-boot-70f150759b4dd7481664ebdcd99cfe8e5e2c2e4e.tar.gz
u-boot-70f150759b4dd7481664ebdcd99cfe8e5e2c2e4e.tar.bz2
board: visionfive2: configure PHY pad drive strength
Configure the pad drive strength register for both PHYs. The values correspond to what can be found in the Linux DTS for VisionFive2 v1.3b. Pad drive strength configuration is required for the phy0 to work correctly with 100Mbit links. Signed-off-by: Lukasz Tekieli <tekieli.lukasz@gmail.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
-rw-r--r--board/starfive/visionfive2/spl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c
index 911add4..1b49945 100644
--- a/board/starfive/visionfive2/spl.c
+++ b/board/starfive/visionfive2/spl.c
@@ -45,6 +45,10 @@ static const struct starfive_vf2_pro starfive_verb[] = {
{"/soc/ethernet@16030000/mdio/ethernet-phy@0",
"motorcomm,tx-clk-1000-inverted", NULL},
{"/soc/ethernet@16030000/mdio/ethernet-phy@0",
+ "motorcomm,rx-clk-drv-microamp", "3970"},
+ {"/soc/ethernet@16030000/mdio/ethernet-phy@0",
+ "motorcomm,rx-data-drv-microamp", "2910"},
+ {"/soc/ethernet@16030000/mdio/ethernet-phy@0",
"rx-internal-delay-ps", "1900"},
{"/soc/ethernet@16030000/mdio/ethernet-phy@0",
"tx-internal-delay-ps", "1500"},
@@ -54,6 +58,10 @@ static const struct starfive_vf2_pro starfive_verb[] = {
{ "/soc/ethernet@16040000/mdio/ethernet-phy@1",
"motorcomm,tx-clk-100-inverted", NULL},
{"/soc/ethernet@16040000/mdio/ethernet-phy@1",
+ "motorcomm,rx-clk-drv-microamp", "3970"},
+ {"/soc/ethernet@16040000/mdio/ethernet-phy@1",
+ "motorcomm,rx-data-drv-microamp", "2910"},
+ {"/soc/ethernet@16040000/mdio/ethernet-phy@1",
"rx-internal-delay-ps", "0"},
{"/soc/ethernet@16040000/mdio/ethernet-phy@1",
"tx-internal-delay-ps", "0"},