Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3328-rock64.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2017 PINE64
4 */
5
6 /dts-v1/;
7 #include "rk3328.dtsi"
8
9 / {
10 model = "Pine64 Rock64";
11 compatible = "pine64,rock64", "rockchip,rk3328";
12
13 aliases {
14 ethernet0 = &gmac2io;
15 mmc0 = &sdmmc;
16 mmc1 = &emmc;
17 };
18
19 chosen {
20 stdout-path = "serial2:1500000n8";
21 };
22
23 gmac_clkin: external-gmac-clock {
24 compatible = "fixed-clock";
25 clock-frequency = <125000000>;
26 clock-output-names = "gmac_clkin";
27 #clock-cells = <0>;
28 };
29
30 vcc_sd: regulator-sdmmc {
31 compatible = "regulator-fixed";
32 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
33 pinctrl-names = "default";
34 pinctrl-0 = <&sdmmc0m1_pin>;
35 regulator-name = "vcc_sd";
36 regulator-min-microvolt = <3300000>;
37 regulator-max-microvolt = <3300000>;
38 vin-supply = <&vcc_io>;
39 };
40
41 /* Common enable line for all of the rails mentioned in the labels */
42 vcc_host_5v: vcc_host1_5v: vcc_otg_5v: regulator-vcc-host-5v {
43 compatible = "regulator-fixed";
44 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
45 pinctrl-names = "default";
46 pinctrl-0 = <&usb20_host_drv>;
47 regulator-name = "vcc_host_5v";
48 regulator-always-on;
49 regulator-boot-on;
50 vin-supply = <&vcc_sys>;
51 };
52
53 vcc_sys: regulator-vcc-sys {
54 compatible = "regulator-fixed";
55 regulator-name = "vcc_sys";
56 regulator-always-on;
57 regulator-boot-on;
58 regulator-min-microvolt = <5000000>;
59 regulator-max-microvolt = <5000000>;
60 };
61
62 ir-receiver {
63 compatible = "gpio-ir-receiver";
64 gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
65 pinctrl-0 = <&ir_int>;
66 pinctrl-names = "default";
67 };
68
69 leds {
70 compatible = "gpio-leds";
71
72 power_led: led-0 {
73 gpios = <&rk805 1 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "mmc0";
75 };
76
77 standby_led: led-1 {
78 gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "heartbeat";
80 };
81 };
82
83 spdif_sound: spdif-sound {
84 compatible = "simple-audio-card";
85 simple-audio-card,name = "SPDIF";
86
87 simple-audio-card,cpu {
88 sound-dai = <&spdif>;
89 };
90
91 simple-audio-card,codec {
92 sound-dai = <&spdif_dit>;
93 };
94 };
95
96 spdif_dit: spdif-dit {
97 compatible = "linux,spdif-dit";
98 #sound-dai-cells = <0>;
99 };
100 };
101
102 &analog_sound {
103 status = "okay";
104 };
105
106 &codec {
107 mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
108 status = "okay";
109 };
110
111 &cpu0 {
112 cpu-supply = <&vdd_arm>;
113 };
114
115 &cpu1 {
116 cpu-supply = <&vdd_arm>;
117 };
118
119 &cpu2 {
120 cpu-supply = <&vdd_arm>;
121 };
122
123 &cpu3 {
124 cpu-supply = <&vdd_arm>;
125 };
126
127 &emmc {
128 bus-width = <8>;
129 cap-mmc-highspeed;
130 mmc-hs200-1_8v;
131 non-removable;
132 pinctrl-names = "default";
133 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
134 vmmc-supply = <&vcc_io>;
135 vqmmc-supply = <&vcc18_emmc>;
136 status = "okay";
137 };
138
139 &gmac2io {
140 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
141 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
142 clock_in_out = "input";
143 phy-supply = <&vcc_io>;
144 phy-mode = "rgmii";
145 pinctrl-names = "default";
146 pinctrl-0 = <&rgmiim1_pins>;
147 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
148 snps,reset-active-low;
149 snps,reset-delays-us = <0 10000 50000>;
150 tx_delay = <0x24>;
151 rx_delay = <0x18>;
152 status = "okay";
153 };
154
155 &gpu {
156 mali-supply = <&vdd_logic>;
157 };
158
159 &hdmi {
160 avdd-0v9-supply = <&vdd_10>;
161 avdd-1v8-supply = <&vcc_18>;
162 status = "okay";
163 };
164
165 &hdmi_sound {
166 status = "okay";
167 };
168
169 &hdmiphy {
170 status = "okay";
171 };
172
173 &i2c1 {
174 status = "okay";
175
176 rk805: pmic@18 {
177 compatible = "rockchip,rk805";
178 reg = <0x18>;
179 interrupt-parent = <&gpio2>;
180 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
181 #clock-cells = <1>;
182 clock-output-names = "xin32k", "rk805-clkout2";
183 gpio-controller;
184 #gpio-cells = <2>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pmic_int_l>;
187 system-power-controller;
188 wakeup-source;
189
190 vcc1-supply = <&vcc_sys>;
191 vcc2-supply = <&vcc_sys>;
192 vcc3-supply = <&vcc_sys>;
193 vcc4-supply = <&vcc_sys>;
194 vcc5-supply = <&vcc_io>;
195 vcc6-supply = <&vcc_sys>;
196
197 regulators {
198 vdd_logic: DCDC_REG1 {
199 regulator-name = "vdd_logic";
200 regulator-min-microvolt = <712500>;
201 regulator-max-microvolt = <1450000>;
202 regulator-ramp-delay = <12500>;
203 regulator-always-on;
204 regulator-boot-on;
205 regulator-state-mem {
206 regulator-on-in-suspend;
207 regulator-suspend-microvolt = <1000000>;
208 };
209 };
210
211 vdd_arm: DCDC_REG2 {
212 regulator-name = "vdd_arm";
213 regulator-min-microvolt = <712500>;
214 regulator-max-microvolt = <1450000>;
215 regulator-ramp-delay = <12500>;
216 regulator-always-on;
217 regulator-boot-on;
218 regulator-state-mem {
219 regulator-on-in-suspend;
220 regulator-suspend-microvolt = <950000>;
221 };
222 };
223
224 vcc_ddr: DCDC_REG3 {
225 regulator-name = "vcc_ddr";
226 regulator-always-on;
227 regulator-boot-on;
228 regulator-state-mem {
229 regulator-on-in-suspend;
230 };
231 };
232
233 vcc_io: DCDC_REG4 {
234 regulator-name = "vcc_io";
235 regulator-min-microvolt = <3300000>;
236 regulator-max-microvolt = <3300000>;
237 regulator-always-on;
238 regulator-boot-on;
239 regulator-state-mem {
240 regulator-on-in-suspend;
241 regulator-suspend-microvolt = <3300000>;
242 };
243 };
244
245 vcc_18: LDO_REG1 {
246 regulator-name = "vcc_18";
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
249 regulator-always-on;
250 regulator-boot-on;
251 regulator-state-mem {
252 regulator-on-in-suspend;
253 regulator-suspend-microvolt = <1800000>;
254 };
255 };
256
257 vcc18_emmc: LDO_REG2 {
258 regulator-name = "vcc18_emmc";
259 regulator-min-microvolt = <1800000>;
260 regulator-max-microvolt = <1800000>;
261 regulator-always-on;
262 regulator-boot-on;
263 regulator-state-mem {
264 regulator-on-in-suspend;
265 regulator-suspend-microvolt = <1800000>;
266 };
267 };
268
269 vdd_10: LDO_REG3 {
270 regulator-name = "vdd_10";
271 regulator-min-microvolt = <1000000>;
272 regulator-max-microvolt = <1000000>;
273 regulator-always-on;
274 regulator-boot-on;
275 regulator-state-mem {
276 regulator-on-in-suspend;
277 regulator-suspend-microvolt = <1000000>;
278 };
279 };
280 };
281 };
282 };
283
284 &i2s0 {
285 status = "okay";
286 };
287
288 &i2s1 {
289 status = "okay";
290 };
291
292 &io_domains {
293 status = "okay";
294
295 vccio1-supply = <&vcc_io>;
296 vccio2-supply = <&vcc18_emmc>;
297 vccio3-supply = <&vcc_io>;
298 vccio4-supply = <&vcc_18>;
299 vccio5-supply = <&vcc_io>;
300 vccio6-supply = <&vcc_io>;
301 pmuio-supply = <&vcc_io>;
302 };
303
304 &pinctrl {
305 ir {
306 ir_int: ir-int {
307 rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
308 };
309 };
310
311 pmic {
312 pmic_int_l: pmic-int-l {
313 rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
314 };
315 };
316
317 usb2 {
318 usb20_host_drv: usb20-host-drv {
319 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
320 };
321 };
322 };
323
324 &sdmmc {
325 bus-width = <4>;
326 cap-mmc-highspeed;
327 cap-sd-highspeed;
328 disable-wp;
329 max-frequency = <150000000>;
330 pinctrl-names = "default";
331 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
332 vmmc-supply = <&vcc_sd>;
333 status = "okay";
334 };
335
336 &spdif {
337 pinctrl-0 = <&spdifm0_tx>;
338 status = "okay";
339 };
340
341 &spi0 {
342 status = "okay";
343
344 flash@0 {
345 compatible = "jedec,spi-nor";
346 reg = <0>;
347
348 /* maximum speed for Rockchip SPI */
349 spi-max-frequency = <50000000>;
350 vcc-supply = <&vcc_io>;
351 };
352 };
353
354 &tsadc {
355 rockchip,hw-tshut-mode = <0>;
356 rockchip,hw-tshut-polarity = <0>;
357 status = "okay";
358 };
359
360 &uart2 {
361 status = "okay";
362 };
363
364 &u2phy {
365 status = "okay";
366
367 u2phy_host: host-port {
368 status = "okay";
369 };
370
371 u2phy_otg: otg-port {
372 status = "okay";
373 };
374 };
375
376 &usb20_otg {
377 dr_mode = "host";
378 status = "okay";
379 };
380
381 &usbdrd3 {
382 dr_mode = "host";
383 status = "okay";
384 };
385
386 &usb_host0_ehci {
387 status = "okay";
388 };
389
390 &usb_host0_ohci {
391 status = "okay";
392 };
393
394 &vop {
395 status = "okay";
396 };
397
398 &vop_mmu {
399 status = "okay";
400 };