]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: visionfive2: configure PHY pad drive strength
authorLukasz Tekieli <tekieli.lukasz@gmail.com>
Sun, 28 Jan 2024 19:22:48 +0000 (20:22 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 31 Jan 2024 08:52:49 +0000 (16:52 +0800)
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>
board/starfive/visionfive2/spl.c

index 911add429df19cfdd2d418bd976c091166c7e135..1b49945d11b0b4f44848c08dabbd219e66f74dbe 100644 (file)
@@ -44,6 +44,10 @@ static const struct starfive_vf2_pro starfive_verb[] = {
                "motorcomm,tx-clk-100-inverted", NULL},
        {"/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",
@@ -53,6 +57,10 @@ static const struct starfive_vf2_pro starfive_verb[] = {
                "motorcomm,tx-clk-adj-enabled", NULL},
        { "/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",