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 vccadc_ref: vccadc-ref {
93 compatible = "regulator-fixed";
94 regulator-name = "vcc1v8_sys";
97 regulator-min-microvolt = <1800000>;
98 regulator-max-microvolt = <1800000>;
101 vcc3v3_sys: vcc3v3-sys {
102 compatible = "regulator-fixed";
103 regulator-name = "vcc3v3_sys";
106 regulator-min-microvolt = <3300000>;
107 regulator-max-microvolt = <3300000>;
110 vcc5v0_otg: vcc5v0-otg-regulator {
111 compatible = "regulator-fixed";
113 gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&otg_vbus_drv>;
116 regulator-name = "vcc5v0_otg";
120 vcc5v0_host: vcc5v0-host-regulator {
121 compatible = "regulator-fixed";
123 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&host_vbus_drv>;
126 regulator-name = "vcc5v0_host";
130 vcc5v0_sys: vcc5v0-sys {
131 compatible = "regulator-fixed";
132 regulator-name = "vcc5v0_sys";
135 regulator-min-microvolt = <5000000>;
136 regulator-max-microvolt = <5000000>;
139 vcc_phy: vcc-phy-regulator {
140 compatible = "regulator-fixed";
141 regulator-name = "vcc_phy";
147 compatible = "pwm-regulator";
148 pwms = <&pwm2 0 25000 1>;
149 regulator-name = "vdd_log";
150 regulator-min-microvolt = <800000>;
151 regulator-max-microvolt = <1400000>;
155 /* for rockchip boot on */
156 rockchip,pwm_id= <2>;
157 rockchip,pwm_voltage = <1000000>;
166 phy-supply = <&vcc_phy>;
168 clock_in_out = "input";
169 snps,reset-gpio = <&gpio3 16 GPIO_ACTIVE_LOW>;
170 snps,reset-active-low;
171 snps,reset-delays-us = <2 10000 50000>;
172 assigned-clocks = <&cru SCLK_RMII_SRC>;
173 assigned-clock-parents = <&clkin_gmac>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&rgmii_pins>;
182 #address-cells = <1>;
184 #sound-dai-cells = <0>;
190 i2c-scl-rising-time-ns = <168>;
191 i2c-scl-falling-time-ns = <4>;
192 clock-frequency = <400000>;
194 vdd_gpu: fan535555@60 {
195 compatible = "fcs,fan53555";
197 vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
198 vin-supply = <&vcc5v0_sys>;
199 regulator-compatible = "fan53555-reg";
200 regulator-name = "vdd_gpu";
201 regulator-min-microvolt = <600000>;
202 regulator-max-microvolt = <1230000>;
203 regulator-ramp-delay = <1000>;
204 fcs,suspend-voltage-selector = <1>;
207 regulator-initial-state = <3>;
208 regulator-state-mem {
209 regulator-off-in-suspend;
214 compatible = "rockchip,rk808";
216 interrupt-parent = <&gpio1>;
217 interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt?
218 pinctrl-names = "default";
219 pinctrl-0 = <&pmic_int_l>;
220 rockchip,system-power-controller;
223 clock-output-names = "xin32k", "rk808-clkout2";
225 vcc1-supply = <&vcc5v0_sys>;
226 vcc2-supply = <&vcc5v0_sys>;
227 vcc3-supply = <&vcc5v0_sys>;
228 vcc4-supply = <&vcc5v0_sys>;
229 vcc6-supply = <&vcc5v0_sys>;
230 vcc7-supply = <&vcc5v0_sys>;
231 vcc8-supply = <&vcc3v3_sys>;
232 vcc9-supply = <&vcc5v0_sys>;
233 vcc10-supply = <&vcc5v0_sys>;
234 vcc11-supply = <&vcc5v0_sys>;
235 vcc12-supply = <&vcc3v3_sys>;
236 vddio-supply = <&vcc1v8_pmu>;
239 vdd_center: DCDC_REG1 {
242 regulator-min-microvolt = <750000>;
243 regulator-max-microvolt = <1350000>;
244 regulator-ramp-delay = <6001>;
245 regulator-name = "vdd_center";
246 regulator-state-mem {
247 regulator-off-in-suspend;
251 vdd_cpu_l: DCDC_REG2 {
254 regulator-min-microvolt = <750000>;
255 regulator-max-microvolt = <1350000>;
256 regulator-ramp-delay = <6001>;
257 regulator-name = "vdd_cpu_l";
258 regulator-state-mem {
259 regulator-off-in-suspend;
266 regulator-name = "vcc_ddr";
267 regulator-state-mem {
268 regulator-on-in-suspend;
275 regulator-min-microvolt = <1800000>;
276 regulator-max-microvolt = <1800000>;
277 regulator-name = "vcc_1v8";
278 regulator-state-mem {
279 regulator-on-in-suspend;
280 regulator-suspend-microvolt = <1800000>;
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <1800000>;
288 regulator-name = "vcc_ldo1";
289 regulator-state-mem {
290 regulator-off-in-suspend;
294 vcc1v8_hdmi: LDO_REG2 {
297 regulator-min-microvolt = <1800000>;
298 regulator-max-microvolt = <1800000>;
299 regulator-name = "vcc1v8_hdmi";
300 regulator-state-mem {
301 regulator-off-in-suspend;
305 vcc1v8_pmu: LDO_REG3 {
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
310 regulator-name = "vcc1v8_pmu";
311 regulator-state-mem {
312 regulator-on-in-suspend;
313 regulator-suspend-microvolt = <1800000>;
320 regulator-min-microvolt = <1800000>;
321 regulator-max-microvolt = <3300000>;
322 regulator-name = "vcc_sd";
323 regulator-state-mem {
324 regulator-on-in-suspend;
325 regulator-suspend-microvolt = <3300000>;
331 regulator-min-microvolt = <3000000>;
332 regulator-max-microvolt = <3000000>;
333 regulator-name = "vcc_ldo5";
334 regulator-state-mem {
335 regulator-off-in-suspend;
341 regulator-min-microvolt = <1500000>;
342 regulator-max-microvolt = <1500000>;
343 regulator-name = "vcc_ldo6";
344 regulator-state-mem {
345 regulator-off-in-suspend;
349 vcc0v9_hdmi: LDO_REG7 {
352 regulator-min-microvolt = <900000>;
353 regulator-max-microvolt = <900000>;
354 regulator-name = "vcc0v9_hdmi";
355 regulator-state-mem {
356 regulator-off-in-suspend;
360 vcc_efuse: LDO_REG8 {
363 regulator-min-microvolt = <1800000>;
364 regulator-max-microvolt = <1800000>;
365 regulator-name = "vcc_efuse";
366 regulator-state-mem {
367 regulator-off-in-suspend;
371 vcc3v3_s3: SWITCH_REG1 {
374 regulator-name = "vcc3v3_s3";
375 regulator-state-mem {
376 regulator-off-in-suspend;
380 vcc3v3_s0: SWITCH_REG2 {
383 regulator-name = "vcc3v3_s0";
384 regulator-state-mem {
385 regulator-off-in-suspend;
394 clock-frequency = <400000>;
396 vdd_cpu_b: fan53555@60 {
397 compatible = "fcs,fan53555";
399 vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
400 vin-supply = <&vcc5v0_sys>;
401 regulator-compatible = "fan53555-reg";
402 regulator-name = "vdd_cpu_b";
403 regulator-min-microvolt = <600000>;
404 regulator-max-microvolt = <1230000>;
405 regulator-ramp-delay = <1000>;
406 fcs,suspend-voltage-selector = <1>;
409 regulator-initial-state = <3>;
410 regulator-state-mem {
411 regulator-off-in-suspend;
418 rockchip,i2s-broken-burst-len;
419 rockchip,playback-channels = <8>;
420 rockchip,capture-channels = <8>;
421 #sound-dai-cells = <0>;
425 #sound-dai-cells = <0>;
432 bt656-supply = <&vcc_1v8>; /* bt656_gpio2ab_ms */
433 audio-supply = <&vcc_1v8>; /* audio_gpio3d4a_ms */
434 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
435 gpio1830-supply = <&vcc_1v8>; /* gpio1833_gpio4cd_ms */
439 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
440 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
441 assigned-clock-rates = <100000000>;
442 ep-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
444 pinctrl-names = "default";
445 pinctrl-0 = <&pcie_clkreqn>;
455 pmu1830-supply = <&vcc_1v8>;
471 keep-power-in-suspend;
472 mmc-hs400-enhanced-strobe;
478 clock-frequency = <150000000>;
479 clock-freq-min-max = <100000 150000000>;
486 vqmmc-supply = <&vcc_sd>;
487 pinctrl-names = "default";
488 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
517 rockchip,vbus-gpio = <&gpio4 3 GPIO_ACTIVE_LOW>;
526 /* Pins that are not explicitely used by any devices */
527 pinctrl-names = "default";
528 pinctrl-0 = <&puma_pin_hog>;
530 puma_pin_hog: puma_pin_hog {
532 /* We need pull-ups on Q7 buttons */
533 <0 4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */
534 <0 10 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */
535 <0 11 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */
536 <0 9 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */
541 pmic_int_l: pmic-int-l {
543 <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
547 leds_pins_puma: led_pins@0 {
549 <2 25 RK_FUNC_GPIO &pcfg_pull_none>,
550 <1 2 RK_FUNC_GPIO &pcfg_pull_none>;
554 otg_vbus_drv: otg-vbus-drv {
556 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
559 host_vbus_drv: host-vbus-drv {
561 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
566 i2c8_xfer_a: i2c8-xfer {
567 rockchip,pins = <1 21 RK_FUNC_1 &pcfg_pull_up>,
568 <1 20 RK_FUNC_1 &pcfg_pull_up>;
575 clock-frequency = <400000>;
579 clock-frequency = <400000>;
583 clock-frequency = <400000>;
587 clock-frequency = <400000>;
591 /* Enable pull-ups, the pins would float otherwise. */
593 <2 10 RK_FUNC_2 &pcfg_pull_up>,
594 <2 9 RK_FUNC_2 &pcfg_pull_up>;
599 clock-frequency = <400000>;
602 compatible = "isil,isl1208";
606 compatible = "ti,amc6821";
608 cooling-min-state = <0>;
609 cooling-max-state = <9>;
610 #cooling-cells = <2>;
616 pinctrl-names = "default";
617 pinctrl-0 = <&uart0_xfer &uart0_cts>;
627 #address-cells = <1>;
630 spiflash: w25q32dw@0 {
633 compatible = "spi-flash";
635 spi-max-frequency = <49500000>;