Debian Codegraph @

scripts/dtc/include-prefixes/riscv/starfive/jh7110-pine64-star64.dts

raw
1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2 /*
3 * Copyright (C) 2024 Henry Bell <[email protected]>
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>;
21 status = "okay";
22 };
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
43 &i2c0 {
44 status = "okay";
45 };
46
47 &mmc0 {
48 cap-mmc-highspeed;
49 cap-mmc-hw-reset;
50 mmc-ddr-1_8v;
51 mmc-hs200-1_8v;
52 vmmc-supply = <&vcc_3v3>;
53 vqmmc-supply = <&emmc_vdd>;
54 };
55
56 &mmc0_pins {
57 rst-pins {
58 pinmux = <GPIOMUX(62, GPOUT_SYS_SDIO0_RST,
59 GPOEN_ENABLE,
60 GPI_NONE)>;
61 bias-pull-up;
62 drive-strength = <12>;
63 input-disable;
64 input-schmitt-disable;
65 slew-rate = <0>;
66 };
67 };
68
69 &mmc1 {
70 cd-gpios = <&sysgpio 41 GPIO_ACTIVE_LOW>;
71 disable-wp;
72 };
73
74 &pcie1 {
75 status = "okay";
76 };
77
78 &phy0 {
79 rx-internal-delay-ps = <1500>;
80 motorcomm,rx-clk-drv-microamp = <2910>;
81 motorcomm,rx-data-drv-microamp = <2910>;
82 motorcomm,tx-clk-adj-enabled;
83 motorcomm,tx-clk-10-inverted;
84 motorcomm,tx-clk-100-inverted;
85 motorcomm,tx-clk-1000-inverted;
86 };
87
88 &phy1 {
89 rx-internal-delay-ps = <0>;
90 tx-internal-delay-ps = <300>;
91 motorcomm,rx-clk-drv-microamp = <2910>;
92 motorcomm,rx-data-drv-microamp = <2910>;
93 motorcomm,tx-clk-adj-enabled;
94 motorcomm,tx-clk-10-inverted;
95 motorcomm,tx-clk-100-inverted;
96 };
97
98 &pwm {
99 status = "okay";
100 };
101
102 &pwmdac {
103 status = "okay";
104 };
105
106 &spi0 {
107 status = "okay";
108 };
109
110 &sysgpio {
111 usb0_pins: usb0-0 {
112 vbus-pins {
113 pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,
114 GPOEN_ENABLE,
115 GPI_NONE)>;
116 bias-disable;
117 input-disable;
118 input-schmitt-disable;
119 slew-rate = <0>;
120 };
121 };
122 };
123
124 &usb0 {
125 dr_mode = "host";
126 pinctrl-names = "default";
127 pinctrl-0 = <&usb0_pins>;
128 status = "okay";
129 };
130
131 &usb_cdns3 {
132 phys = <&usbphy0>, <&pciephy0>;
133 phy-names = "cdns3,usb2-phy", "cdns3,usb3-phy";
134 };