blob: 246a892cb7cb124ab4845d77be9739b9a8fabdc3 [file] [log] [blame]
Tom Rini8b0c8a12018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR X11
Philipp Tomsich3093d202017-03-28 18:48:51 +02002/*
3 * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
Philipp Tomsich3093d202017-03-28 18:48:51 +02004 */
5
Philipp Tomsich3093d202017-03-28 18:48:51 +02006#include <dt-bindings/pwm/pwm.h>
7#include "rk3399.dtsi"
Philipp Tomsich3093d202017-03-28 18:48:51 +02008
9/ {
10 model = "Theobroma Systems RK3399-Q7 SoM";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020011 compatible = "tsd,rk3399-q7", "tsd,puma", "rockchip,rk3399";
Philipp Tomsich3093d202017-03-28 18:48:51 +020012
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020013 leds {
14 compatible = "gpio-leds";
15 pinctrl-names = "default";
16 pinctrl-0 = <&leds_pins_puma>;
17
18 module_led {
19 label = "module_led";
Klaus Gogerde02bc62017-11-06 23:02:54 +010020 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020021 linux,default-trigger = "heartbeat";
22 };
23
24 sd_card_led {
25 label = "sd_card_led";
Klaus Gogerde02bc62017-11-06 23:02:54 +010026 gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020027 linux,default-trigger = "mmc0";
28 };
29 };
30
31 clkin_gmac: external-gmac-clock {
32 compatible = "fixed-clock";
33 clock-frequency = <125000000>;
34 clock-output-names = "clkin_gmac";
35 #clock-cells = <0>;
36 };
37
38 dw_hdmi_audio: dw-hdmi-audio {
39 status = "enabled";
40 compatible = "rockchip,dw-hdmi-audio";
41 #sound-dai-cells = <0>;
42 };
43
44 hdmi_codec: hdmi-codec {
45 compatible = "simple-audio-card";
46 simple-audio-card,format = "i2s";
47 simple-audio-card,mclk-fs = <256>;
48 simple-audio-card,name = "HDMI-CODEC";
49
50 simple-audio-card,cpu {
51 sound-dai = <&i2s2>;
52 };
53
54 simple-audio-card,codec {
55 sound-dai = <&hdmi>;
56 };
57 };
58
59 hdmi_sound: hdmi-sound {
60 status = "disabled";
61 compatible = "simple-audio-card";
62 simple-audio-card,format = "i2s";
63 simple-audio-card,mclk-fs = <256>;
64 simple-audio-card,name = "rockchip,hdmi";
65
66 simple-audio-card,cpu {
67 sound-dai = <&i2s2>;
68 };
69 simple-audio-card,codec {
70 sound-dai = <&hdmi>;
71 };
72 };
73
Philipp Tomsich0502b812017-09-12 17:30:57 +020074 usbhub_enable: usbhub_enable {
75 compatible = "regulator-fixed";
76 regulator-name = "usbhub_enable";
77 enable-active-low;
Klaus Gogerde02bc62017-11-06 23:02:54 +010078 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
Christoph Muellner44e19102018-12-12 01:32:59 +010079 pinctrl-names = "default";
80 pinctrl-0 = <&host_vbus_drv>;
Philipp Tomsich0502b812017-09-12 17:30:57 +020081 regulator-boot-on;
82 regulator-min-microvolt = <3300000>;
83 regulator-max-microvolt = <3300000>;
84 };
85
Philipp Tomsich75fc2082017-09-29 19:28:01 +020086 /*
87 * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
88 * eMMC and SPI flash powered-down initially (in fact it keeps the
89 * reset signal asserted). Even though it is an enable signal, we
90 * model this as a regulator.
91 */
92 bios_enable: bios_enable {
93 compatible = "regulator-fixed";
Philipp Tomsich75fc2082017-09-29 19:28:01 +020094 regulator-name = "bios_enable";
Philipp Tomsich3b7d8132017-11-06 23:02:51 +010095 enable-active-high;
Klaus Gogerde02bc62017-11-06 23:02:54 +010096 gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
Philipp Tomsich75fc2082017-09-29 19:28:01 +020097 regulator-always-on;
98 regulator-boot-on;
99 regulator-min-microvolt = <1800000>;
100 regulator-max-microvolt = <1800000>;
101 };
102
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200103 vccadc_ref: vccadc-ref {
104 compatible = "regulator-fixed";
105 regulator-name = "vcc1v8_sys";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200106 regulator-always-on;
107 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200108 regulator-min-microvolt = <1800000>;
109 regulator-max-microvolt = <1800000>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200110 };
111
112 vcc3v3_sys: vcc3v3-sys {
113 compatible = "regulator-fixed";
114 regulator-name = "vcc3v3_sys";
115 regulator-always-on;
116 regulator-boot-on;
117 regulator-min-microvolt = <3300000>;
118 regulator-max-microvolt = <3300000>;
119 };
120
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200121 vcc5v0_otg: vcc5v0-otg-regulator {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200122 compatible = "regulator-fixed";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200123 enable-active-high;
Klaus Gogerde02bc62017-11-06 23:02:54 +0100124 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200125 pinctrl-names = "default";
126 pinctrl-0 = <&otg_vbus_drv>;
127 regulator-name = "vcc5v0_otg";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200128 regulator-always-on;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200129 };
130
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200131 vcc5v0_sys: vcc5v0-sys {
132 compatible = "regulator-fixed";
133 regulator-name = "vcc5v0_sys";
134 regulator-always-on;
135 regulator-boot-on;
136 regulator-min-microvolt = <5000000>;
137 regulator-max-microvolt = <5000000>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200138 };
139
140 vcc_phy: vcc-phy-regulator {
141 compatible = "regulator-fixed";
142 regulator-name = "vcc_phy";
143 regulator-always-on;
144 regulator-boot-on;
145 };
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200146
147 vdd_log: vdd-log {
148 compatible = "pwm-regulator";
149 pwms = <&pwm2 0 25000 1>;
150 regulator-name = "vdd_log";
151 regulator-min-microvolt = <800000>;
152 regulator-max-microvolt = <1400000>;
153 regulator-always-on;
154 regulator-boot-on;
Christoph Muellner8719c7b2019-01-02 15:09:22 +0100155 regulator-init-microvolt = <950000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200156 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200157};
158
159&emmc_phy {
160 status = "okay";
161};
162
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200163&gmac {
164 phy-supply = <&vcc_phy>;
165 phy-mode = "rgmii";
166 clock_in_out = "input";
Klaus Gogerde02bc62017-11-06 23:02:54 +0100167 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200168 snps,reset-active-low;
169 snps,reset-delays-us = <2 10000 50000>;
170 assigned-clocks = <&cru SCLK_RMII_SRC>;
171 assigned-clock-parents = <&clkin_gmac>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&rgmii_pins>;
174 tx_delay = <0x10>;
175 rx_delay = <0x10>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200176 status = "okay";
177};
178
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200179&hdmi {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200180 #sound-dai-cells = <0>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200181 status = "okay";
182};
183
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200184&i2c0 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200185 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200186 i2c-scl-rising-time-ns = <168>;
187 i2c-scl-falling-time-ns = <4>;
188 clock-frequency = <400000>;
189
Philipp Tomsichd47f7c72018-11-30 20:00:10 +0100190 vdd_gpu: vdd_gpu {
191 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200192 compatible = "fcs,fan53555";
193 reg = <0x60>;
Klaus Gogerde02bc62017-11-06 23:02:54 +0100194 vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200195 vin-supply = <&vcc5v0_sys>;
196 regulator-compatible = "fan53555-reg";
197 regulator-name = "vdd_gpu";
198 regulator-min-microvolt = <600000>;
199 regulator-max-microvolt = <1230000>;
200 regulator-ramp-delay = <1000>;
201 fcs,suspend-voltage-selector = <1>;
202 regulator-always-on;
203 regulator-boot-on;
204 regulator-initial-state = <3>;
205 regulator-state-mem {
206 regulator-off-in-suspend;
207 };
208 };
209
210 rk808: pmic@1b {
211 compatible = "rockchip,rk808";
212 reg = <0x1b>;
213 interrupt-parent = <&gpio1>;
214 interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt?
215 pinctrl-names = "default";
216 pinctrl-0 = <&pmic_int_l>;
217 rockchip,system-power-controller;
218 wakeup-source;
219 #clock-cells = <1>;
220 clock-output-names = "xin32k", "rk808-clkout2";
221
222 vcc1-supply = <&vcc5v0_sys>;
223 vcc2-supply = <&vcc5v0_sys>;
224 vcc3-supply = <&vcc5v0_sys>;
225 vcc4-supply = <&vcc5v0_sys>;
226 vcc6-supply = <&vcc5v0_sys>;
227 vcc7-supply = <&vcc5v0_sys>;
228 vcc8-supply = <&vcc3v3_sys>;
229 vcc9-supply = <&vcc5v0_sys>;
230 vcc10-supply = <&vcc5v0_sys>;
231 vcc11-supply = <&vcc5v0_sys>;
232 vcc12-supply = <&vcc3v3_sys>;
233 vddio-supply = <&vcc1v8_pmu>;
234
235 regulators {
236 vdd_center: DCDC_REG1 {
237 regulator-always-on;
238 regulator-boot-on;
239 regulator-min-microvolt = <750000>;
240 regulator-max-microvolt = <1350000>;
241 regulator-ramp-delay = <6001>;
242 regulator-name = "vdd_center";
243 regulator-state-mem {
244 regulator-off-in-suspend;
245 };
246 };
247
248 vdd_cpu_l: DCDC_REG2 {
249 regulator-always-on;
250 regulator-boot-on;
251 regulator-min-microvolt = <750000>;
252 regulator-max-microvolt = <1350000>;
253 regulator-ramp-delay = <6001>;
254 regulator-name = "vdd_cpu_l";
255 regulator-state-mem {
256 regulator-off-in-suspend;
257 };
258 };
259
260 vcc_ddr: DCDC_REG3 {
261 regulator-always-on;
262 regulator-boot-on;
263 regulator-name = "vcc_ddr";
264 regulator-state-mem {
265 regulator-on-in-suspend;
266 };
267 };
268
269 vcc_1v8: DCDC_REG4 {
270 regulator-always-on;
271 regulator-boot-on;
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
274 regulator-name = "vcc_1v8";
275 regulator-state-mem {
276 regulator-on-in-suspend;
277 regulator-suspend-microvolt = <1800000>;
278 };
279 };
280
281 vcc_ldo1: LDO_REG1 {
282 regulator-boot-on;
283 regulator-min-microvolt = <1800000>;
284 regulator-max-microvolt = <1800000>;
285 regulator-name = "vcc_ldo1";
286 regulator-state-mem {
287 regulator-off-in-suspend;
288 };
289 };
290
291 vcc1v8_hdmi: LDO_REG2 {
292 regulator-always-on;
293 regulator-boot-on;
294 regulator-min-microvolt = <1800000>;
295 regulator-max-microvolt = <1800000>;
296 regulator-name = "vcc1v8_hdmi";
297 regulator-state-mem {
298 regulator-off-in-suspend;
299 };
300 };
301
302 vcc1v8_pmu: LDO_REG3 {
303 regulator-always-on;
304 regulator-boot-on;
305 regulator-min-microvolt = <1800000>;
306 regulator-max-microvolt = <1800000>;
307 regulator-name = "vcc1v8_pmu";
308 regulator-state-mem {
309 regulator-on-in-suspend;
310 regulator-suspend-microvolt = <1800000>;
311 };
312 };
313
314 vcc_sd: LDO_REG4 {
315 regulator-always-on;
316 regulator-boot-on;
317 regulator-min-microvolt = <1800000>;
Klaus Gogere7b89402017-11-06 23:02:55 +0100318 regulator-max-microvolt = <3000000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200319 regulator-name = "vcc_sd";
320 regulator-state-mem {
321 regulator-on-in-suspend;
Klaus Gogere7b89402017-11-06 23:02:55 +0100322 regulator-suspend-microvolt = <3000000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200323 };
324 };
325
326 vcc_ldo5: LDO_REG5 {
327 regulator-boot-on;
328 regulator-min-microvolt = <3000000>;
329 regulator-max-microvolt = <3000000>;
330 regulator-name = "vcc_ldo5";
331 regulator-state-mem {
332 regulator-off-in-suspend;
333 };
334 };
335
336 vcc_ldo6: LDO_REG6 {
337 regulator-boot-on;
338 regulator-min-microvolt = <1500000>;
339 regulator-max-microvolt = <1500000>;
340 regulator-name = "vcc_ldo6";
341 regulator-state-mem {
342 regulator-off-in-suspend;
343 };
344 };
345
346 vcc0v9_hdmi: LDO_REG7 {
347 regulator-always-on;
348 regulator-boot-on;
349 regulator-min-microvolt = <900000>;
350 regulator-max-microvolt = <900000>;
351 regulator-name = "vcc0v9_hdmi";
352 regulator-state-mem {
353 regulator-off-in-suspend;
354 };
355 };
356
357 vcc_efuse: LDO_REG8 {
358 regulator-always-on;
359 regulator-boot-on;
360 regulator-min-microvolt = <1800000>;
361 regulator-max-microvolt = <1800000>;
362 regulator-name = "vcc_efuse";
363 regulator-state-mem {
364 regulator-off-in-suspend;
365 };
366 };
367
368 vcc3v3_s3: SWITCH_REG1 {
369 regulator-always-on;
370 regulator-boot-on;
371 regulator-name = "vcc3v3_s3";
372 regulator-state-mem {
373 regulator-off-in-suspend;
374 };
375 };
376
377 vcc3v3_s0: SWITCH_REG2 {
378 regulator-always-on;
379 regulator-boot-on;
380 regulator-name = "vcc3v3_s0";
381 regulator-state-mem {
382 regulator-off-in-suspend;
383 };
384 };
385 };
386 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200387};
388
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200389&i2c8 {
390 status = "okay";
391 clock-frequency = <400000>;
392
Philipp Tomsichd47f7c72018-11-30 20:00:10 +0100393 vdd_cpu_b: vdd_cpu_b {
394 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200395 compatible = "fcs,fan53555";
396 reg = <0x60>;
Klaus Gogerde02bc62017-11-06 23:02:54 +0100397 vsel-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200398 vin-supply = <&vcc5v0_sys>;
399 regulator-compatible = "fan53555-reg";
400 regulator-name = "vdd_cpu_b";
401 regulator-min-microvolt = <600000>;
402 regulator-max-microvolt = <1230000>;
403 regulator-ramp-delay = <1000>;
404 fcs,suspend-voltage-selector = <1>;
405 regulator-always-on;
406 regulator-boot-on;
407 regulator-initial-state = <3>;
408 regulator-state-mem {
409 regulator-off-in-suspend;
410 };
411 };
412};
413
414&i2s0 {
415 status = "okay";
416 rockchip,i2s-broken-burst-len;
417 rockchip,playback-channels = <8>;
418 rockchip,capture-channels = <8>;
419 #sound-dai-cells = <0>;
420};
421
422&i2s2 {
423 #sound-dai-cells = <0>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200424 status = "okay";
425};
426
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200427&io_domains {
428 status = "okay";
429
430 bt656-supply = <&vcc_1v8>; /* bt656_gpio2ab_ms */
431 audio-supply = <&vcc_1v8>; /* audio_gpio3d4a_ms */
432 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
433 gpio1830-supply = <&vcc_1v8>; /* gpio1833_gpio4cd_ms */
434};
435
436&pcie0 {
437 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
438 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
439 assigned-clock-rates = <100000000>;
Klaus Gogerde02bc62017-11-06 23:02:54 +0100440 ep-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200441 num-lanes = <4>;
442 pinctrl-names = "default";
443 pinctrl-0 = <&pcie_clkreqn>;
444 status = "okay";
445};
446
447&pcie_phy {
Philipp Tomsich75fc2082017-09-29 19:28:01 +0200448 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200449};
450
451&pmu_io_domains {
452 status = "okay";
453 pmu1830-supply = <&vcc_1v8>;
454};
455
456&pwm0 {
457 status = "okay";
458};
459
460&pwm2 {
461 status = "okay";
462};
463
Philipp Tomsich3093d202017-03-28 18:48:51 +0200464&sdhci {
465 bus-width = <8>;
466 mmc-hs400-1_8v;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200467 supports-emmc;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200468 non-removable;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200469 keep-power-in-suspend;
470 mmc-hs400-enhanced-strobe;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200471 status = "okay";
472};
473
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200474&sdmmc {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200475 clock-frequency = <150000000>;
Philipp Tomsichd9d592b2018-11-30 18:58:58 +0100476 max-frequency = <40000000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200477 supports-sd;
478 bus-width = <4>;
479 cap-mmc-highspeed;
480 cap-sd-highspeed;
481 disable-wp;
482 num-slots = <1>;
483 vqmmc-supply = <&vcc_sd>;
484 pinctrl-names = "default";
485 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200486 status = "okay";
487};
488
489&uart2 {
490 status = "okay";
491};
492
493&usb_host0_ehci {
Philipp Tomsiche5976872017-11-06 23:02:53 +0100494 status = "disabled";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200495};
496
497&usb_host0_ohci {
Philipp Tomsiche5976872017-11-06 23:02:53 +0100498 status = "disabled";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200499};
500
Peter Robinson629b2522020-01-20 09:15:26 +0000501&usbdrd3_0 {
Philipp Tomsiche5976872017-11-06 23:02:53 +0100502 status = "okay";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200503};
504
505&usb_host1_ehci {
Philipp Tomsiche5976872017-11-06 23:02:53 +0100506 status = "disabled";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200507};
508
509&usb_host1_ohci {
Philipp Tomsiche5976872017-11-06 23:02:53 +0100510 status = "disabled";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200511};
512
Peter Robinson629b2522020-01-20 09:15:26 +0000513&usbdrd3_1 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200514 status = "okay";
Philipp Tomsich402063e2017-11-22 17:15:19 +0100515 tsd,usb-port-power = "usbhub_enable";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200516};
517
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200518&vopb {
519 status = "okay";
520};
521
Philipp Tomsich3093d202017-03-28 18:48:51 +0200522&pinctrl {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200523 /* Pins that are not explicitely used by any devices */
524 pinctrl-names = "default";
525 pinctrl-0 = <&puma_pin_hog>;
Philipp Tomsich75fc2082017-09-29 19:28:01 +0200526
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200527 hog {
528 puma_pin_hog: puma_pin_hog {
529 rockchip,pins =
530 /* We need pull-ups on Q7 buttons */
Klaus Gogerde02bc62017-11-06 23:02:54 +0100531 <RK_GPIO0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */
532 <RK_GPIO0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */
533 <RK_GPIO0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */
534 <RK_GPIO0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200535 };
536 };
537
Philipp Tomsich3093d202017-03-28 18:48:51 +0200538 pmic {
539 pmic_int_l: pmic-int-l {
540 rockchip,pins =
Klaus Gogerde02bc62017-11-06 23:02:54 +0100541 <RK_GPIO1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200542 };
543 };
544
545 leds_pins_puma: led_pins@0 {
546 rockchip,pins =
Klaus Gogerde02bc62017-11-06 23:02:54 +0100547 <RK_GPIO2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
548 <RK_GPIO1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200549 };
550
551 usb2 {
552 otg_vbus_drv: otg-vbus-drv {
553 rockchip,pins =
Klaus Gogerde02bc62017-11-06 23:02:54 +0100554 <RK_GPIO0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200555 };
556
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200557 host_vbus_drv: host-vbus-drv {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200558 rockchip,pins =
Klaus Gogerde02bc62017-11-06 23:02:54 +0100559 <RK_GPIO4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200560 };
561 };
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200562
563 i2c8 {
564 i2c8_xfer_a: i2c8-xfer {
Klaus Gogerde02bc62017-11-06 23:02:54 +0100565 rockchip,pins =
566 <RK_GPIO1 RK_PC5 RK_FUNC_1 &pcfg_pull_up>,
567 <RK_GPIO1 RK_PC4 RK_FUNC_1 &pcfg_pull_up>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200568 };
569 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200570};
571
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200572&i2c1 {
573 status = "okay";
574 clock-frequency = <400000>;
575};
576&i2c2 {
577 status = "okay";
578 clock-frequency = <400000>;
579};
580&i2c4 {
581 status = "okay";
582 clock-frequency = <400000>;
583};
584&i2c6 {
585 status = "okay";
586 clock-frequency = <400000>;
587};
588
589&i2c6_xfer {
590 /* Enable pull-ups, the pins would float otherwise. */
591 rockchip,pins =
Klaus Gogerde02bc62017-11-06 23:02:54 +0100592 <RK_GPIO2 RK_PB2 RK_FUNC_2 &pcfg_pull_up>,
593 <RK_GPIO2 RK_PB1 RK_FUNC_2 &pcfg_pull_up>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200594};
595
596&i2c7 {
597 status = "okay";
598 clock-frequency = <400000>;
599
600 rtc_twi: rtc@6f {
601 compatible = "isil,isl1208";
602 reg = <0x6f>;
603 };
604 fan: fan@18 {
605 compatible = "ti,amc6821";
606 reg = <0x18>;
607 cooling-min-state = <0>;
608 cooling-max-state = <9>;
609 #cooling-cells = <2>;
610 };
611};
612
613&uart0 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200614 pinctrl-names = "default";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200615 pinctrl-0 = <&uart0_xfer &uart0_cts>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200616 status = "okay";
617};
618
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200619
Philipp Tomsich3093d202017-03-28 18:48:51 +0200620&spi1 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200621 status = "okay";
622
623 #address-cells = <1>;
624 #size-cells = <0>;
625
626 spiflash: w25q32dw@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +0000627 compatible = "jedec,spi-nor";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200628 reg = <0>;
Philipp Tomsich52989432017-05-31 18:17:58 +0200629 spi-max-frequency = <49500000>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200630 spi-cpol;
631 spi-cpha;
632 };
633};
634
635&spi5 {
636 status = "okay";
637};