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 compatible = "gpio-leds";
15 pinctrl-names = "default";
16 pinctrl-0 = <&leds_pins_puma>;
20 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
21 linux,default-trigger = "heartbeat";
25 label = "sd_card_led";
26 gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
27 linux,default-trigger = "mmc0";
31 clkin_gmac: external-gmac-clock {
32 compatible = "fixed-clock";
33 clock-frequency = <125000000>;
34 clock-output-names = "clkin_gmac";
38 dw_hdmi_audio: dw-hdmi-audio {
40 compatible = "rockchip,dw-hdmi-audio";
41 #sound-dai-cells = <0>;
44 hdmi_codec: hdmi-codec {
45 compatible = "simple-audio-card";
46 simple-audio-card,format = "i2s";
47 simple-audio-card,mclk-fs = <256>;
48 simple-audio-card,name = "HDMI-CODEC";
50 simple-audio-card,cpu {
54 simple-audio-card,codec {
59 hdmi_sound: hdmi-sound {
61 compatible = "simple-audio-card";
62 simple-audio-card,format = "i2s";
63 simple-audio-card,mclk-fs = <256>;
64 simple-audio-card,name = "rockchip,hdmi";
66 simple-audio-card,cpu {
69 simple-audio-card,codec {
74 usbhub_enable: usbhub_enable {
75 compatible = "regulator-fixed";
76 regulator-name = "usbhub_enable";
78 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&host_vbus_drv>;
82 regulator-min-microvolt = <3300000>;
83 regulator-max-microvolt = <3300000>;
87 * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
88 * eMMC and SPI flash powered-down initially (in fact it keeps the
89 * reset signal asserted). Even though it is an enable signal, we
90 * model this as a regulator.
92 bios_enable: bios_enable {
93 compatible = "regulator-fixed";
94 regulator-name = "bios_enable";
96 gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
99 regulator-min-microvolt = <1800000>;
100 regulator-max-microvolt = <1800000>;
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 RK_PA2 GPIO_ACTIVE_HIGH>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&otg_vbus_drv>;
127 regulator-name = "vcc5v0_otg";
131 vcc5v0_sys: vcc5v0-sys {
132 compatible = "regulator-fixed";
133 regulator-name = "vcc5v0_sys";
136 regulator-min-microvolt = <5000000>;
137 regulator-max-microvolt = <5000000>;
140 vcc_phy: vcc-phy-regulator {
141 compatible = "regulator-fixed";
142 regulator-name = "vcc_phy";
148 compatible = "pwm-regulator";
149 pwms = <&pwm2 0 25000 1>;
150 regulator-name = "vdd_log";
151 regulator-min-microvolt = <800000>;
152 regulator-max-microvolt = <1400000>;
155 regulator-init-microvolt = <950000>;
164 phy-supply = <&vcc_phy>;
166 clock_in_out = "input";
167 snps,reset-gpio = <&gpio3 RK_PC0 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 #sound-dai-cells = <0>;
186 i2c-scl-rising-time-ns = <168>;
187 i2c-scl-falling-time-ns = <4>;
188 clock-frequency = <400000>;
192 compatible = "fcs,fan53555";
194 vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
195 vin-supply = <&vcc5v0_sys>;
196 regulator-compatible = "fan53555-reg";
197 regulator-name = "vdd_gpu";
198 regulator-min-microvolt = <600000>;
199 regulator-max-microvolt = <1230000>;
200 regulator-ramp-delay = <1000>;
201 fcs,suspend-voltage-selector = <1>;
204 regulator-initial-state = <3>;
205 regulator-state-mem {
206 regulator-off-in-suspend;
211 compatible = "rockchip,rk808";
213 interrupt-parent = <&gpio1>;
214 interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt?
215 pinctrl-names = "default";
216 pinctrl-0 = <&pmic_int_l>;
217 rockchip,system-power-controller;
220 clock-output-names = "xin32k", "rk808-clkout2";
222 vcc1-supply = <&vcc5v0_sys>;
223 vcc2-supply = <&vcc5v0_sys>;
224 vcc3-supply = <&vcc5v0_sys>;
225 vcc4-supply = <&vcc5v0_sys>;
226 vcc6-supply = <&vcc5v0_sys>;
227 vcc7-supply = <&vcc5v0_sys>;
228 vcc8-supply = <&vcc3v3_sys>;
229 vcc9-supply = <&vcc5v0_sys>;
230 vcc10-supply = <&vcc5v0_sys>;
231 vcc11-supply = <&vcc5v0_sys>;
232 vcc12-supply = <&vcc3v3_sys>;
233 vddio-supply = <&vcc1v8_pmu>;
236 vdd_center: DCDC_REG1 {
239 regulator-min-microvolt = <750000>;
240 regulator-max-microvolt = <1350000>;
241 regulator-ramp-delay = <6001>;
242 regulator-name = "vdd_center";
243 regulator-state-mem {
244 regulator-off-in-suspend;
248 vdd_cpu_l: DCDC_REG2 {
251 regulator-min-microvolt = <750000>;
252 regulator-max-microvolt = <1350000>;
253 regulator-ramp-delay = <6001>;
254 regulator-name = "vdd_cpu_l";
255 regulator-state-mem {
256 regulator-off-in-suspend;
263 regulator-name = "vcc_ddr";
264 regulator-state-mem {
265 regulator-on-in-suspend;
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
274 regulator-name = "vcc_1v8";
275 regulator-state-mem {
276 regulator-on-in-suspend;
277 regulator-suspend-microvolt = <1800000>;
283 regulator-min-microvolt = <1800000>;
284 regulator-max-microvolt = <1800000>;
285 regulator-name = "vcc_ldo1";
286 regulator-state-mem {
287 regulator-off-in-suspend;
291 vcc1v8_hdmi: LDO_REG2 {
294 regulator-min-microvolt = <1800000>;
295 regulator-max-microvolt = <1800000>;
296 regulator-name = "vcc1v8_hdmi";
297 regulator-state-mem {
298 regulator-off-in-suspend;
302 vcc1v8_pmu: LDO_REG3 {
305 regulator-min-microvolt = <1800000>;
306 regulator-max-microvolt = <1800000>;
307 regulator-name = "vcc1v8_pmu";
308 regulator-state-mem {
309 regulator-on-in-suspend;
310 regulator-suspend-microvolt = <1800000>;
317 regulator-min-microvolt = <1800000>;
318 regulator-max-microvolt = <3000000>;
319 regulator-name = "vcc_sd";
320 regulator-state-mem {
321 regulator-on-in-suspend;
322 regulator-suspend-microvolt = <3000000>;
328 regulator-min-microvolt = <3000000>;
329 regulator-max-microvolt = <3000000>;
330 regulator-name = "vcc_ldo5";
331 regulator-state-mem {
332 regulator-off-in-suspend;
338 regulator-min-microvolt = <1500000>;
339 regulator-max-microvolt = <1500000>;
340 regulator-name = "vcc_ldo6";
341 regulator-state-mem {
342 regulator-off-in-suspend;
346 vcc0v9_hdmi: LDO_REG7 {
349 regulator-min-microvolt = <900000>;
350 regulator-max-microvolt = <900000>;
351 regulator-name = "vcc0v9_hdmi";
352 regulator-state-mem {
353 regulator-off-in-suspend;
357 vcc_efuse: LDO_REG8 {
360 regulator-min-microvolt = <1800000>;
361 regulator-max-microvolt = <1800000>;
362 regulator-name = "vcc_efuse";
363 regulator-state-mem {
364 regulator-off-in-suspend;
368 vcc3v3_s3: SWITCH_REG1 {
371 regulator-name = "vcc3v3_s3";
372 regulator-state-mem {
373 regulator-off-in-suspend;
377 vcc3v3_s0: SWITCH_REG2 {
380 regulator-name = "vcc3v3_s0";
381 regulator-state-mem {
382 regulator-off-in-suspend;
391 clock-frequency = <400000>;
393 vdd_cpu_b: vdd_cpu_b {
395 compatible = "fcs,fan53555";
397 vsel-gpios = <&gpio1 RK_PA4 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 RK_PC6 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;
475 clock-frequency = <150000000>;
476 max-frequency = <40000000>;
483 vqmmc-supply = <&vcc_sd>;
484 pinctrl-names = "default";
485 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
515 tsd,usb-port-power = "usbhub_enable";
523 /* Pins that are not explicitely used by any devices */
524 pinctrl-names = "default";
525 pinctrl-0 = <&puma_pin_hog>;
528 puma_pin_hog: puma_pin_hog {
530 /* We need pull-ups on Q7 buttons */
531 <RK_GPIO0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */
532 <RK_GPIO0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */
533 <RK_GPIO0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */
534 <RK_GPIO0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */
539 pmic_int_l: pmic-int-l {
541 <RK_GPIO1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
545 leds_pins_puma: led_pins@0 {
547 <RK_GPIO2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
548 <RK_GPIO1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
552 otg_vbus_drv: otg-vbus-drv {
554 <RK_GPIO0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
557 host_vbus_drv: host-vbus-drv {
559 <RK_GPIO4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
564 i2c8_xfer_a: i2c8-xfer {
566 <RK_GPIO1 RK_PC5 RK_FUNC_1 &pcfg_pull_up>,
567 <RK_GPIO1 RK_PC4 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 <RK_GPIO2 RK_PB2 RK_FUNC_2 &pcfg_pull_up>,
593 <RK_GPIO2 RK_PB1 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>;
614 pinctrl-names = "default";
615 pinctrl-0 = <&uart0_xfer &uart0_cts>;
623 #address-cells = <1>;
626 spiflash: w25q32dw@0 {
627 compatible = "jedec,spi-nor";
629 spi-max-frequency = <49500000>;