1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Akash Gajjar <Akash_Gajjar@mentor.com>
4 * Copyright (c) 2019 Pragnesh Patel <Pragnesh_Patel@mentor.com>
8 #include <dt-bindings/input/linux-event-codes.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pwm/pwm.h>
11 #include "rk3399.dtsi"
21 stdout-path = "serial2:1500000n8";
24 clkin_gmac: external-gmac-clock {
25 compatible = "fixed-clock";
26 clock-frequency = <125000000>;
27 clock-output-names = "clkin_gmac";
32 compatible = "gpio-leds";
33 pinctrl-names = "default";
34 pinctrl-0 = <&user_led2>;
38 function = LED_FUNCTION_STATUS;
39 color = <LED_COLOR_ID_BLUE>;
40 gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
41 linux,default-trigger = "heartbeat";
45 sdio_pwrseq: sdio-pwrseq {
46 compatible = "mmc-pwrseq-simple";
49 pinctrl-names = "default";
50 pinctrl-0 = <&wifi_enable_h>;
51 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
55 compatible = "audio-graph-card";
61 compatible = "audio-graph-card";
67 compatible = "linux,spdif-dit";
68 #sound-dai-cells = <0>;
72 remote-endpoint = <&spdif_p0_0>;
77 vbus_typec: vbus-typec-regulator {
78 compatible = "regulator-fixed";
80 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&vcc5v0_typec_en>;
83 regulator-name = "vbus_typec";
85 vin-supply = <&vcc5v0_sys>;
89 compatible = "regulator-fixed";
90 regulator-name = "vcc12v_dcin";
93 regulator-min-microvolt = <12000000>;
94 regulator-max-microvolt = <12000000>;
97 vcc3v3_lan: vcc3v3-lan-regulator {
98 compatible = "regulator-fixed";
99 regulator-name = "vcc3v3_lan";
102 regulator-min-microvolt = <3300000>;
103 regulator-max-microvolt = <3300000>;
104 vin-supply = <&vcc3v3_sys>;
107 vcc3v3_pcie: vcc3v3-pcie-regulator {
108 compatible = "regulator-fixed";
110 gpio = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&pcie_pwr_en>;
113 regulator-name = "vcc3v3_pcie";
116 vin-supply = <&vcc5v0_sys>;
119 vcc3v3_sys: vcc3v3-sys {
120 compatible = "regulator-fixed";
121 regulator-name = "vcc3v3_sys";
124 regulator-min-microvolt = <3300000>;
125 regulator-max-microvolt = <3300000>;
126 vin-supply = <&vcc5v0_sys>;
129 vcc5v0_host: vcc5v0-host-regulator {
130 compatible = "regulator-fixed";
132 gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&vcc5v0_host_en>;
135 regulator-name = "vcc5v0_host";
137 vin-supply = <&vcc5v0_sys>;
140 vcc5v0_sys: vcc-sys {
141 compatible = "regulator-fixed";
142 regulator-name = "vcc5v0_sys";
145 regulator-min-microvolt = <5000000>;
146 regulator-max-microvolt = <5000000>;
147 vin-supply = <&vcc12v_dcin>;
151 compatible = "regulator-fixed";
152 regulator-name = "vcc_0v9";
155 regulator-min-microvolt = <900000>;
156 regulator-max-microvolt = <900000>;
157 vin-supply = <&vcc3v3_sys>;
161 compatible = "pwm-regulator";
162 pwms = <&pwm2 0 25000 1>;
163 pwm-supply = <&vcc5v0_sys>;
164 regulator-name = "vdd_log";
167 regulator-min-microvolt = <800000>;
168 regulator-max-microvolt = <1400000>;
173 cpu-supply = <&vdd_cpu_l>;
177 cpu-supply = <&vdd_cpu_l>;
181 cpu-supply = <&vdd_cpu_l>;
185 cpu-supply = <&vdd_cpu_l>;
189 cpu-supply = <&vdd_cpu_b>;
193 cpu-supply = <&vdd_cpu_b>;
201 assigned-clocks = <&cru SCLK_RMII_SRC>;
202 assigned-clock-parents = <&clkin_gmac>;
203 clock_in_out = "input";
204 phy-supply = <&vcc3v3_lan>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&rgmii_pins>;
208 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
209 snps,reset-active-low;
210 snps,reset-delays-us = <0 10000 50000>;
217 mali-supply = <&vdd_gpu>;
222 avdd-0v9-supply = <&vcca0v9_hdmi>;
223 avdd-1v8-supply = <&vcca1v8_hdmi>;
224 ddc-i2c-bus = <&i2c3>;
225 pinctrl-names = "default";
226 pinctrl-0 = <&hdmi_cec>;
235 clock-frequency = <400000>;
236 i2c-scl-rising-time-ns = <168>;
237 i2c-scl-falling-time-ns = <4>;
241 compatible = "rockchip,rk808";
243 interrupt-parent = <&gpio1>;
244 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
246 clock-output-names = "xin32k", "rk808-clkout2";
247 pinctrl-names = "default";
248 pinctrl-0 = <&pmic_int_l>;
249 rockchip,system-power-controller;
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 = <&vcc_1v8>;
266 vdd_center: DCDC_REG1 {
267 regulator-name = "vdd_center";
270 regulator-min-microvolt = <750000>;
271 regulator-max-microvolt = <1350000>;
272 regulator-ramp-delay = <6001>;
273 regulator-state-mem {
274 regulator-off-in-suspend;
278 vdd_cpu_l: DCDC_REG2 {
279 regulator-name = "vdd_cpu_l";
282 regulator-min-microvolt = <750000>;
283 regulator-max-microvolt = <1350000>;
284 regulator-ramp-delay = <6001>;
285 regulator-state-mem {
286 regulator-off-in-suspend;
291 regulator-name = "vcc_ddr";
294 regulator-state-mem {
295 regulator-on-in-suspend;
300 regulator-name = "vcc_1v8";
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <1800000>;
305 regulator-state-mem {
306 regulator-on-in-suspend;
307 regulator-suspend-microvolt = <1800000>;
311 vcca1v8_codec: LDO_REG1 {
312 regulator-name = "vcca1v8_codec";
315 regulator-min-microvolt = <1800000>;
316 regulator-max-microvolt = <1800000>;
317 regulator-state-mem {
318 regulator-off-in-suspend;
322 vcca1v8_hdmi: LDO_REG2 {
323 regulator-name = "vcca1v8_hdmi";
326 regulator-min-microvolt = <1800000>;
327 regulator-max-microvolt = <1800000>;
328 regulator-state-mem {
329 regulator-off-in-suspend;
334 regulator-name = "vcca_1v8";
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
339 regulator-state-mem {
340 regulator-on-in-suspend;
341 regulator-suspend-microvolt = <1800000>;
346 regulator-name = "vcc_sdio";
349 regulator-min-microvolt = <3000000>;
350 regulator-max-microvolt = <3000000>;
351 regulator-state-mem {
352 regulator-on-in-suspend;
353 regulator-suspend-microvolt = <3000000>;
357 vcca3v0_codec: LDO_REG5 {
358 regulator-name = "vcca3v0_codec";
361 regulator-min-microvolt = <3000000>;
362 regulator-max-microvolt = <3000000>;
363 regulator-state-mem {
364 regulator-off-in-suspend;
369 regulator-name = "vcc_1v5";
372 regulator-min-microvolt = <1500000>;
373 regulator-max-microvolt = <1500000>;
374 regulator-state-mem {
375 regulator-on-in-suspend;
376 regulator-suspend-microvolt = <1500000>;
380 vcca0v9_hdmi: LDO_REG7 {
381 regulator-name = "vcca0v9_hdmi";
384 regulator-min-microvolt = <900000>;
385 regulator-max-microvolt = <900000>;
386 regulator-state-mem {
387 regulator-off-in-suspend;
392 regulator-name = "vcc_3v0";
395 regulator-min-microvolt = <3000000>;
396 regulator-max-microvolt = <3000000>;
397 regulator-state-mem {
398 regulator-on-in-suspend;
399 regulator-suspend-microvolt = <3000000>;
403 vcc_cam: SWITCH_REG1 {
404 regulator-name = "vcc_cam";
407 regulator-state-mem {
408 regulator-off-in-suspend;
412 vcc_mipi: SWITCH_REG2 {
413 regulator-name = "vcc_mipi";
416 regulator-state-mem {
417 regulator-off-in-suspend;
423 vdd_cpu_b: regulator@40 {
424 compatible = "silergy,syr827";
426 fcs,suspend-voltage-selector = <1>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&vsel1_pin>;
429 regulator-name = "vdd_cpu_b";
430 regulator-min-microvolt = <712500>;
431 regulator-max-microvolt = <1500000>;
432 regulator-ramp-delay = <1000>;
435 vin-supply = <&vcc5v0_sys>;
437 regulator-state-mem {
438 regulator-off-in-suspend;
442 vdd_gpu: regulator@41 {
443 compatible = "silergy,syr828";
445 fcs,suspend-voltage-selector = <1>;
446 pinctrl-names = "default";
447 pinctrl-0 = <&vsel2_pin>;
448 regulator-name = "vdd_gpu";
449 regulator-min-microvolt = <712500>;
450 regulator-max-microvolt = <1500000>;
451 regulator-ramp-delay = <1000>;
454 vin-supply = <&vcc5v0_sys>;
456 regulator-state-mem {
457 regulator-off-in-suspend;
463 i2c-scl-rising-time-ns = <300>;
464 i2c-scl-falling-time-ns = <15>;
468 compatible = "everest,es8316";
470 clocks = <&cru SCLK_I2S_8CH_OUT>;
471 clock-names = "mclk";
472 #sound-dai-cells = <0>;
475 es8316_p0_0: endpoint {
476 remote-endpoint = <&i2s0_p0_0>;
483 i2c-scl-rising-time-ns = <450>;
484 i2c-scl-falling-time-ns = <15>;
489 i2c-scl-rising-time-ns = <600>;
490 i2c-scl-falling-time-ns = <20>;
495 pinctrl-0 = <&i2s0_2ch_bus>;
496 pinctrl-1 = <&i2s0_2ch_bus_bclk_off>;
497 rockchip,capture-channels = <2>;
498 rockchip,playback-channels = <2>;
502 i2s0_p0_0: endpoint {
505 remote-endpoint = <&es8316_p0_0>;
511 rockchip,playback-channels = <2>;
512 rockchip,capture-channels = <2>;
520 audio-supply = <&vcca1v8_codec>;
521 bt656-supply = <&vcc_3v0>;
522 gpio1830-supply = <&vcc_3v0>;
523 sdmmc-supply = <&vcc_sdio>;
528 ep-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
530 pinctrl-0 = <&pcie_clkreqnb_cpm>;
531 pinctrl-names = "default";
532 vpcie0v9-supply = <&vcc_0v9>;
533 vpcie1v8-supply = <&vcc_1v8>;
534 vpcie3v3-supply = <&vcc3v3_pcie>;
544 bt_enable_h: bt-enable-h {
545 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
548 bt_host_wake_l: bt-host-wake-l {
549 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
552 bt_wake_l: bt-wake-l {
553 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
558 hp_detect: hp-detect {
559 rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
563 rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
568 user_led2: user-led2 {
569 rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
574 pcie_pwr_en: pcie-pwr-en {
575 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
580 pmic_int_l: pmic-int-l {
581 rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
584 vsel1_pin: vsel1-pin {
585 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
588 vsel2_pin: vsel2-pin {
589 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
594 sdio0_bus4: sdio0-bus4 {
595 rockchip,pins = <2 RK_PC4 1 &pcfg_pull_up_20ma>,
596 <2 RK_PC5 1 &pcfg_pull_up_20ma>,
597 <2 RK_PC6 1 &pcfg_pull_up_20ma>,
598 <2 RK_PC7 1 &pcfg_pull_up_20ma>;
601 sdio0_cmd: sdio0-cmd {
602 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_up_20ma>;
605 sdio0_clk: sdio0-clk {
606 rockchip,pins = <2 RK_PD1 1 &pcfg_pull_none_20ma>;
611 vcc5v0_typec_en: vcc5v0-typec-en {
612 rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
617 vcc5v0_host_en: vcc5v0-host-en {
618 rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
623 wifi_enable_h: wifi-enable-h {
624 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
627 wifi_host_wake_l: wifi-host-wake-l {
628 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
634 pmu1830-supply = <&vcc_3v0>;
645 vref-supply = <&vcc_1v8>;
649 max-frequency = <150000000>;
657 #address-cells = <1>;
660 clock-frequency = <50000000>;
663 keep-power-in-suspend;
664 mmc-pwrseq = <&sdio_pwrseq>;
666 pinctrl-names = "default";
667 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
675 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
677 max-frequency = <150000000>;
678 pinctrl-names = "default";
679 pinctrl-0 = <&sdmmc_clk &sdmmc_cd &sdmmc_cmd &sdmmc_bus4>;
686 spdif_p0_0: endpoint {
687 remote-endpoint = <&dit_p0_0>;
703 /* tshut mode 0:CRU 1:GPIO */
704 rockchip,hw-tshut-mode = <1>;
705 /* tshut polarity 0:LOW 1:HIGH */
706 rockchip,hw-tshut-polarity = <1>;
712 u2phy0_otg: otg-port {
716 u2phy0_host: host-port {
717 phy-supply = <&vcc5v0_host>;
725 u2phy1_otg: otg-port {
729 u2phy1_host: host-port {
730 phy-supply = <&vcc5v0_host>;
736 pinctrl-names = "default";
737 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;