blob: b764d4d92fd9026debfbe4f33336c0df0ac6b5ac [file] [log] [blame]
Tom Rini6b642ac2024-10-01 12:20:28 -06001// SPDX-License-Identifier: GPL-2.0 OR MIT
2/*
3 * Copyright (C) 2024 Henry Bell <dmoo_dv@protonmail.com>
4 */
5
6/dts-v1/;
7#include "jh7110-common.dtsi"
8
9/ {
10 model = "Pine64 Star64";
11 compatible = "pine64,star64", "starfive,jh7110";
12 aliases {
13 ethernet1 = &gmac1;
14 };
15};
16
17&gmac0 {
18 starfive,tx-use-rgmii-clk;
19 assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
20 assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
Tom Rini844493d2025-01-26 16:17:47 -060021 status = "okay";
Tom Rini6b642ac2024-10-01 12:20:28 -060022};
23
24&gmac1 {
25 phy-handle = <&phy1>;
26 phy-mode = "rgmii-id";
27 starfive,tx-use-rgmii-clk;
28 assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>;
29 assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
30 status = "okay";
31
32 mdio {
33 #address-cells = <1>;
34 #size-cells = <0>;
35 compatible = "snps,dwmac-mdio";
36
37 phy1: ethernet-phy@1 {
38 reg = <1>;
39 };
40 };
41};
42
Tom Rini844493d2025-01-26 16:17:47 -060043&i2c0 {
44 status = "okay";
45};
46
Tom Rini6b642ac2024-10-01 12:20:28 -060047&pcie1 {
48 status = "okay";
49};
50
51&phy0 {
Tom Rini9c8af152024-12-24 12:03:04 -060052 rx-internal-delay-ps = <1500>;
Tom Rini6b642ac2024-10-01 12:20:28 -060053 motorcomm,rx-clk-drv-microamp = <2910>;
54 motorcomm,rx-data-drv-microamp = <2910>;
55 motorcomm,tx-clk-adj-enabled;
56 motorcomm,tx-clk-10-inverted;
57 motorcomm,tx-clk-100-inverted;
58 motorcomm,tx-clk-1000-inverted;
59};
60
61&phy1 {
62 rx-internal-delay-ps = <0>;
63 tx-internal-delay-ps = <300>;
64 motorcomm,rx-clk-drv-microamp = <2910>;
65 motorcomm,rx-data-drv-microamp = <2910>;
66 motorcomm,tx-clk-adj-enabled;
67 motorcomm,tx-clk-10-inverted;
68 motorcomm,tx-clk-100-inverted;
69};
Tom Rini844493d2025-01-26 16:17:47 -060070
71&pwm {
72 status = "okay";
73};
74
75&pwmdac {
76 status = "okay";
77};
78
79&spi0 {
80 status = "okay";
81};
82
Tom Riniab06a532025-04-02 08:31:19 -060083&sysgpio {
84 usb0_pins: usb0-0 {
85 vbus-pins {
86 pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,
87 GPOEN_ENABLE,
88 GPI_NONE)>;
89 bias-disable;
90 input-disable;
91 input-schmitt-disable;
92 slew-rate = <0>;
93 };
94 };
95};
96
Tom Rini844493d2025-01-26 16:17:47 -060097&usb0 {
Tom Riniab06a532025-04-02 08:31:19 -060098 dr_mode = "host";
99 pinctrl-names = "default";
100 pinctrl-0 = <&usb0_pins>;
Tom Rini844493d2025-01-26 16:17:47 -0600101 status = "okay";
102};