blob: 65ab3801391b50a238e196248db1eecbf0fbbf8b [file] [log] [blame]
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +02001/*
2 * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
3 *
Philipp Tomsichfaf1afc2017-04-07 19:09:37 +02004 * SPDX-License-Identifier: GPL-2.0+ X11
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +02005 */
6
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +02007#include <dt-bindings/pwm/pwm.h>
8#include "rk3399.dtsi"
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +02009
10/ {
11 model = "Theobroma Systems RK3399-Q7 SoM";
Philipp Tomsichf592edd2017-06-06 15:42:32 +020012 compatible = "tsd,rk3399-q7", "tsd,puma", "rockchip,rk3399";
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +020013
Philipp Tomsich572045b2017-04-17 17:50:38 +020014 config {
Philipp Tomsich56f580d2017-07-19 14:32:22 +020015 u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
16 u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */
Philipp Tomsich4436c5d2017-07-19 14:32:23 +020017 u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */
Philipp Tomsichf592edd2017-06-06 15:42:32 +020018 u-boot,boot-led = "module_led";
Philipp Tomsich572045b2017-04-17 17:50:38 +020019 };
20
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +020021 chosen {
22 stdout-path = "serial0:115200n8";
Philipp Tomsich775bd782017-09-29 19:27:59 +020023 u-boot,spl-boot-order = \
24 "same-as-spl", &spiflash, &sdhci, &sdmmc;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +020025 };
26
27 aliases {
28 spi0 = &spi1;
29 spi1 = &spi5;
30 };
31
Philipp Tomsichf592edd2017-06-06 15:42:32 +020032 leds {
33 compatible = "gpio-leds";
34 pinctrl-names = "default";
35 pinctrl-0 = <&leds_pins_puma>;
36
37 module_led {
38 label = "module_led";
39 gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
40 linux,default-trigger = "heartbeat";
41 };
42
43 sd_card_led {
44 label = "sd_card_led";
45 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "mmc0";
47 };
48 };
49
50 clkin_gmac: external-gmac-clock {
51 compatible = "fixed-clock";
52 clock-frequency = <125000000>;
53 clock-output-names = "clkin_gmac";
54 #clock-cells = <0>;
55 };
56
57 dw_hdmi_audio: dw-hdmi-audio {
58 status = "enabled";
59 compatible = "rockchip,dw-hdmi-audio";
60 #sound-dai-cells = <0>;
61 };
62
63 hdmi_codec: hdmi-codec {
64 compatible = "simple-audio-card";
65 simple-audio-card,format = "i2s";
66 simple-audio-card,mclk-fs = <256>;
67 simple-audio-card,name = "HDMI-CODEC";
68
69 simple-audio-card,cpu {
70 sound-dai = <&i2s2>;
71 };
72
73 simple-audio-card,codec {
74 sound-dai = <&hdmi>;
75 };
76 };
77
78 hdmi_sound: hdmi-sound {
79 status = "disabled";
80 compatible = "simple-audio-card";
81 simple-audio-card,format = "i2s";
82 simple-audio-card,mclk-fs = <256>;
83 simple-audio-card,name = "rockchip,hdmi";
84
85 simple-audio-card,cpu {
86 sound-dai = <&i2s2>;
87 };
88 simple-audio-card,codec {
89 sound-dai = <&hdmi>;
90 };
91 };
92
Philipp Tomsich46c89c82017-09-12 17:30:57 +020093 usbhub_enable: usbhub_enable {
94 compatible = "regulator-fixed";
95 regulator-name = "usbhub_enable";
96 enable-active-low;
97 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
98 regulator-always-on;
99 regulator-boot-on;
100 regulator-min-microvolt = <3300000>;
101 regulator-max-microvolt = <3300000>;
102 };
103
Philipp Tomsich482cf222017-09-29 19:28:01 +0200104 /*
105 * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
106 * eMMC and SPI flash powered-down initially (in fact it keeps the
107 * reset signal asserted). Even though it is an enable signal, we
108 * model this as a regulator.
109 */
110 bios_enable: bios_enable {
111 compatible = "regulator-fixed";
112 u-boot,dm-pre-reloc;
113 regulator-name = "bios_enable";
114 enable-active-low;
115 gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
116 regulator-always-on;
117 regulator-boot-on;
118 regulator-min-microvolt = <1800000>;
119 regulator-max-microvolt = <1800000>;
120 };
121
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200122 vccadc_ref: vccadc-ref {
123 compatible = "regulator-fixed";
124 regulator-name = "vcc1v8_sys";
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200125 regulator-always-on;
126 regulator-boot-on;
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200127 regulator-min-microvolt = <1800000>;
128 regulator-max-microvolt = <1800000>;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200129 };
130
131 vcc3v3_sys: vcc3v3-sys {
132 compatible = "regulator-fixed";
133 regulator-name = "vcc3v3_sys";
134 regulator-always-on;
135 regulator-boot-on;
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138 };
139
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200140 vcc5v0_otg: vcc5v0-otg-regulator {
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200141 compatible = "regulator-fixed";
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200142 enable-active-high;
143 gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&otg_vbus_drv>;
146 regulator-name = "vcc5v0_otg";
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200147 regulator-always-on;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200148 };
149
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200150 vcc5v0_host: vcc5v0-host-regulator {
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200151 compatible = "regulator-fixed";
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200152 enable-active-low;
153 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&host_vbus_drv>;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200156 regulator-name = "vcc5v0_host";
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200157 regulator-always-on;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200158 };
159
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200160 vcc5v0_sys: vcc5v0-sys {
161 compatible = "regulator-fixed";
162 regulator-name = "vcc5v0_sys";
163 regulator-always-on;
164 regulator-boot-on;
165 regulator-min-microvolt = <5000000>;
166 regulator-max-microvolt = <5000000>;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200167 };
168
169 vcc_phy: vcc-phy-regulator {
170 compatible = "regulator-fixed";
171 regulator-name = "vcc_phy";
172 regulator-always-on;
173 regulator-boot-on;
174 };
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200175
176 vdd_log: vdd-log {
177 compatible = "pwm-regulator";
178 pwms = <&pwm2 0 25000 1>;
179 regulator-name = "vdd_log";
180 regulator-min-microvolt = <800000>;
181 regulator-max-microvolt = <1400000>;
182 regulator-always-on;
183 regulator-boot-on;
184
185 /* for rockchip boot on */
186 rockchip,pwm_id= <2>;
187 rockchip,pwm_voltage = <1000000>;
188 };
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200189};
190
191&emmc_phy {
192 status = "okay";
193};
194
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200195&gmac {
196 phy-supply = <&vcc_phy>;
197 phy-mode = "rgmii";
198 clock_in_out = "input";
199 snps,reset-gpio = <&gpio3 16 GPIO_ACTIVE_LOW>;
200 snps,reset-active-low;
201 snps,reset-delays-us = <2 10000 50000>;
202 assigned-clocks = <&cru SCLK_RMII_SRC>;
203 assigned-clock-parents = <&clkin_gmac>;
204 pinctrl-names = "default";
205 pinctrl-0 = <&rgmii_pins>;
206 tx_delay = <0x10>;
207 rx_delay = <0x10>;
208 status = "okay";
209};
210
211&hdmi {
212 #address-cells = <1>;
213 #size-cells = <0>;
214 #sound-dai-cells = <0>;
215 status = "okay";
216};
217
218&i2c0 {
219 status = "okay";
220 i2c-scl-rising-time-ns = <168>;
221 i2c-scl-falling-time-ns = <4>;
222 clock-frequency = <400000>;
223
224 vdd_gpu: fan535555@60 {
225 compatible = "fcs,fan53555";
226 reg = <0x60>;
227 vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
228 vin-supply = <&vcc5v0_sys>;
229 regulator-compatible = "fan53555-reg";
230 regulator-name = "vdd_gpu";
231 regulator-min-microvolt = <600000>;
232 regulator-max-microvolt = <1230000>;
233 regulator-ramp-delay = <1000>;
234 fcs,suspend-voltage-selector = <1>;
235 regulator-always-on;
236 regulator-boot-on;
237 regulator-initial-state = <3>;
238 regulator-state-mem {
239 regulator-off-in-suspend;
240 };
241 };
242
243 rk808: pmic@1b {
244 compatible = "rockchip,rk808";
245 reg = <0x1b>;
246 interrupt-parent = <&gpio1>;
247 interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt?
248 pinctrl-names = "default";
249 pinctrl-0 = <&pmic_int_l>;
250 rockchip,system-power-controller;
251 wakeup-source;
252 #clock-cells = <1>;
253 clock-output-names = "xin32k", "rk808-clkout2";
254
255 vcc1-supply = <&vcc5v0_sys>;
256 vcc2-supply = <&vcc5v0_sys>;
257 vcc3-supply = <&vcc5v0_sys>;
258 vcc4-supply = <&vcc5v0_sys>;
259 vcc6-supply = <&vcc5v0_sys>;
260 vcc7-supply = <&vcc5v0_sys>;
261 vcc8-supply = <&vcc3v3_sys>;
262 vcc9-supply = <&vcc5v0_sys>;
263 vcc10-supply = <&vcc5v0_sys>;
264 vcc11-supply = <&vcc5v0_sys>;
265 vcc12-supply = <&vcc3v3_sys>;
266 vddio-supply = <&vcc1v8_pmu>;
267
268 regulators {
269 vdd_center: DCDC_REG1 {
270 regulator-always-on;
271 regulator-boot-on;
272 regulator-min-microvolt = <750000>;
273 regulator-max-microvolt = <1350000>;
274 regulator-ramp-delay = <6001>;
275 regulator-name = "vdd_center";
276 regulator-state-mem {
277 regulator-off-in-suspend;
278 };
279 };
280
281 vdd_cpu_l: DCDC_REG2 {
282 regulator-always-on;
283 regulator-boot-on;
284 regulator-min-microvolt = <750000>;
285 regulator-max-microvolt = <1350000>;
286 regulator-ramp-delay = <6001>;
287 regulator-name = "vdd_cpu_l";
288 regulator-state-mem {
289 regulator-off-in-suspend;
290 };
291 };
292
293 vcc_ddr: DCDC_REG3 {
294 regulator-always-on;
295 regulator-boot-on;
296 regulator-name = "vcc_ddr";
297 regulator-state-mem {
298 regulator-on-in-suspend;
299 };
300 };
301
302 vcc_1v8: DCDC_REG4 {
303 regulator-always-on;
304 regulator-boot-on;
305 regulator-min-microvolt = <1800000>;
306 regulator-max-microvolt = <1800000>;
307 regulator-name = "vcc_1v8";
308 regulator-state-mem {
309 regulator-on-in-suspend;
310 regulator-suspend-microvolt = <1800000>;
311 };
312 };
313
314 vcc_ldo1: LDO_REG1 {
315 regulator-boot-on;
316 regulator-min-microvolt = <1800000>;
317 regulator-max-microvolt = <1800000>;
318 regulator-name = "vcc_ldo1";
319 regulator-state-mem {
320 regulator-off-in-suspend;
321 };
322 };
323
324 vcc1v8_hdmi: LDO_REG2 {
325 regulator-always-on;
326 regulator-boot-on;
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <1800000>;
329 regulator-name = "vcc1v8_hdmi";
330 regulator-state-mem {
331 regulator-off-in-suspend;
332 };
333 };
334
335 vcc1v8_pmu: LDO_REG3 {
336 regulator-always-on;
337 regulator-boot-on;
338 regulator-min-microvolt = <1800000>;
339 regulator-max-microvolt = <1800000>;
340 regulator-name = "vcc1v8_pmu";
341 regulator-state-mem {
342 regulator-on-in-suspend;
343 regulator-suspend-microvolt = <1800000>;
344 };
345 };
346
347 vcc_sd: LDO_REG4 {
348 regulator-always-on;
349 regulator-boot-on;
350 regulator-min-microvolt = <1800000>;
351 regulator-max-microvolt = <3300000>;
352 regulator-name = "vcc_sd";
353 regulator-state-mem {
354 regulator-on-in-suspend;
355 regulator-suspend-microvolt = <3300000>;
356 };
357 };
358
359 vcc_ldo5: LDO_REG5 {
360 regulator-boot-on;
361 regulator-min-microvolt = <3000000>;
362 regulator-max-microvolt = <3000000>;
363 regulator-name = "vcc_ldo5";
364 regulator-state-mem {
365 regulator-off-in-suspend;
366 };
367 };
368
369 vcc_ldo6: LDO_REG6 {
370 regulator-boot-on;
371 regulator-min-microvolt = <1500000>;
372 regulator-max-microvolt = <1500000>;
373 regulator-name = "vcc_ldo6";
374 regulator-state-mem {
375 regulator-off-in-suspend;
376 };
377 };
378
379 vcc0v9_hdmi: LDO_REG7 {
380 regulator-always-on;
381 regulator-boot-on;
382 regulator-min-microvolt = <900000>;
383 regulator-max-microvolt = <900000>;
384 regulator-name = "vcc0v9_hdmi";
385 regulator-state-mem {
386 regulator-off-in-suspend;
387 };
388 };
389
390 vcc_efuse: LDO_REG8 {
391 regulator-always-on;
392 regulator-boot-on;
393 regulator-min-microvolt = <1800000>;
394 regulator-max-microvolt = <1800000>;
395 regulator-name = "vcc_efuse";
396 regulator-state-mem {
397 regulator-off-in-suspend;
398 };
399 };
400
401 vcc3v3_s3: SWITCH_REG1 {
402 regulator-always-on;
403 regulator-boot-on;
404 regulator-name = "vcc3v3_s3";
405 regulator-state-mem {
406 regulator-off-in-suspend;
407 };
408 };
409
410 vcc3v3_s0: SWITCH_REG2 {
411 regulator-always-on;
412 regulator-boot-on;
413 regulator-name = "vcc3v3_s0";
414 regulator-state-mem {
415 regulator-off-in-suspend;
416 };
417 };
418 };
419 };
420};
421
422&i2c8 {
423 status = "okay";
424 clock-frequency = <400000>;
425
426 vdd_cpu_b: fan53555@60 {
427 compatible = "fcs,fan53555";
428 reg = <0x60>;
429 vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
430 vin-supply = <&vcc5v0_sys>;
431 regulator-compatible = "fan53555-reg";
432 regulator-name = "vdd_cpu_b";
433 regulator-min-microvolt = <600000>;
434 regulator-max-microvolt = <1230000>;
435 regulator-ramp-delay = <1000>;
436 fcs,suspend-voltage-selector = <1>;
437 regulator-always-on;
438 regulator-boot-on;
439 regulator-initial-state = <3>;
440 regulator-state-mem {
441 regulator-off-in-suspend;
442 };
443 };
444};
445
446&i2s0 {
447 status = "okay";
448 rockchip,i2s-broken-burst-len;
449 rockchip,playback-channels = <8>;
450 rockchip,capture-channels = <8>;
451 #sound-dai-cells = <0>;
452};
453
454&i2s2 {
455 #sound-dai-cells = <0>;
456 status = "okay";
457};
458
459&io_domains {
460 status = "okay";
461
462 bt656-supply = <&vcc_1v8>; /* bt656_gpio2ab_ms */
463 audio-supply = <&vcc_1v8>; /* audio_gpio3d4a_ms */
464 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
465 gpio1830-supply = <&vcc_1v8>; /* gpio1833_gpio4cd_ms */
466};
467
468&pcie0 {
469 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
470 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
471 assigned-clock-rates = <100000000>;
472 ep-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
473 num-lanes = <4>;
474 pinctrl-names = "default";
475 pinctrl-0 = <&pcie_clkreqn>;
476 status = "okay";
477};
478
479&pcie_phy {
Philipp Tomsich482cf222017-09-29 19:28:01 +0200480 status = "okay";
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200481};
482
483&pmu_io_domains {
484 status = "okay";
485 pmu1830-supply = <&vcc_1v8>;
486};
487
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200488&pwm0 {
489 status = "okay";
490};
491
492&pwm2 {
493 status = "okay";
494};
495
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200496&sdhci {
497 bus-width = <8>;
498 mmc-hs400-1_8v;
499 supports-emmc;
500 non-removable;
501 keep-power-in-suspend;
502 mmc-hs400-enhanced-strobe;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200503 status = "okay";
504};
505
506&sdmmc {
Philipp Tomsich482cf222017-09-29 19:28:01 +0200507 u-boot,dm-pre-reloc;
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200508 clock-frequency = <150000000>;
509 clock-freq-min-max = <100000 150000000>;
510 supports-sd;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200511 bus-width = <4>;
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200512 cap-mmc-highspeed;
513 cap-sd-highspeed;
514 disable-wp;
515 num-slots = <1>;
516 vqmmc-supply = <&vcc_sd>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200519 status = "okay";
520};
521
522&uart2 {
523 status = "okay";
524};
525
526&usb_host0_ehci {
527 status = "okay";
528};
529
530&usb_host0_ohci {
531 status = "okay";
532};
533
534&dwc3_typec0 {
Philipp Tomsich2dd2c012017-05-31 18:17:58 +0200535 status = "disabled";
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200536};
537
538&usb_host1_ehci {
539 status = "okay";
540};
541
542&usb_host1_ohci {
543 status = "okay";
544};
545
546&dwc3_typec1 {
547 status = "okay";
548};
549
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200550&vopb {
551 status = "okay";
552};
553
Philipp Tomsich482cf222017-09-29 19:28:01 +0200554&gpio3 {
555 u-boot,dm-pre-reloc;
556};
557
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200558&pinctrl {
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200559 /* Pins that are not explicitely used by any devices */
560 pinctrl-names = "default";
561 pinctrl-0 = <&puma_pin_hog>;
Philipp Tomsich482cf222017-09-29 19:28:01 +0200562
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200563 hog {
564 puma_pin_hog: puma_pin_hog {
565 rockchip,pins =
566 /* We need pull-ups on Q7 buttons */
567 <0 4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */
568 <0 10 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */
569 <0 11 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */
570 <0 9 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */
571 };
572 };
573
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200574 pmic {
575 pmic_int_l: pmic-int-l {
576 rockchip,pins =
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200577 <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
578 };
579 };
580
581 leds_pins_puma: led_pins@0 {
582 rockchip,pins =
583 <2 25 RK_FUNC_GPIO &pcfg_pull_none>,
584 <1 2 RK_FUNC_GPIO &pcfg_pull_none>;
585 };
586
587 usb2 {
588 otg_vbus_drv: otg-vbus-drv {
589 rockchip,pins =
590 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200591 };
592
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200593 host_vbus_drv: host-vbus-drv {
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200594 rockchip,pins =
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200595 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
596 };
597 };
598
599 i2c8 {
600 i2c8_xfer_a: i2c8-xfer {
601 rockchip,pins = <1 21 RK_FUNC_1 &pcfg_pull_up>,
Philipp Tomsich482cf222017-09-29 19:28:01 +0200602 <1 20 RK_FUNC_1 &pcfg_pull_up>;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200603 };
604 };
605};
606
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200607&i2c1 {
608 status = "okay";
609 clock-frequency = <400000>;
610};
611&i2c2 {
612 status = "okay";
613 clock-frequency = <400000>;
614};
615&i2c4 {
616 status = "okay";
617 clock-frequency = <400000>;
618};
619&i2c6 {
620 status = "okay";
621 clock-frequency = <400000>;
622};
623
624&i2c6_xfer {
625 /* Enable pull-ups, the pins would float otherwise. */
626 rockchip,pins =
627 <2 10 RK_FUNC_2 &pcfg_pull_up>,
628 <2 9 RK_FUNC_2 &pcfg_pull_up>;
629};
630
631&i2c7 {
632 status = "okay";
633 clock-frequency = <400000>;
634
635 rtc_twi: rtc@6f {
636 compatible = "isil,isl1208";
637 reg = <0x6f>;
638 };
639 fan: fan@18 {
640 compatible = "ti,amc6821";
641 reg = <0x18>;
642 cooling-min-state = <0>;
643 cooling-max-state = <9>;
644 #cooling-cells = <2>;
645 };
646};
647
648&uart0 {
649 u-boot,dm-pre-reloc;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200650 pinctrl-names = "default";
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200651 pinctrl-0 = <&uart0_xfer &uart0_cts>;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200652 status = "okay";
653};
654
Philipp Tomsichf592edd2017-06-06 15:42:32 +0200655
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200656&spi1 {
657 u-boot,dm-pre-reloc;
658
659 status = "okay";
660
661 #address-cells = <1>;
662 #size-cells = <0>;
663
664 spiflash: w25q32dw@0 {
665 u-boot,dm-pre-reloc;
666
667 compatible = "spi-flash";
668 reg = <0>;
Philipp Tomsich2dd2c012017-05-31 18:17:58 +0200669 spi-max-frequency = <49500000>;
Philipp Tomsich3c2bbd52017-03-28 18:48:51 +0200670 spi-cpol;
671 spi-cpha;
672 };
673};
674
675&spi5 {
676 status = "okay";
677};