Skip to content

Commit

Permalink
riscv: dts: starfive: Add full support for JH7110 and VisionFive 2 board
Browse files Browse the repository at this point in the history
Merge all StarFive dts patches together.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
  • Loading branch information
hal-feng committed May 30, 2023
1 parent 3b01a16 commit 2e02831
Show file tree
Hide file tree
Showing 4 changed files with 1,016 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@
model = "StarFive VisionFive 2 v1.2A";
compatible = "starfive,visionfive-2-v1.2a", "starfive,jh7110";
};

&gmac1 {
phy-mode = "rmii";
assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>,
<&syscrg JH7110_SYSCLK_GMAC1_RX>;
assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>,
<&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
};

&phy0 {
rx-internal-delay-ps = <1900>;
tx-internal-delay-ps = <1350>;
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,34 @@
model = "StarFive VisionFive 2 v1.3B";
compatible = "starfive,visionfive-2-v1.3b", "starfive,jh7110";
};

&gmac0 {
starfive,tx-use-rgmii-clk;
assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
};

&gmac1 {
starfive,tx-use-rgmii-clk;
assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>;
assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
};

&phy0 {
motorcomm,tx-clk-adj-enabled;
motorcomm,tx-clk-100-inverted;
motorcomm,tx-clk-1000-inverted;
motorcomm,rx-clk-driver-strength = <0x6>;
motorcomm,rx-data-driver-strength = <0x3>;
rx-internal-delay-ps = <1500>;
tx-internal-delay-ps = <1500>;
};

&phy1 {
motorcomm,tx-clk-adj-enabled;
motorcomm,tx-clk-100-inverted;
motorcomm,rx-clk-driver-strength = <0x6>;
motorcomm,rx-data-driver-strength = <0x3>;
rx-internal-delay-ps = <300>;
tx-internal-delay-ps = <0>;
};
Loading

0 comments on commit 2e02831

Please sign in to comment.