1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
8 #include "dt-bindings/pwm/pwm.h"
9 #include "dt-bindings/input/input.h"
10 #include "rk3399.dtsi"
11 #include "rk3399-opp.dtsi"
14 model = "Orange Pi RK3399 Board";
15 compatible = "rockchip,rk3399-orangepi", "rockchip,rk3399";
18 stdout-path = "serial2:1500000n8";
21 clkin_gmac: external-gmac-clock {
22 compatible = "fixed-clock";
23 clock-frequency = <125000000>;
24 clock-output-names = "clkin_gmac";
29 compatible = "adc-keys";
30 io-channels = <&saradc 1>;
31 io-channel-names = "buttons";
32 keyup-threshold-microvolt = <1800000>;
33 poll-interval = <100>;
37 linux,code = <KEY_VOLUMEUP>;
38 press-threshold-microvolt = <100000>;
42 label = "Volume Down";
43 linux,code = <KEY_VOLUMEDOWN>;
44 press-threshold-microvolt = <300000>;
49 linux,code = <KEY_BACK>;
50 press-threshold-microvolt = <985000>;
55 linux,code = <KEY_MENU>;
56 press-threshold-microvolt = <1314000>;
61 compatible = "regulator-fixed";
62 regulator-name = "dc_12v";
65 regulator-min-microvolt = <12000000>;
66 regulator-max-microvolt = <12000000>;
70 compatible = "gpio-keys";
74 debounce-interval = <100>;
75 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_POWER>;
78 linux,input-type = <1>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&pwr_btn>;
85 sdio_pwrseq: sdio-pwrseq {
86 compatible = "mmc-pwrseq-simple";
88 clock-names = "ext_clock";
89 pinctrl-names = "default";
90 pinctrl-0 = <&wifi_reg_on_h>;
91 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
94 /* switched by pmic_sleep */
95 vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
96 compatible = "regulator-fixed";
97 regulator-name = "vcc1v8_s3";
100 regulator-min-microvolt = <1800000>;
101 regulator-max-microvolt = <1800000>;
102 vin-supply = <&vcc_1v8>;
105 vcc3v0_sd: vcc3v0-sd {
106 compatible = "regulator-fixed";
108 gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
109 pinctrl-names = "default";
110 pinctrl-0 = <&sdmmc0_pwr_h>;
112 regulator-max-microvolt = <3000000>;
113 regulator-min-microvolt = <3000000>;
114 regulator-name = "vcc3v0_sd";
115 vin-supply = <&vcc3v3_sys>;
118 vcc3v3_sys: vcc3v3-sys {
119 compatible = "regulator-fixed";
120 regulator-name = "vcc3v3_sys";
123 regulator-min-microvolt = <3300000>;
124 regulator-max-microvolt = <3300000>;
125 vin-supply = <&vcc_sys>;
128 vcc5v0_host: vcc5v0-host-regulator {
129 compatible = "regulator-fixed";
131 gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&vcc5v0_host_en>;
134 regulator-name = "vcc5v0_host";
136 vin-supply = <&vcc_sys>;
139 vbus_typec: vbus-typec-regulator {
140 compatible = "regulator-fixed";
142 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&vcc5v0_typec_en>;
145 regulator-name = "vbus_typec";
146 vin-supply = <&vcc_sys>;
150 compatible = "regulator-fixed";
151 regulator-name = "vcc_sys";
154 regulator-min-microvolt = <5000000>;
155 regulator-max-microvolt = <5000000>;
156 vin-supply = <&dc_12v>;
160 compatible = "pwm-regulator";
161 pwms = <&pwm2 0 25000 1>;
162 regulator-name = "vdd_log";
165 regulator-min-microvolt = <800000>;
166 regulator-max-microvolt = <1400000>;
167 vin-supply = <&vcc_sys>;
172 cpu-supply = <&vdd_cpu_l>;
176 cpu-supply = <&vdd_cpu_l>;
180 cpu-supply = <&vdd_cpu_l>;
184 cpu-supply = <&vdd_cpu_l>;
188 cpu-supply = <&vdd_cpu_b>;
192 cpu-supply = <&vdd_cpu_b>;
200 assigned-clocks = <&cru SCLK_RMII_SRC>;
201 assigned-clock-parents = <&clkin_gmac>;
202 clock_in_out = "input";
203 phy-supply = <&vcc3v3_s3>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&rgmii_pins>;
207 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
208 snps,reset-active-low;
209 snps,reset-delays-us = <0 10000 50000>;
216 mali-supply = <&vdd_gpu>;
221 ddc-i2c-bus = <&i2c3>;
230 clock-frequency = <400000>;
231 i2c-scl-rising-time-ns = <168>;
232 i2c-scl-falling-time-ns = <4>;
236 compatible = "rockchip,rk808";
238 interrupt-parent = <&gpio1>;
239 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
241 clock-output-names = "rtc_clko_soc", "rtc_clko_wifi";
242 pinctrl-names = "default";
243 pinctrl-0 = <&pmic_int_l>;
244 rockchip,system-power-controller;
247 vcc1-supply = <&vcc3v3_sys>;
248 vcc2-supply = <&vcc3v3_sys>;
249 vcc3-supply = <&vcc3v3_sys>;
250 vcc4-supply = <&vcc3v3_sys>;
251 vcc6-supply = <&vcc3v3_sys>;
252 vcc7-supply = <&vcc3v3_sys>;
253 vcc8-supply = <&vcc3v3_sys>;
254 vcc9-supply = <&vcc3v3_sys>;
255 vcc10-supply = <&vcc3v3_sys>;
256 vcc11-supply = <&vcc3v3_sys>;
257 vcc12-supply = <&vcc3v3_sys>;
258 vddio-supply = <&vcc_3v0>;
261 vdd_center: DCDC_REG1 {
262 regulator-name = "vdd_center";
265 regulator-min-microvolt = <700000>;
266 regulator-max-microvolt = <1500000>;
267 regulator-ramp-delay = <6001>;
268 regulator-state-mem {
269 regulator-off-in-suspend;
273 vdd_cpu_l: DCDC_REG2 {
274 regulator-name = "vdd_cpu_l";
277 regulator-min-microvolt = <700000>;
278 regulator-max-microvolt = <1500000>;
279 regulator-ramp-delay = <6001>;
280 regulator-state-mem {
281 regulator-off-in-suspend;
286 regulator-name = "vcc_ddr";
289 regulator-state-mem {
290 regulator-on-in-suspend;
295 regulator-name = "vcc_1v8";
298 regulator-min-microvolt = <1800000>;
299 regulator-max-microvolt = <3300000>;
300 regulator-state-mem {
301 regulator-on-in-suspend;
302 regulator-suspend-microvolt = <1800000>;
306 vcc1v8_dvp: LDO_REG1 {
307 regulator-name = "vcc1v8_dvp";
310 regulator-min-microvolt = <1800000>;
311 regulator-max-microvolt = <3400000>;
312 regulator-state-mem {
313 regulator-off-in-suspend;
317 vcc3v0_tp: LDO_REG2 {
318 regulator-name = "vcc3v0_tp";
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <3400000>;
323 regulator-state-mem {
324 regulator-off-in-suspend;
328 vcc1v8_pmupll: LDO_REG3 {
329 regulator-name = "vcc1v8_pmupll";
332 regulator-min-microvolt = <800000>;
333 regulator-max-microvolt = <2500000>;
334 regulator-state-mem {
335 regulator-on-in-suspend;
336 regulator-suspend-microvolt = <1800000>;
341 regulator-name = "vcc_sdio";
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <3400000>;
346 regulator-state-mem {
347 regulator-on-in-suspend;
348 regulator-suspend-microvolt = <3000000>;
352 vcca3v0_codec: LDO_REG5 {
353 regulator-name = "vcca3v0_codec";
356 regulator-min-microvolt = <1800000>;
357 regulator-max-microvolt = <3400000>;
358 regulator-state-mem {
359 regulator-off-in-suspend;
364 regulator-name = "vcc_1v5";
367 regulator-min-microvolt = <800000>;
368 regulator-max-microvolt = <2500000>;
369 regulator-state-mem {
370 regulator-on-in-suspend;
371 regulator-suspend-microvolt = <1500000>;
375 vcca1v8_codec: LDO_REG7 {
376 regulator-name = "vcca1v8_codec";
379 regulator-min-microvolt = <800000>;
380 regulator-max-microvolt = <2500000>;
381 regulator-state-mem {
382 regulator-off-in-suspend;
387 regulator-name = "vcc_3v0";
390 regulator-min-microvolt = <1800000>;
391 regulator-max-microvolt = <3400000>;
392 regulator-state-mem {
393 regulator-on-in-suspend;
394 regulator-suspend-microvolt = <3000000>;
398 vcc3v3_s3: SWITCH_REG1 {
399 regulator-name = "vcc3v3_s3";
402 regulator-state-mem {
403 regulator-off-in-suspend;
407 vcc3v3_s0: SWITCH_REG2 {
408 regulator-name = "vcc3v3_s0";
411 regulator-state-mem {
412 regulator-off-in-suspend;
418 vdd_cpu_b: regulator@40 {
419 compatible = "silergy,syr827";
421 fcs,suspend-voltage-selector = <1>;
422 regulator-name = "vdd_cpu_b";
423 regulator-min-microvolt = <712500>;
424 regulator-max-microvolt = <1500000>;
425 regulator-ramp-delay = <1000>;
428 vin-supply = <&vcc3v3_sys>;
430 regulator-state-mem {
431 regulator-off-in-suspend;
435 vdd_gpu: regulator@41 {
436 compatible = "silergy,syr828";
438 fcs,suspend-voltage-selector = <1>;
439 regulator-name = "vdd_gpu";
440 regulator-min-microvolt = <712500>;
441 regulator-max-microvolt = <1500000>;
442 regulator-ramp-delay = <1000>;
445 vin-supply = <&vcc3v3_sys>;
447 regulator-state-mem {
448 regulator-off-in-suspend;
454 i2c-scl-rising-time-ns = <450>;
455 i2c-scl-falling-time-ns = <15>;
460 i2c-scl-rising-time-ns = <450>;
461 i2c-scl-falling-time-ns = <15>;
466 clock-frequency = <400000>;
467 i2c-scl-rising-time-ns = <450>;
468 i2c-scl-falling-time-ns = <15>;
472 compatible = "asahi-kasei,ak09911";
474 vdd-supply = <&vcc3v3_s3>;
475 vid-supply = <&vcc3v3_s3>;
479 compatible = "invensense,mpu6500";
481 interrupt-parent = <&gpio1>;
482 interrupts = <RK_PC6 IRQ_TYPE_EDGE_RISING>;
483 pinctrl-names = "default";
484 pinctrl-0 = <&gsensor_int_l>;
485 vddio-supply = <&vcc3v3_s3>;
489 compatible = "st,lsm6ds3";
491 interrupt-parent = <&gpio1>;
492 interrupts = <RK_PD0 IRQ_TYPE_EDGE_RISING>;
493 pinctrl-names = "default";
494 pinctrl-0 = <&gyr_int_l>;
495 vdd-supply = <&vcc3v3_s3>;
496 vddio-supply = <&vcc3v3_s3>;
500 compatible = "capella,cm32181";
502 interrupt-parent = <&gpio4>;
503 interrupts = <RK_PD0 IRQ_TYPE_EDGE_RISING>;
504 pinctrl-names = "default";
505 pinctrl-0 = <&light_int_l>;
506 vdd-supply = <&vcc3v3_s3>;
510 compatible = "fcs,fusb302";
512 interrupt-parent = <&gpio1>;
513 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
514 pinctrl-names = "default";
515 pinctrl-0 = <&chg_cc_int_l>;
516 vbus-supply = <&vbus_typec>;
522 bt656-supply = <&vcc_3v0>;
523 audio-supply = <&vcca1v8_codec>;
524 sdmmc-supply = <&vcc_sdio>;
525 gpio1830-supply = <&vcc_3v0>;
530 pmu1830-supply = <&vcc_3v0>;
536 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
541 pmic_int_l: pmic-int-l {
543 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
548 sdmmc0_pwr_h: sdmmc0-pwr-h {
550 <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
555 vcc5v0_host_en: vcc5v0-host-en {
557 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
560 vcc5v0_typec_en: vcc5v0-typec-en {
562 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
567 wifi_reg_on_h: wifi-reg-on-h {
568 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
573 wifi_host_wake_l: wifi-host-wake-l {
574 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
579 bt_reg_on_h: bt-enable-h {
580 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
583 bt_host_wake_l: bt-host-wake-l {
584 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
587 bt_wake_l: bt-wake-l {
588 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
593 gsensor_int_l: gsensor-int-l {
594 rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
599 gyr_int_l: gyr-int-l {
600 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
605 light_int_l: light-int-l {
606 rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
611 chg_cc_int_l: chg-cc-int-l {
612 rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
626 vref-supply = <&vcca1v8_s3>;
633 mmc-hs400-enhanced-strobe;
642 clock-frequency = <50000000>;
644 keep-power-in-suspend;
645 max-frequency = <50000000>;
646 mmc-pwrseq = <&sdio_pwrseq>;
648 pinctrl-names = "default";
649 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
654 compatible = "brcm,bcm4329-fmac";
655 interrupt-parent = <&gpio0>;
656 interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
657 interrupt-names = "host-wake";
658 pinctrl-names = "default";
659 pinctrl-0 = <&wifi_host_wake_l>;
667 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
668 clock-frequency = <150000000>;
670 max-frequency = <150000000>;
671 pinctrl-names = "default";
672 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
673 vmmc-supply = <&vcc3v0_sd>;
674 vqmmc-supply = <&vcc_sdio>;
687 rockchip,hw-tshut-mode = <1>;
688 rockchip,hw-tshut-polarity = <1>;
695 u2phy0_otg: otg-port {
696 phy-supply = <&vbus_typec>;
700 u2phy0_host: host-port {
701 phy-supply = <&vcc5v0_host>;
709 u2phy1_otg: otg-port {
713 u2phy1_host: host-port {
714 phy-supply = <&vcc5v0_host>;
720 pinctrl-names = "default";
721 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
725 compatible = "brcm,bcm43438-bt";
728 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
729 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
730 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
731 pinctrl-names = "default";
732 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_reg_on_h>;
733 vbat-supply = <&vcc3v3_sys>;
734 vddio-supply = <&vcc_1v8>;