Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 OR MIT |
| 2 | /* |
| 3 | * Copyright (C) 2022 StarFive Technology Co., Ltd. |
| 4 | * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk> |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | #include "jh7110-starfive-visionfive-2.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "StarFive VisionFive 2 v1.3B"; |
| 12 | compatible = "starfive,visionfive-2-v1.3b", "starfive,jh7110"; |
| 13 | }; |
| 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 | }; |