2 * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
4 * SPDX-License-Identifier: GPL-2.0+ X11
7 #include <dt-bindings/pwm/pwm.h>
11 model = "Theobroma Systems RK3399-Q7 SoM";
12 compatible = "tsd,rk3399-q7", "tsd,puma", "rockchip,rk3399";
15 u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
16 u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */
17 u-boot,boot-led = "module_led";
21 stdout-path = "serial0:115200n8";
22 u-boot,spl-boot-order = &spiflash, &sdhci, &sdmmc;
31 compatible = "gpio-leds";
32 pinctrl-names = "default";
33 pinctrl-0 = <&leds_pins_puma>;
37 gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
38 linux,default-trigger = "heartbeat";
42 label = "sd_card_led";
43 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
44 linux,default-trigger = "mmc0";
48 clkin_gmac: external-gmac-clock {
49 compatible = "fixed-clock";
50 clock-frequency = <125000000>;
51 clock-output-names = "clkin_gmac";
55 dw_hdmi_audio: dw-hdmi-audio {
57 compatible = "rockchip,dw-hdmi-audio";
58 #sound-dai-cells = <0>;
61 hdmi_codec: hdmi-codec {
62 compatible = "simple-audio-card";
63 simple-audio-card,format = "i2s";
64 simple-audio-card,mclk-fs = <256>;
65 simple-audio-card,name = "HDMI-CODEC";
67 simple-audio-card,cpu {
71 simple-audio-card,codec {
76 hdmi_sound: hdmi-sound {
78 compatible = "simple-audio-card";
79 simple-audio-card,format = "i2s";
80 simple-audio-card,mclk-fs = <256>;
81 simple-audio-card,name = "rockchip,hdmi";
83 simple-audio-card,cpu {
86 simple-audio-card,codec {
91 vccadc_ref: vccadc-ref {
92 compatible = "regulator-fixed";
93 regulator-name = "vcc1v8_sys";
96 regulator-min-microvolt = <1800000>;
97 regulator-max-microvolt = <1800000>;
100 vcc3v3_sys: vcc3v3-sys {
101 compatible = "regulator-fixed";
102 regulator-name = "vcc3v3_sys";
105 regulator-min-microvolt = <3300000>;
106 regulator-max-microvolt = <3300000>;
109 vcc5v0_otg: vcc5v0-otg-regulator {
110 compatible = "regulator-fixed";
112 gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&otg_vbus_drv>;
115 regulator-name = "vcc5v0_otg";
119 vcc5v0_host: vcc5v0-host-regulator {
120 compatible = "regulator-fixed";
122 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&host_vbus_drv>;
125 regulator-name = "vcc5v0_host";
129 vcc5v0_sys: vcc5v0-sys {
130 compatible = "regulator-fixed";
131 regulator-name = "vcc5v0_sys";
134 regulator-min-microvolt = <5000000>;
135 regulator-max-microvolt = <5000000>;
138 vcc_phy: vcc-phy-regulator {
139 compatible = "regulator-fixed";
140 regulator-name = "vcc_phy";
146 compatible = "pwm-regulator";
147 pwms = <&pwm2 0 25000 1>;
148 regulator-name = "vdd_log";
149 regulator-min-microvolt = <800000>;
150 regulator-max-microvolt = <1400000>;
154 /* for rockchip boot on */
155 rockchip,pwm_id= <2>;
156 rockchip,pwm_voltage = <1000000>;
165 phy-supply = <&vcc_phy>;
167 clock_in_out = "input";
168 snps,reset-gpio = <&gpio3 16 GPIO_ACTIVE_LOW>;
169 snps,reset-active-low;
170 snps,reset-delays-us = <2 10000 50000>;
171 assigned-clocks = <&cru SCLK_RMII_SRC>;
172 assigned-clock-parents = <&clkin_gmac>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&rgmii_pins>;
181 #address-cells = <1>;
183 #sound-dai-cells = <0>;
189 i2c-scl-rising-time-ns = <168>;
190 i2c-scl-falling-time-ns = <4>;
191 clock-frequency = <400000>;
193 vdd_gpu: fan535555@60 {
194 compatible = "fcs,fan53555";
196 vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
197 vin-supply = <&vcc5v0_sys>;
198 regulator-compatible = "fan53555-reg";
199 regulator-name = "vdd_gpu";
200 regulator-min-microvolt = <600000>;
201 regulator-max-microvolt = <1230000>;
202 regulator-ramp-delay = <1000>;
203 fcs,suspend-voltage-selector = <1>;
206 regulator-initial-state = <3>;
207 regulator-state-mem {
208 regulator-off-in-suspend;
213 compatible = "rockchip,rk808";
215 interrupt-parent = <&gpio1>;
216 interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt?
217 pinctrl-names = "default";
218 pinctrl-0 = <&pmic_int_l>;
219 rockchip,system-power-controller;
222 clock-output-names = "xin32k", "rk808-clkout2";
224 vcc1-supply = <&vcc5v0_sys>;
225 vcc2-supply = <&vcc5v0_sys>;
226 vcc3-supply = <&vcc5v0_sys>;
227 vcc4-supply = <&vcc5v0_sys>;
228 vcc6-supply = <&vcc5v0_sys>;
229 vcc7-supply = <&vcc5v0_sys>;
230 vcc8-supply = <&vcc3v3_sys>;
231 vcc9-supply = <&vcc5v0_sys>;
232 vcc10-supply = <&vcc5v0_sys>;
233 vcc11-supply = <&vcc5v0_sys>;
234 vcc12-supply = <&vcc3v3_sys>;
235 vddio-supply = <&vcc1v8_pmu>;
238 vdd_center: DCDC_REG1 {
241 regulator-min-microvolt = <750000>;
242 regulator-max-microvolt = <1350000>;
243 regulator-ramp-delay = <6001>;
244 regulator-name = "vdd_center";
245 regulator-state-mem {
246 regulator-off-in-suspend;
250 vdd_cpu_l: DCDC_REG2 {
253 regulator-min-microvolt = <750000>;
254 regulator-max-microvolt = <1350000>;
255 regulator-ramp-delay = <6001>;
256 regulator-name = "vdd_cpu_l";
257 regulator-state-mem {
258 regulator-off-in-suspend;
265 regulator-name = "vcc_ddr";
266 regulator-state-mem {
267 regulator-on-in-suspend;
274 regulator-min-microvolt = <1800000>;
275 regulator-max-microvolt = <1800000>;
276 regulator-name = "vcc_1v8";
277 regulator-state-mem {
278 regulator-on-in-suspend;
279 regulator-suspend-microvolt = <1800000>;
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <1800000>;
287 regulator-name = "vcc_ldo1";
288 regulator-state-mem {
289 regulator-off-in-suspend;
293 vcc1v8_hdmi: LDO_REG2 {
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
298 regulator-name = "vcc1v8_hdmi";
299 regulator-state-mem {
300 regulator-off-in-suspend;
304 vcc1v8_pmu: LDO_REG3 {
307 regulator-min-microvolt = <1800000>;
308 regulator-max-microvolt = <1800000>;
309 regulator-name = "vcc1v8_pmu";
310 regulator-state-mem {
311 regulator-on-in-suspend;
312 regulator-suspend-microvolt = <1800000>;
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <3300000>;
321 regulator-name = "vcc_sd";
322 regulator-state-mem {
323 regulator-on-in-suspend;
324 regulator-suspend-microvolt = <3300000>;
330 regulator-min-microvolt = <3000000>;
331 regulator-max-microvolt = <3000000>;
332 regulator-name = "vcc_ldo5";
333 regulator-state-mem {
334 regulator-off-in-suspend;
340 regulator-min-microvolt = <1500000>;
341 regulator-max-microvolt = <1500000>;
342 regulator-name = "vcc_ldo6";
343 regulator-state-mem {
344 regulator-off-in-suspend;
348 vcc0v9_hdmi: LDO_REG7 {
351 regulator-min-microvolt = <900000>;
352 regulator-max-microvolt = <900000>;
353 regulator-name = "vcc0v9_hdmi";
354 regulator-state-mem {
355 regulator-off-in-suspend;
359 vcc_efuse: LDO_REG8 {
362 regulator-min-microvolt = <1800000>;
363 regulator-max-microvolt = <1800000>;
364 regulator-name = "vcc_efuse";
365 regulator-state-mem {
366 regulator-off-in-suspend;
370 vcc3v3_s3: SWITCH_REG1 {
373 regulator-name = "vcc3v3_s3";
374 regulator-state-mem {
375 regulator-off-in-suspend;
379 vcc3v3_s0: SWITCH_REG2 {
382 regulator-name = "vcc3v3_s0";
383 regulator-state-mem {
384 regulator-off-in-suspend;
393 clock-frequency = <400000>;
395 vdd_cpu_b: fan53555@60 {
396 compatible = "fcs,fan53555";
398 vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
399 vin-supply = <&vcc5v0_sys>;
400 regulator-compatible = "fan53555-reg";
401 regulator-name = "vdd_cpu_b";
402 regulator-min-microvolt = <600000>;
403 regulator-max-microvolt = <1230000>;
404 regulator-ramp-delay = <1000>;
405 fcs,suspend-voltage-selector = <1>;
408 regulator-initial-state = <3>;
409 regulator-state-mem {
410 regulator-off-in-suspend;
417 rockchip,i2s-broken-burst-len;
418 rockchip,playback-channels = <8>;
419 rockchip,capture-channels = <8>;
420 #sound-dai-cells = <0>;
424 #sound-dai-cells = <0>;
431 bt656-supply = <&vcc_1v8>; /* bt656_gpio2ab_ms */
432 audio-supply = <&vcc_1v8>; /* audio_gpio3d4a_ms */
433 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
434 gpio1830-supply = <&vcc_1v8>; /* gpio1833_gpio4cd_ms */
438 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
439 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
440 assigned-clock-rates = <100000000>;
441 ep-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
443 pinctrl-names = "default";
444 pinctrl-0 = <&pcie_clkreqn>;
454 pmu1830-supply = <&vcc_1v8>;
470 keep-power-in-suspend;
471 mmc-hs400-enhanced-strobe;
477 clock-frequency = <150000000>;
478 clock-freq-min-max = <100000 150000000>;
485 vqmmc-supply = <&vcc_sd>;
486 pinctrl-names = "default";
487 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
516 rockchip,vbus-gpio = <&gpio4 3 GPIO_ACTIVE_LOW>;
525 /* Pins that are not explicitely used by any devices */
526 pinctrl-names = "default";
527 pinctrl-0 = <&puma_pin_hog>;
529 puma_pin_hog: puma_pin_hog {
531 /* We need pull-ups on Q7 buttons */
532 <0 4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */
533 <0 10 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */
534 <0 11 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */
535 <0 9 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */
540 pmic_int_l: pmic-int-l {
542 <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
546 leds_pins_puma: led_pins@0 {
548 <2 25 RK_FUNC_GPIO &pcfg_pull_none>,
549 <1 2 RK_FUNC_GPIO &pcfg_pull_none>;
553 otg_vbus_drv: otg-vbus-drv {
555 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
558 host_vbus_drv: host-vbus-drv {
560 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
565 i2c8_xfer_a: i2c8-xfer {
566 rockchip,pins = <1 21 RK_FUNC_1 &pcfg_pull_up>,
567 <1 20 RK_FUNC_1 &pcfg_pull_up>;
574 clock-frequency = <400000>;
578 clock-frequency = <400000>;
582 clock-frequency = <400000>;
586 clock-frequency = <400000>;
590 /* Enable pull-ups, the pins would float otherwise. */
592 <2 10 RK_FUNC_2 &pcfg_pull_up>,
593 <2 9 RK_FUNC_2 &pcfg_pull_up>;
598 clock-frequency = <400000>;
601 compatible = "isil,isl1208";
605 compatible = "ti,amc6821";
607 cooling-min-state = <0>;
608 cooling-max-state = <9>;
609 #cooling-cells = <2>;
615 pinctrl-names = "default";
616 pinctrl-0 = <&uart0_xfer &uart0_cts>;
626 #address-cells = <1>;
629 spiflash: w25q32dw@0 {
632 compatible = "spi-flash";
634 spi-max-frequency = <49500000>;