1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Andy Yan <andy.yan@gmail.com>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/pwm/pwm.h>
10 #include "rk3399.dtsi"
11 #include "rk3399-opp.dtsi"
14 model = "Leez RK3399 P710";
15 compatible = "leez,p710", "rockchip,rk3399";
24 stdout-path = "serial2:1500000n8";
27 clkin_gmac: external-gmac-clock {
28 compatible = "fixed-clock";
29 clock-frequency = <125000000>;
30 clock-output-names = "clkin_gmac";
34 sdio_pwrseq: sdio-pwrseq {
35 compatible = "mmc-pwrseq-simple";
37 clock-names = "ext_clock";
38 pinctrl-names = "default";
39 pinctrl-0 = <&wifi_reg_on_h>;
40 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
44 compatible = "regulator-fixed";
45 regulator-name = "dc5v_adapter";
48 regulator-min-microvolt = <5000000>;
49 regulator-max-microvolt = <5000000>;
52 vcc3v3_lan: vcc3v3-lan {
53 compatible = "regulator-fixed";
54 regulator-name = "vcc3v3_lan";
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
59 vin-supply = <&vcc3v3_sys>;
62 vcc3v3_sys: vcc3v3-sys {
63 compatible = "regulator-fixed";
64 regulator-name = "vcc3v3_sys";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
69 vin-supply = <&vcc5v0_sys>;
72 vcc5v0_host0: vcc5v0_host1: vcc5v0-host {
73 compatible = "regulator-fixed";
74 regulator-name = "vcc5v0_host";
77 regulator-min-microvolt = <5500000>;
78 regulator-max-microvolt = <5500000>;
79 vin-supply = <&vcc5v0_sys>;
82 vcc5v0_host3: vcc5v0-host3 {
83 compatible = "regulator-fixed";
84 regulator-name = "vcc5v0_host3";
86 gpio = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
87 pinctrl-names = "default";
88 pinctrl-0 = <&vcc5v0_host3_en>;
90 vin-supply = <&vcc5v0_sys>;
93 vcc5v0_sys: vcc5v0-sys {
94 compatible = "regulator-fixed";
95 regulator-name = "vcc5v0_sys";
98 regulator-min-microvolt = <5000000>;
99 regulator-max-microvolt = <5000000>;
100 vin-supply = <&dc5v_adp>;
104 compatible = "pwm-regulator";
105 pwms = <&pwm2 0 25000 1>;
106 pwm-supply = <&vcc5v0_sys>;
107 regulator-name = "vdd_log";
110 regulator-min-microvolt = <800000>;
111 regulator-max-microvolt = <1400000>;
116 cpu-supply = <&vdd_cpu_l>;
120 cpu-supply = <&vdd_cpu_l>;
124 cpu-supply = <&vdd_cpu_l>;
128 cpu-supply = <&vdd_cpu_l>;
132 cpu-supply = <&vdd_cpu_b>;
136 cpu-supply = <&vdd_cpu_b>;
144 assigned-clocks = <&cru SCLK_RMII_SRC>;
145 assigned-clock-parents = <&clkin_gmac>;
146 clock_in_out = "input";
147 phy-supply = <&vcc3v3_lan>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&rgmii_pins>;
151 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
152 snps,reset-active-low;
153 snps,reset-delays-us = <0 10000 50000>;
160 mali-supply = <&vdd_gpu>;
165 ddc-i2c-bus = <&i2c7>;
166 pinctrl-names = "default";
167 pinctrl-0 = <&hdmi_cec>;
176 clock-frequency = <400000>;
177 i2c-scl-rising-time-ns = <168>;
178 i2c-scl-falling-time-ns = <4>;
182 compatible = "rockchip,rk808";
184 interrupt-parent = <&gpio1>;
185 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
187 clock-output-names = "xin32k", "rk808-clkout2";
188 pinctrl-names = "default";
189 pinctrl-0 = <&pmic_int_l>;
190 rockchip,system-power-controller;
193 vcc1-supply = <&vcc5v0_sys>;
194 vcc2-supply = <&vcc5v0_sys>;
195 vcc3-supply = <&vcc5v0_sys>;
196 vcc4-supply = <&vcc5v0_sys>;
197 vcc6-supply = <&vcc5v0_sys>;
198 vcc7-supply = <&vcc5v0_sys>;
199 vcc8-supply = <&vcc3v3_sys>;
200 vcc9-supply = <&vcc5v0_sys>;
201 vcc10-supply = <&vcc5v0_sys>;
202 vcc11-supply = <&vcc5v0_sys>;
203 vcc12-supply = <&vcc3v3_sys>;
204 vddio-supply = <&vcc_1v8>;
207 vdd_center: DCDC_REG1 {
208 regulator-name = "vdd_center";
211 regulator-min-microvolt = <750000>;
212 regulator-max-microvolt = <1350000>;
213 regulator-ramp-delay = <6001>;
214 regulator-state-mem {
215 regulator-off-in-suspend;
219 vdd_cpu_l: DCDC_REG2 {
220 regulator-name = "vdd_cpu_l";
223 regulator-min-microvolt = <750000>;
224 regulator-max-microvolt = <1350000>;
225 regulator-ramp-delay = <6001>;
226 regulator-state-mem {
227 regulator-off-in-suspend;
232 regulator-name = "vcc_ddr";
235 regulator-state-mem {
236 regulator-on-in-suspend;
241 regulator-name = "vcc_1v8";
244 regulator-min-microvolt = <1800000>;
245 regulator-max-microvolt = <1800000>;
246 regulator-state-mem {
247 regulator-on-in-suspend;
248 regulator-suspend-microvolt = <1800000>;
252 vcc1v8_dvp: LDO_REG1 {
253 regulator-name = "vcc1v8_dvp";
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <1800000>;
258 regulator-state-mem {
259 regulator-off-in-suspend;
263 vcc1v8_hdmi: LDO_REG2 {
264 regulator-name = "vcc1v8_hdmi";
267 regulator-min-microvolt = <1800000>;
268 regulator-max-microvolt = <1800000>;
269 regulator-state-mem {
270 regulator-off-in-suspend;
275 regulator-name = "vcca_1v8";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
280 regulator-state-mem {
281 regulator-on-in-suspend;
282 regulator-suspend-microvolt = <1800000>;
287 regulator-name = "vccio_sd";
290 regulator-min-microvolt = <3000000>;
291 regulator-max-microvolt = <3000000>;
292 regulator-state-mem {
293 regulator-on-in-suspend;
294 regulator-suspend-microvolt = <3000000>;
298 vcca3v0_codec: LDO_REG5 {
299 regulator-name = "vcca3v0_codec";
302 regulator-min-microvolt = <3000000>;
303 regulator-max-microvolt = <3000000>;
304 regulator-state-mem {
305 regulator-off-in-suspend;
310 regulator-name = "vcc_1v5";
313 regulator-min-microvolt = <1500000>;
314 regulator-max-microvolt = <1500000>;
315 regulator-state-mem {
316 regulator-on-in-suspend;
317 regulator-suspend-microvolt = <1500000>;
321 vcc0v9_hdmi: LDO_REG7 {
322 regulator-name = "vcc0v9_hdmi";
325 regulator-min-microvolt = <900000>;
326 regulator-max-microvolt = <900000>;
327 regulator-state-mem {
328 regulator-off-in-suspend;
333 regulator-name = "vcc_3v0";
336 regulator-min-microvolt = <3000000>;
337 regulator-max-microvolt = <3000000>;
338 regulator-state-mem {
339 regulator-on-in-suspend;
340 regulator-suspend-microvolt = <3000000>;
346 vdd_cpu_b: regulator@40 {
347 compatible = "silergy,syr827";
349 fcs,suspend-voltage-selector = <1>;
350 pinctrl-names = "default";
351 pinctrl-0 = <&vsel1_pin>;
352 regulator-name = "vdd_cpu_b";
353 regulator-min-microvolt = <712500>;
354 regulator-max-microvolt = <1500000>;
355 regulator-ramp-delay = <1000>;
358 vin-supply = <&vcc5v0_sys>;
360 regulator-state-mem {
361 regulator-off-in-suspend;
365 vdd_gpu: regulator@41 {
366 compatible = "silergy,syr828";
368 fcs,suspend-voltage-selector = <1>;
369 pinctrl-names = "default";
370 pinctrl-0 = <&vsel2_pin>;
371 regulator-name = "vdd_gpu";
372 regulator-min-microvolt = <712500>;
373 regulator-max-microvolt = <1500000>;
374 regulator-ramp-delay = <1000>;
377 vin-supply = <&vcc5v0_sys>;
379 regulator-state-mem {
380 regulator-off-in-suspend;
386 i2c-scl-rising-time-ns = <300>;
387 i2c-scl-falling-time-ns = <15>;
392 i2c-scl-rising-time-ns = <450>;
393 i2c-scl-falling-time-ns = <15>;
398 i2c-scl-rising-time-ns = <600>;
399 i2c-scl-falling-time-ns = <20>;
408 rockchip,playback-channels = <8>;
409 rockchip,capture-channels = <8>;
414 rockchip,playback-channels = <2>;
415 rockchip,capture-channels = <2>;
426 bt656-supply = <&vcc1v8_dvp>;
427 audio-supply = <&vcc_1v8>;
428 sdmmc-supply = <&vccio_sd>;
429 gpio1830-supply = <&vcc_3v0>;
434 pmu1830-supply = <&vcc_3v0>;
439 bt_reg_on_h: bt-reg-on-h {
440 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
443 bt_host_wake_l: bt-host-wake-l {
444 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
447 bt_wake_l: bt-wake-l {
448 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
453 pmic_int_l: pmic-int-l {
454 rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
457 vsel1_pin: vsel1-pin {
458 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
461 vsel2_pin: vsel2-pin {
462 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
467 vcc5v0_host3_en: vcc5v0-host3-en {
468 rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
473 wifi_reg_on_h: wifi-reg-on-h {
475 <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
478 wifi_host_wake_l: wifi-host-wake-l {
479 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
491 vref-supply = <&vcc_1v8>;
495 #address-cells = <1>;
498 clock-frequency = <50000000>;
501 keep-power-in-suspend;
502 mmc-pwrseq = <&sdio_pwrseq>;
504 pinctrl-names = "default";
505 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
510 compatible = "brcm,bcm4329-fmac";
512 interrupt-parent = <&gpio0>;
513 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
514 interrupt-names = "host-wake";
515 pinctrl-names = "default";
516 pinctrl-0 = <&wifi_host_wake_l>;
523 mmc-hs400-enhanced-strobe;
532 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
534 max-frequency = <150000000>;
535 pinctrl-names = "default";
536 pinctrl-0 = <&sdmmc_clk &sdmmc_cd &sdmmc_cmd &sdmmc_bus4>;
551 /* tshut mode 0:CRU 1:GPIO */
552 rockchip,hw-tshut-mode = <1>;
553 /* tshut polarity 0:LOW 1:HIGH */
554 rockchip,hw-tshut-polarity = <1>;
560 u2phy0_otg: otg-port {
564 u2phy0_host: host-port {
565 phy-supply = <&vcc5v0_host0>;
573 u2phy1_otg: otg-port {
577 u2phy1_host: host-port {
578 phy-supply = <&vcc5v0_host1>;
584 pinctrl-names = "default";
585 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
589 compatible = "brcm,bcm43438-bt";
591 clock-names = "ext_clock";
592 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
593 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
594 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
595 pinctrl-names = "default";
596 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_reg_on_h>;