Skip to content

Commit 7f10de7

Browse files
committed
riscv: dts: starfive: Add full support for JH7110 and VisionFive 2 board
Merge all StarFive dts patches together. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
1 parent 697f493 commit 7f10de7

4 files changed

Lines changed: 1492 additions & 2 deletions

File tree

arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.2a.dts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@
1111
model = "StarFive VisionFive 2 v1.2A";
1212
compatible = "starfive,visionfive-2-v1.2a", "starfive,jh7110";
1313
};
14+
15+
&gmac1 {
16+
phy-mode = "rmii";
17+
assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>,
18+
<&syscrg JH7110_SYSCLK_GMAC1_RX>;
19+
assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>,
20+
<&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
21+
};
22+
23+
&phy0 {
24+
rx-internal-delay-ps = <1900>;
25+
tx-internal-delay-ps = <1350>;
26+
};

arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.3b.dts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,34 @@
1111
model = "StarFive VisionFive 2 v1.3B";
1212
compatible = "starfive,visionfive-2-v1.3b", "starfive,jh7110";
1313
};
14+
15+
&gmac0 {
16+
starfive,tx-use-rgmii-clk;
17+
assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
18+
assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
19+
};
20+
21+
&gmac1 {
22+
starfive,tx-use-rgmii-clk;
23+
assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>;
24+
assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
25+
};
26+
27+
&phy0 {
28+
motorcomm,tx-clk-adj-enabled;
29+
motorcomm,tx-clk-100-inverted;
30+
motorcomm,tx-clk-1000-inverted;
31+
motorcomm,rx-clk-drv-microamp = <3970>;
32+
motorcomm,rx-data-drv-microamp = <2910>;
33+
rx-internal-delay-ps = <1500>;
34+
tx-internal-delay-ps = <1500>;
35+
};
36+
37+
&phy1 {
38+
motorcomm,tx-clk-adj-enabled;
39+
motorcomm,tx-clk-100-inverted;
40+
motorcomm,rx-clk-drv-microamp = <3970>;
41+
motorcomm,rx-data-drv-microamp = <2910>;
42+
rx-internal-delay-ps = <300>;
43+
tx-internal-delay-ps = <0>;
44+
};

0 commit comments

Comments
 (0)