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>; /* 256kbyte */
16 u-boot,boot-led = "module_led";
20 stdout-path = "serial0:115200n8";
21 u-boot,spl-boot-order = &spiflash, &sdhci, &sdmmc;
30 compatible = "gpio-leds";
31 pinctrl-names = "default";
32 pinctrl-0 = <&leds_pins_puma>;
36 gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
37 linux,default-trigger = "heartbeat";
41 label = "sd_card_led";
42 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
43 linux,default-trigger = "mmc0";
47 clkin_gmac: external-gmac-clock {
48 compatible = "fixed-clock";
49 clock-frequency = <125000000>;
50 clock-output-names = "clkin_gmac";
54 dw_hdmi_audio: dw-hdmi-audio {
56 compatible = "rockchip,dw-hdmi-audio";
57 #sound-dai-cells = <0>;
60 hdmi_codec: hdmi-codec {
61 compatible = "simple-audio-card";
62 simple-audio-card,format = "i2s";
63 simple-audio-card,mclk-fs = <256>;
64 simple-audio-card,name = "HDMI-CODEC";
66 simple-audio-card,cpu {
70 simple-audio-card,codec {
75 hdmi_sound: hdmi-sound {
77 compatible = "simple-audio-card";
78 simple-audio-card,format = "i2s";
79 simple-audio-card,mclk-fs = <256>;
80 simple-audio-card,name = "rockchip,hdmi";
82 simple-audio-card,cpu {
85 simple-audio-card,codec {
90 vccadc_ref: vccadc-ref {
91 compatible = "regulator-fixed";
92 regulator-name = "vcc1v8_sys";
95 regulator-min-microvolt = <1800000>;
96 regulator-max-microvolt = <1800000>;
99 vcc3v3_sys: vcc3v3-sys {
100 compatible = "regulator-fixed";
101 regulator-name = "vcc3v3_sys";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
108 vcc5v0_otg: vcc5v0-otg-regulator {
109 compatible = "regulator-fixed";
111 gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&otg_vbus_drv>;
114 regulator-name = "vcc5v0_otg";
118 vcc5v0_host: vcc5v0-host-regulator {
119 compatible = "regulator-fixed";
121 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&host_vbus_drv>;
124 regulator-name = "vcc5v0_host";
128 vcc5v0_sys: vcc5v0-sys {
129 compatible = "regulator-fixed";
130 regulator-name = "vcc5v0_sys";
133 regulator-min-microvolt = <5000000>;
134 regulator-max-microvolt = <5000000>;
137 vcc_phy: vcc-phy-regulator {
138 compatible = "regulator-fixed";
139 regulator-name = "vcc_phy";
145 compatible = "pwm-regulator";
146 pwms = <&pwm2 0 25000 1>;
147 regulator-name = "vdd_log";
148 regulator-min-microvolt = <800000>;
149 regulator-max-microvolt = <1400000>;
153 /* for rockchip boot on */
154 rockchip,pwm_id= <2>;
155 rockchip,pwm_voltage = <1000000>;
164 phy-supply = <&vcc_phy>;
166 clock_in_out = "input";
167 snps,reset-gpio = <&gpio3 16 GPIO_ACTIVE_LOW>;
168 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>;
180 #address-cells = <1>;
182 #sound-dai-cells = <0>;
188 i2c-scl-rising-time-ns = <168>;
189 i2c-scl-falling-time-ns = <4>;
190 clock-frequency = <400000>;
192 vdd_gpu: fan535555@60 {
193 compatible = "fcs,fan53555";
195 vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
196 vin-supply = <&vcc5v0_sys>;
197 regulator-compatible = "fan53555-reg";
198 regulator-name = "vdd_gpu";
199 regulator-min-microvolt = <600000>;
200 regulator-max-microvolt = <1230000>;
201 regulator-ramp-delay = <1000>;
202 fcs,suspend-voltage-selector = <1>;
205 regulator-initial-state = <3>;
206 regulator-state-mem {
207 regulator-off-in-suspend;
212 compatible = "rockchip,rk808";
214 interrupt-parent = <&gpio1>;
215 interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt?
216 pinctrl-names = "default";
217 pinctrl-0 = <&pmic_int_l>;
218 rockchip,system-power-controller;
221 clock-output-names = "xin32k", "rk808-clkout2";
223 vcc1-supply = <&vcc5v0_sys>;
224 vcc2-supply = <&vcc5v0_sys>;
225 vcc3-supply = <&vcc5v0_sys>;
226 vcc4-supply = <&vcc5v0_sys>;
227 vcc6-supply = <&vcc5v0_sys>;
228 vcc7-supply = <&vcc5v0_sys>;
229 vcc8-supply = <&vcc3v3_sys>;
230 vcc9-supply = <&vcc5v0_sys>;
231 vcc10-supply = <&vcc5v0_sys>;
232 vcc11-supply = <&vcc5v0_sys>;
233 vcc12-supply = <&vcc3v3_sys>;
234 vddio-supply = <&vcc1v8_pmu>;
237 vdd_center: DCDC_REG1 {
240 regulator-min-microvolt = <750000>;
241 regulator-max-microvolt = <1350000>;
242 regulator-ramp-delay = <6001>;
243 regulator-name = "vdd_center";
244 regulator-state-mem {
245 regulator-off-in-suspend;
249 vdd_cpu_l: DCDC_REG2 {
252 regulator-min-microvolt = <750000>;
253 regulator-max-microvolt = <1350000>;
254 regulator-ramp-delay = <6001>;
255 regulator-name = "vdd_cpu_l";
256 regulator-state-mem {
257 regulator-off-in-suspend;
264 regulator-name = "vcc_ddr";
265 regulator-state-mem {
266 regulator-on-in-suspend;
273 regulator-min-microvolt = <1800000>;
274 regulator-max-microvolt = <1800000>;
275 regulator-name = "vcc_1v8";
276 regulator-state-mem {
277 regulator-on-in-suspend;
278 regulator-suspend-microvolt = <1800000>;
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <1800000>;
286 regulator-name = "vcc_ldo1";
287 regulator-state-mem {
288 regulator-off-in-suspend;
292 vcc1v8_hdmi: LDO_REG2 {
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <1800000>;
297 regulator-name = "vcc1v8_hdmi";
298 regulator-state-mem {
299 regulator-off-in-suspend;
303 vcc1v8_pmu: LDO_REG3 {
306 regulator-min-microvolt = <1800000>;
307 regulator-max-microvolt = <1800000>;
308 regulator-name = "vcc1v8_pmu";
309 regulator-state-mem {
310 regulator-on-in-suspend;
311 regulator-suspend-microvolt = <1800000>;
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <3300000>;
320 regulator-name = "vcc_sd";
321 regulator-state-mem {
322 regulator-on-in-suspend;
323 regulator-suspend-microvolt = <3300000>;
329 regulator-min-microvolt = <3000000>;
330 regulator-max-microvolt = <3000000>;
331 regulator-name = "vcc_ldo5";
332 regulator-state-mem {
333 regulator-off-in-suspend;
339 regulator-min-microvolt = <1500000>;
340 regulator-max-microvolt = <1500000>;
341 regulator-name = "vcc_ldo6";
342 regulator-state-mem {
343 regulator-off-in-suspend;
347 vcc0v9_hdmi: LDO_REG7 {
350 regulator-min-microvolt = <900000>;
351 regulator-max-microvolt = <900000>;
352 regulator-name = "vcc0v9_hdmi";
353 regulator-state-mem {
354 regulator-off-in-suspend;
358 vcc_efuse: LDO_REG8 {
361 regulator-min-microvolt = <1800000>;
362 regulator-max-microvolt = <1800000>;
363 regulator-name = "vcc_efuse";
364 regulator-state-mem {
365 regulator-off-in-suspend;
369 vcc3v3_s3: SWITCH_REG1 {
372 regulator-name = "vcc3v3_s3";
373 regulator-state-mem {
374 regulator-off-in-suspend;
378 vcc3v3_s0: SWITCH_REG2 {
381 regulator-name = "vcc3v3_s0";
382 regulator-state-mem {
383 regulator-off-in-suspend;
392 clock-frequency = <400000>;
394 vdd_cpu_b: fan53555@60 {
395 compatible = "fcs,fan53555";
397 vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
398 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>;
407 regulator-initial-state = <3>;
408 regulator-state-mem {
409 regulator-off-in-suspend;
416 rockchip,i2s-broken-burst-len;
417 rockchip,playback-channels = <8>;
418 rockchip,capture-channels = <8>;
419 #sound-dai-cells = <0>;
423 #sound-dai-cells = <0>;
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 */
437 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
438 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
439 assigned-clock-rates = <100000000>;
440 ep-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
442 pinctrl-names = "default";
443 pinctrl-0 = <&pcie_clkreqn>;
453 pmu1830-supply = <&vcc_1v8>;
469 keep-power-in-suspend;
470 mmc-hs400-enhanced-strobe;
476 clock-frequency = <150000000>;
477 clock-freq-min-max = <100000 150000000>;
484 vqmmc-supply = <&vcc_sd>;
485 pinctrl-names = "default";
486 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
515 rockchip,vbus-gpio = <&gpio4 3 GPIO_ACTIVE_LOW>;
524 /* Pins that are not explicitely used by any devices */
525 pinctrl-names = "default";
526 pinctrl-0 = <&puma_pin_hog>;
528 puma_pin_hog: puma_pin_hog {
530 /* We need pull-ups on Q7 buttons */
531 <0 4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */
532 <0 10 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */
533 <0 11 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */
534 <0 9 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */
539 pmic_int_l: pmic-int-l {
541 <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
545 leds_pins_puma: led_pins@0 {
547 <2 25 RK_FUNC_GPIO &pcfg_pull_none>,
548 <1 2 RK_FUNC_GPIO &pcfg_pull_none>;
552 otg_vbus_drv: otg-vbus-drv {
554 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
557 host_vbus_drv: host-vbus-drv {
559 <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
564 i2c8_xfer_a: i2c8-xfer {
565 rockchip,pins = <1 21 RK_FUNC_1 &pcfg_pull_up>,
566 <1 20 RK_FUNC_1 &pcfg_pull_up>;
573 clock-frequency = <400000>;
577 clock-frequency = <400000>;
581 clock-frequency = <400000>;
585 clock-frequency = <400000>;
589 /* Enable pull-ups, the pins would float otherwise. */
591 <2 10 RK_FUNC_2 &pcfg_pull_up>,
592 <2 9 RK_FUNC_2 &pcfg_pull_up>;
597 clock-frequency = <400000>;
600 compatible = "isil,isl1208";
604 compatible = "ti,amc6821";
606 cooling-min-state = <0>;
607 cooling-max-state = <9>;
608 #cooling-cells = <2>;
614 pinctrl-names = "default";
615 pinctrl-0 = <&uart0_xfer &uart0_cts>;
625 #address-cells = <1>;
628 spiflash: w25q32dw@0 {
631 compatible = "spi-flash";
633 spi-max-frequency = <49500000>;