1 // SPDX-License-Identifier: GPL-2.0+ OR X11
3 * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
6 #include <dt-bindings/pwm/pwm.h>
10 model = "Theobroma Systems RK3399-Q7 SoM";
11 compatible = "tsd,rk3399-q7", "tsd,puma", "rockchip,rk3399";
14 u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
15 u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */
16 u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */
17 u-boot,boot-led = "module_led";
18 sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
22 stdout-path = "serial0:115200n8";
23 u-boot,spl-boot-order = \
24 "same-as-spl", &spiflash, &sdhci, &sdmmc;
33 compatible = "gpio-leds";
34 pinctrl-names = "default";
35 pinctrl-0 = <&leds_pins_puma>;
39 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
40 linux,default-trigger = "heartbeat";
44 label = "sd_card_led";
45 gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "mmc0";
50 clkin_gmac: external-gmac-clock {
51 compatible = "fixed-clock";
52 clock-frequency = <125000000>;
53 clock-output-names = "clkin_gmac";
57 dw_hdmi_audio: dw-hdmi-audio {
59 compatible = "rockchip,dw-hdmi-audio";
60 #sound-dai-cells = <0>;
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";
69 simple-audio-card,cpu {
73 simple-audio-card,codec {
78 hdmi_sound: hdmi-sound {
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";
85 simple-audio-card,cpu {
88 simple-audio-card,codec {
93 usbhub_enable: usbhub_enable {
94 compatible = "regulator-fixed";
95 regulator-name = "usbhub_enable";
97 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
104 * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
105 * eMMC and SPI flash powered-down initially (in fact it keeps the
106 * reset signal asserted). Even though it is an enable signal, we
107 * model this as a regulator.
109 bios_enable: bios_enable {
110 compatible = "regulator-fixed";
112 regulator-name = "bios_enable";
114 gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
117 regulator-min-microvolt = <1800000>;
118 regulator-max-microvolt = <1800000>;
121 vccadc_ref: vccadc-ref {
122 compatible = "regulator-fixed";
123 regulator-name = "vcc1v8_sys";
126 regulator-min-microvolt = <1800000>;
127 regulator-max-microvolt = <1800000>;
130 vcc3v3_sys: vcc3v3-sys {
131 compatible = "regulator-fixed";
132 regulator-name = "vcc3v3_sys";
135 regulator-min-microvolt = <3300000>;
136 regulator-max-microvolt = <3300000>;
139 vcc5v0_otg: vcc5v0-otg-regulator {
140 compatible = "regulator-fixed";
142 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&otg_vbus_drv>;
145 regulator-name = "vcc5v0_otg";
149 vcc5v0_host: vcc5v0-host-regulator {
150 compatible = "regulator-fixed";
152 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&host_vbus_drv>;
155 regulator-name = "vcc5v0_host";
159 vcc5v0_sys: vcc5v0-sys {
160 compatible = "regulator-fixed";
161 regulator-name = "vcc5v0_sys";
164 regulator-min-microvolt = <5000000>;
165 regulator-max-microvolt = <5000000>;
168 vcc_phy: vcc-phy-regulator {
169 compatible = "regulator-fixed";
170 regulator-name = "vcc_phy";
176 compatible = "pwm-regulator";
177 pwms = <&pwm2 0 25000 1>;
178 regulator-name = "vdd_log";
179 regulator-min-microvolt = <800000>;
180 regulator-max-microvolt = <1400000>;
184 /* for rockchip boot on */
185 rockchip,pwm_id= <2>;
186 rockchip,pwm_voltage = <1000000>;
195 phy-supply = <&vcc_phy>;
197 clock_in_out = "input";
198 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
199 snps,reset-active-low;
200 snps,reset-delays-us = <2 10000 50000>;
201 assigned-clocks = <&cru SCLK_RMII_SRC>;
202 assigned-clock-parents = <&clkin_gmac>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&rgmii_pins>;
211 #sound-dai-cells = <0>;
217 i2c-scl-rising-time-ns = <168>;
218 i2c-scl-falling-time-ns = <4>;
219 clock-frequency = <400000>;
221 vdd_gpu: fan535555@60 {
222 compatible = "fcs,fan53555";
224 vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
225 vin-supply = <&vcc5v0_sys>;
226 regulator-compatible = "fan53555-reg";
227 regulator-name = "vdd_gpu";
228 regulator-min-microvolt = <600000>;
229 regulator-max-microvolt = <1230000>;
230 regulator-ramp-delay = <1000>;
231 fcs,suspend-voltage-selector = <1>;
234 regulator-initial-state = <3>;
235 regulator-state-mem {
236 regulator-off-in-suspend;
241 compatible = "rockchip,rk808";
243 interrupt-parent = <&gpio1>;
244 interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt?
245 pinctrl-names = "default";
246 pinctrl-0 = <&pmic_int_l>;
247 rockchip,system-power-controller;
250 clock-output-names = "xin32k", "rk808-clkout2";
252 vcc1-supply = <&vcc5v0_sys>;
253 vcc2-supply = <&vcc5v0_sys>;
254 vcc3-supply = <&vcc5v0_sys>;
255 vcc4-supply = <&vcc5v0_sys>;
256 vcc6-supply = <&vcc5v0_sys>;
257 vcc7-supply = <&vcc5v0_sys>;
258 vcc8-supply = <&vcc3v3_sys>;
259 vcc9-supply = <&vcc5v0_sys>;
260 vcc10-supply = <&vcc5v0_sys>;
261 vcc11-supply = <&vcc5v0_sys>;
262 vcc12-supply = <&vcc3v3_sys>;
263 vddio-supply = <&vcc1v8_pmu>;
266 vdd_center: DCDC_REG1 {
269 regulator-min-microvolt = <750000>;
270 regulator-max-microvolt = <1350000>;
271 regulator-ramp-delay = <6001>;
272 regulator-name = "vdd_center";
273 regulator-state-mem {
274 regulator-off-in-suspend;
278 vdd_cpu_l: DCDC_REG2 {
281 regulator-min-microvolt = <750000>;
282 regulator-max-microvolt = <1350000>;
283 regulator-ramp-delay = <6001>;
284 regulator-name = "vdd_cpu_l";
285 regulator-state-mem {
286 regulator-off-in-suspend;
293 regulator-name = "vcc_ddr";
294 regulator-state-mem {
295 regulator-on-in-suspend;
302 regulator-min-microvolt = <1800000>;
303 regulator-max-microvolt = <1800000>;
304 regulator-name = "vcc_1v8";
305 regulator-state-mem {
306 regulator-on-in-suspend;
307 regulator-suspend-microvolt = <1800000>;
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
315 regulator-name = "vcc_ldo1";
316 regulator-state-mem {
317 regulator-off-in-suspend;
321 vcc1v8_hdmi: LDO_REG2 {
324 regulator-min-microvolt = <1800000>;
325 regulator-max-microvolt = <1800000>;
326 regulator-name = "vcc1v8_hdmi";
327 regulator-state-mem {
328 regulator-off-in-suspend;
332 vcc1v8_pmu: LDO_REG3 {
335 regulator-min-microvolt = <1800000>;
336 regulator-max-microvolt = <1800000>;
337 regulator-name = "vcc1v8_pmu";
338 regulator-state-mem {
339 regulator-on-in-suspend;
340 regulator-suspend-microvolt = <1800000>;
347 regulator-min-microvolt = <1800000>;
348 regulator-max-microvolt = <3000000>;
349 regulator-name = "vcc_sd";
350 regulator-state-mem {
351 regulator-on-in-suspend;
352 regulator-suspend-microvolt = <3000000>;
358 regulator-min-microvolt = <3000000>;
359 regulator-max-microvolt = <3000000>;
360 regulator-name = "vcc_ldo5";
361 regulator-state-mem {
362 regulator-off-in-suspend;
368 regulator-min-microvolt = <1500000>;
369 regulator-max-microvolt = <1500000>;
370 regulator-name = "vcc_ldo6";
371 regulator-state-mem {
372 regulator-off-in-suspend;
376 vcc0v9_hdmi: LDO_REG7 {
379 regulator-min-microvolt = <900000>;
380 regulator-max-microvolt = <900000>;
381 regulator-name = "vcc0v9_hdmi";
382 regulator-state-mem {
383 regulator-off-in-suspend;
387 vcc_efuse: LDO_REG8 {
390 regulator-min-microvolt = <1800000>;
391 regulator-max-microvolt = <1800000>;
392 regulator-name = "vcc_efuse";
393 regulator-state-mem {
394 regulator-off-in-suspend;
398 vcc3v3_s3: SWITCH_REG1 {
401 regulator-name = "vcc3v3_s3";
402 regulator-state-mem {
403 regulator-off-in-suspend;
407 vcc3v3_s0: SWITCH_REG2 {
410 regulator-name = "vcc3v3_s0";
411 regulator-state-mem {
412 regulator-off-in-suspend;
421 clock-frequency = <400000>;
423 vdd_cpu_b: fan53555@60 {
424 compatible = "fcs,fan53555";
426 vsel-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
427 vin-supply = <&vcc5v0_sys>;
428 regulator-compatible = "fan53555-reg";
429 regulator-name = "vdd_cpu_b";
430 regulator-min-microvolt = <600000>;
431 regulator-max-microvolt = <1230000>;
432 regulator-ramp-delay = <1000>;
433 fcs,suspend-voltage-selector = <1>;
436 regulator-initial-state = <3>;
437 regulator-state-mem {
438 regulator-off-in-suspend;
445 rockchip,i2s-broken-burst-len;
446 rockchip,playback-channels = <8>;
447 rockchip,capture-channels = <8>;
448 #sound-dai-cells = <0>;
452 #sound-dai-cells = <0>;
459 bt656-supply = <&vcc_1v8>; /* bt656_gpio2ab_ms */
460 audio-supply = <&vcc_1v8>; /* audio_gpio3d4a_ms */
461 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
462 gpio1830-supply = <&vcc_1v8>; /* gpio1833_gpio4cd_ms */
466 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
467 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
468 assigned-clock-rates = <100000000>;
469 ep-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&pcie_clkreqn>;
482 pmu1830-supply = <&vcc_1v8>;
498 keep-power-in-suspend;
499 mmc-hs400-enhanced-strobe;
505 clock-frequency = <150000000>;
506 max-frequency = <40000000>;
513 vqmmc-supply = <&vcc_sd>;
514 pinctrl-names = "default";
515 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
545 tsd,usb-port-power = "usbhub_enable";
561 /* Pins that are not explicitely used by any devices */
562 pinctrl-names = "default";
563 pinctrl-0 = <&puma_pin_hog>;
566 puma_pin_hog: puma_pin_hog {
568 /* We need pull-ups on Q7 buttons */
569 <RK_GPIO0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */
570 <RK_GPIO0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */
571 <RK_GPIO0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */
572 <RK_GPIO0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */
577 pmic_int_l: pmic-int-l {
579 <RK_GPIO1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
583 leds_pins_puma: led_pins@0 {
585 <RK_GPIO2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
586 <RK_GPIO1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
590 otg_vbus_drv: otg-vbus-drv {
592 <RK_GPIO0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
595 host_vbus_drv: host-vbus-drv {
597 <RK_GPIO4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
602 i2c8_xfer_a: i2c8-xfer {
604 <RK_GPIO1 RK_PC5 RK_FUNC_1 &pcfg_pull_up>,
605 <RK_GPIO1 RK_PC4 RK_FUNC_1 &pcfg_pull_up>;
612 clock-frequency = <400000>;
616 clock-frequency = <400000>;
620 clock-frequency = <400000>;
624 clock-frequency = <400000>;
628 /* Enable pull-ups, the pins would float otherwise. */
630 <RK_GPIO2 RK_PB2 RK_FUNC_2 &pcfg_pull_up>,
631 <RK_GPIO2 RK_PB1 RK_FUNC_2 &pcfg_pull_up>;
636 clock-frequency = <400000>;
639 compatible = "isil,isl1208";
643 compatible = "ti,amc6821";
645 cooling-min-state = <0>;
646 cooling-max-state = <9>;
647 #cooling-cells = <2>;
653 pinctrl-names = "default";
654 pinctrl-0 = <&uart0_xfer &uart0_cts>;
664 #address-cells = <1>;
667 spiflash: w25q32dw@0 {
670 compatible = "spi-flash";
672 spi-max-frequency = <49500000>;