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,efi-partition-entries-offset = <0x200000>; /* 2MB */
18 u-boot,boot-led = "module_led";
22 stdout-path = "serial0:115200n8";
23 u-boot,spl-boot-order = &spiflash, &sdhci, &sdmmc;
32 compatible = "gpio-leds";
33 pinctrl-names = "default";
34 pinctrl-0 = <&leds_pins_puma>;
38 gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
39 linux,default-trigger = "heartbeat";
43 label = "sd_card_led";
44 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "mmc0";
49 clkin_gmac: external-gmac-clock {
50 compatible = "fixed-clock";
51 clock-frequency = <125000000>;
52 clock-output-names = "clkin_gmac";
56 dw_hdmi_audio: dw-hdmi-audio {
58 compatible = "rockchip,dw-hdmi-audio";
59 #sound-dai-cells = <0>;
62 hdmi_codec: hdmi-codec {
63 compatible = "simple-audio-card";
64 simple-audio-card,format = "i2s";
65 simple-audio-card,mclk-fs = <256>;
66 simple-audio-card,name = "HDMI-CODEC";
68 simple-audio-card,cpu {
72 simple-audio-card,codec {
77 hdmi_sound: hdmi-sound {
79 compatible = "simple-audio-card";
80 simple-audio-card,format = "i2s";
81 simple-audio-card,mclk-fs = <256>;
82 simple-audio-card,name = "rockchip,hdmi";
84 simple-audio-card,cpu {
87 simple-audio-card,codec {
92 usbhub_enable: usbhub_enable {
93 compatible = "regulator-fixed";
94 regulator-name = "usbhub_enable";
96 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
103 vccadc_ref: vccadc-ref {
104 compatible = "regulator-fixed";
105 regulator-name = "vcc1v8_sys";
108 regulator-min-microvolt = <1800000>;
109 regulator-max-microvolt = <1800000>;
112 vcc3v3_sys: vcc3v3-sys {
113 compatible = "regulator-fixed";
114 regulator-name = "vcc3v3_sys";
117 regulator-min-microvolt = <3300000>;
118 regulator-max-microvolt = <3300000>;
121 vcc5v0_otg: vcc5v0-otg-regulator {
122 compatible = "regulator-fixed";
124 gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&otg_vbus_drv>;
127 regulator-name = "vcc5v0_otg";
131 vcc5v0_host: vcc5v0-host-regulator {
132 compatible = "regulator-fixed";
134 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&host_vbus_drv>;
137 regulator-name = "vcc5v0_host";
141 vcc5v0_sys: vcc5v0-sys {
142 compatible = "regulator-fixed";
143 regulator-name = "vcc5v0_sys";
146 regulator-min-microvolt = <5000000>;
147 regulator-max-microvolt = <5000000>;
150 vcc_phy: vcc-phy-regulator {
151 compatible = "regulator-fixed";
152 regulator-name = "vcc_phy";
158 compatible = "pwm-regulator";
159 pwms = <&pwm2 0 25000 1>;
160 regulator-name = "vdd_log";
161 regulator-min-microvolt = <800000>;
162 regulator-max-microvolt = <1400000>;
166 /* for rockchip boot on */
167 rockchip,pwm_id= <2>;
168 rockchip,pwm_voltage = <1000000>;
177 phy-supply = <&vcc_phy>;
179 clock_in_out = "input";
180 snps,reset-gpio = <&gpio3 16 GPIO_ACTIVE_LOW>;
181 snps,reset-active-low;
182 snps,reset-delays-us = <2 10000 50000>;
183 assigned-clocks = <&cru SCLK_RMII_SRC>;
184 assigned-clock-parents = <&clkin_gmac>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&rgmii_pins>;
193 #address-cells = <1>;
195 #sound-dai-cells = <0>;
201 i2c-scl-rising-time-ns = <168>;
202 i2c-scl-falling-time-ns = <4>;
203 clock-frequency = <400000>;
205 vdd_gpu: fan535555@60 {
206 compatible = "fcs,fan53555";
208 vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
209 vin-supply = <&vcc5v0_sys>;
210 regulator-compatible = "fan53555-reg";
211 regulator-name = "vdd_gpu";
212 regulator-min-microvolt = <600000>;
213 regulator-max-microvolt = <1230000>;
214 regulator-ramp-delay = <1000>;
215 fcs,suspend-voltage-selector = <1>;
218 regulator-initial-state = <3>;
219 regulator-state-mem {
220 regulator-off-in-suspend;
225 compatible = "rockchip,rk808";
227 interrupt-parent = <&gpio1>;
228 interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt?
229 pinctrl-names = "default";
230 pinctrl-0 = <&pmic_int_l>;
231 rockchip,system-power-controller;
234 clock-output-names = "xin32k", "rk808-clkout2";
236 vcc1-supply = <&vcc5v0_sys>;
237 vcc2-supply = <&vcc5v0_sys>;
238 vcc3-supply = <&vcc5v0_sys>;
239 vcc4-supply = <&vcc5v0_sys>;
240 vcc6-supply = <&vcc5v0_sys>;
241 vcc7-supply = <&vcc5v0_sys>;
242 vcc8-supply = <&vcc3v3_sys>;
243 vcc9-supply = <&vcc5v0_sys>;
244 vcc10-supply = <&vcc5v0_sys>;
245 vcc11-supply = <&vcc5v0_sys>;
246 vcc12-supply = <&vcc3v3_sys>;
247 vddio-supply = <&vcc1v8_pmu>;
250 vdd_center: DCDC_REG1 {
253 regulator-min-microvolt = <750000>;
254 regulator-max-microvolt = <1350000>;
255 regulator-ramp-delay = <6001>;
256 regulator-name = "vdd_center";
257 regulator-state-mem {
258 regulator-off-in-suspend;
262 vdd_cpu_l: DCDC_REG2 {
265 regulator-min-microvolt = <750000>;
266 regulator-max-microvolt = <1350000>;
267 regulator-ramp-delay = <6001>;
268 regulator-name = "vdd_cpu_l";
269 regulator-state-mem {
270 regulator-off-in-suspend;
277 regulator-name = "vcc_ddr";
278 regulator-state-mem {
279 regulator-on-in-suspend;
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <1800000>;
288 regulator-name = "vcc_1v8";
289 regulator-state-mem {
290 regulator-on-in-suspend;
291 regulator-suspend-microvolt = <1800000>;
297 regulator-min-microvolt = <1800000>;
298 regulator-max-microvolt = <1800000>;
299 regulator-name = "vcc_ldo1";
300 regulator-state-mem {
301 regulator-off-in-suspend;
305 vcc1v8_hdmi: LDO_REG2 {
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
310 regulator-name = "vcc1v8_hdmi";
311 regulator-state-mem {
312 regulator-off-in-suspend;
316 vcc1v8_pmu: LDO_REG3 {
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
321 regulator-name = "vcc1v8_pmu";
322 regulator-state-mem {
323 regulator-on-in-suspend;
324 regulator-suspend-microvolt = <1800000>;
331 regulator-min-microvolt = <1800000>;
332 regulator-max-microvolt = <3300000>;
333 regulator-name = "vcc_sd";
334 regulator-state-mem {
335 regulator-on-in-suspend;
336 regulator-suspend-microvolt = <3300000>;
342 regulator-min-microvolt = <3000000>;
343 regulator-max-microvolt = <3000000>;
344 regulator-name = "vcc_ldo5";
345 regulator-state-mem {
346 regulator-off-in-suspend;
352 regulator-min-microvolt = <1500000>;
353 regulator-max-microvolt = <1500000>;
354 regulator-name = "vcc_ldo6";
355 regulator-state-mem {
356 regulator-off-in-suspend;
360 vcc0v9_hdmi: LDO_REG7 {
363 regulator-min-microvolt = <900000>;
364 regulator-max-microvolt = <900000>;
365 regulator-name = "vcc0v9_hdmi";
366 regulator-state-mem {
367 regulator-off-in-suspend;
371 vcc_efuse: LDO_REG8 {
374 regulator-min-microvolt = <1800000>;
375 regulator-max-microvolt = <1800000>;
376 regulator-name = "vcc_efuse";
377 regulator-state-mem {
378 regulator-off-in-suspend;
382 vcc3v3_s3: SWITCH_REG1 {
385 regulator-name = "vcc3v3_s3";
386 regulator-state-mem {
387 regulator-off-in-suspend;
391 vcc3v3_s0: SWITCH_REG2 {
394 regulator-name = "vcc3v3_s0";
395 regulator-state-mem {
396 regulator-off-in-suspend;
405 clock-frequency = <400000>;
407 vdd_cpu_b: fan53555@60 {
408 compatible = "fcs,fan53555";
410 vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
411 vin-supply = <&vcc5v0_sys>;
412 regulator-compatible = "fan53555-reg";
413 regulator-name = "vdd_cpu_b";
414 regulator-min-microvolt = <600000>;
415 regulator-max-microvolt = <1230000>;
416 regulator-ramp-delay = <1000>;
417 fcs,suspend-voltage-selector = <1>;
420 regulator-initial-state = <3>;
421 regulator-state-mem {
422 regulator-off-in-suspend;
429 rockchip,i2s-broken-burst-len;
430 rockchip,playback-channels = <8>;
431 rockchip,capture-channels = <8>;
432 #sound-dai-cells = <0>;
436 #sound-dai-cells = <0>;
443 bt656-supply = <&vcc_1v8>; /* bt656_gpio2ab_ms */
444 audio-supply = <&vcc_1v8>; /* audio_gpio3d4a_ms */
445 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
446 gpio1830-supply = <&vcc_1v8>; /* gpio1833_gpio4cd_ms */
450 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
451 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
452 assigned-clock-rates = <100000000>;
453 ep-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
455 pinctrl-names = "default";
456 pinctrl-0 = <&pcie_clkreqn>;
466 pmu1830-supply = <&vcc_1v8>;
482 keep-power-in-suspend;
483 mmc-hs400-enhanced-strobe;
489 clock-frequency = <150000000>;
490 clock-freq-min-max = <100000 150000000>;
497 vqmmc-supply = <&vcc_sd>;
498 pinctrl-names = "default";
499 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
536 /* Pins that are not explicitely used by any devices */
537 pinctrl-names = "default";
538 pinctrl-0 = <&puma_pin_hog>;
540 puma_pin_hog: puma_pin_hog {
542 /* We need pull-ups on Q7 buttons */
543 <0 4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */
544 <0 10 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */
545 <0 11 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */
546 <0 9 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */
551 pmic_int_l: pmic-int-l {
553 <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
557 leds_pins_puma: led_pins@0 {
559 <2 25 RK_FUNC_GPIO &pcfg_pull_none>,
560 <1 2 RK_FUNC_GPIO &pcfg_pull_none>;
564 otg_vbus_drv: otg-vbus-drv {
566 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
569 host_vbus_drv: host-vbus-drv {
571 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
576 i2c8_xfer_a: i2c8-xfer {
577 rockchip,pins = <1 21 RK_FUNC_1 &pcfg_pull_up>,
578 <1 20 RK_FUNC_1 &pcfg_pull_up>;
585 clock-frequency = <400000>;
589 clock-frequency = <400000>;
593 clock-frequency = <400000>;
597 clock-frequency = <400000>;
601 /* Enable pull-ups, the pins would float otherwise. */
603 <2 10 RK_FUNC_2 &pcfg_pull_up>,
604 <2 9 RK_FUNC_2 &pcfg_pull_up>;
609 clock-frequency = <400000>;
612 compatible = "isil,isl1208";
616 compatible = "ti,amc6821";
618 cooling-min-state = <0>;
619 cooling-max-state = <9>;
620 #cooling-cells = <2>;
626 pinctrl-names = "default";
627 pinctrl-0 = <&uart0_xfer &uart0_cts>;
637 #address-cells = <1>;
640 spiflash: w25q32dw@0 {
643 compatible = "spi-flash";
645 spi-max-frequency = <49500000>;