1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 Collabora Ltd.
4 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd.
5 * Copyright (c) 2018 Linaro Ltd.
9 #include "rk3399-opp.dtsi"
18 sdio_pwrseq: sdio-pwrseq {
19 compatible = "mmc-pwrseq-simple";
21 clock-names = "ext_clock";
22 pinctrl-names = "default";
23 pinctrl-0 = <&wifi_enable_h>;
24 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
27 vcc12v_dcin: vcc12v-dcin {
28 compatible = "regulator-fixed";
29 regulator-name = "vcc12v_dcin";
30 regulator-min-microvolt = <12000000>;
31 regulator-max-microvolt = <12000000>;
36 vcc1v8_s0: vcc1v8-s0 {
37 compatible = "regulator-fixed";
38 regulator-name = "vcc1v8_s0";
39 regulator-min-microvolt = <1800000>;
40 regulator-max-microvolt = <1800000>;
44 vcc5v0_sys: vcc5v0-sys {
45 compatible = "regulator-fixed";
46 regulator-name = "vcc5v0_sys";
47 regulator-min-microvolt = <5000000>;
48 regulator-max-microvolt = <5000000>;
50 vin-supply = <&vcc12v_dcin>;
53 vcc3v3_sys: vcc3v3-sys {
54 compatible = "regulator-fixed";
55 regulator-name = "vcc3v3_sys";
56 regulator-min-microvolt = <3300000>;
57 regulator-max-microvolt = <3300000>;
59 vin-supply = <&vcc5v0_sys>;
62 vcc3v3_pcie: vcc3v3-pcie-regulator {
63 compatible = "regulator-fixed";
65 pinctrl-names = "default";
66 pinctrl-0 = <&pcie_drv>;
68 regulator-name = "vcc3v3_pcie";
69 regulator-min-microvolt = <3300000>;
70 regulator-max-microvolt = <3300000>;
71 vin-supply = <&vcc3v3_sys>;
74 vcc5v0_host: vcc5v0-host-regulator {
75 compatible = "regulator-fixed";
77 pinctrl-names = "default";
78 pinctrl-0 = <&host_vbus_drv>;
79 regulator-name = "vcc5v0_host";
80 regulator-min-microvolt = <5000000>;
81 regulator-max-microvolt = <5000000>;
83 vin-supply = <&vcc5v0_sys>;
87 compatible = "regulator-fixed";
88 regulator-name = "vcc_0v9";
90 regulator-min-microvolt = <900000>;
91 regulator-max-microvolt = <900000>;
92 vin-supply = <&vcc3v3_sys>;
97 cpu-supply = <&vdd_cpu_l>;
101 cpu-supply = <&vdd_cpu_l>;
105 cpu-supply = <&vdd_cpu_l>;
109 cpu-supply = <&vdd_cpu_l>;
113 cpu-supply = <&vdd_cpu_b>;
117 cpu-supply = <&vdd_cpu_b>;
125 mali-supply = <&vdd_gpu>;
130 ddc-i2c-bus = <&i2c3>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&hdmi_cec>;
141 clock-frequency = <400000>;
142 i2c-scl-rising-time-ns = <168>;
143 i2c-scl-falling-time-ns = <4>;
146 vdd_cpu_b: regulator@40 {
147 compatible = "silergy,syr827";
149 fcs,suspend-voltage-selector = <1>;
150 regulator-name = "vdd_cpu_b";
151 regulator-min-microvolt = <712500>;
152 regulator-max-microvolt = <1500000>;
153 regulator-ramp-delay = <1000>;
156 vin-supply = <&vcc5v0_sys>;
159 regulator-state-mem {
160 regulator-off-in-suspend;
164 vdd_gpu: regulator@41 {
165 compatible = "silergy,syr828";
167 fcs,suspend-voltage-selector = <1>;
168 regulator-name = "vdd_gpu";
169 regulator-min-microvolt = <712500>;
170 regulator-max-microvolt = <1500000>;
171 regulator-ramp-delay = <1000>;
174 vin-supply = <&vcc5v0_sys>;
175 regulator-state-mem {
176 regulator-off-in-suspend;
181 compatible = "rockchip,rk808";
183 interrupt-parent = <&gpio1>;
184 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pmic_int_l>;
187 rockchip,system-power-controller;
190 clock-output-names = "xin32k", "rk808-clkout2";
192 vcc1-supply = <&vcc5v0_sys>;
193 vcc2-supply = <&vcc5v0_sys>;
194 vcc3-supply = <&vcc5v0_sys>;
195 vcc4-supply = <&vcc5v0_sys>;
196 vcc6-supply = <&vcc5v0_sys>;
197 vcc7-supply = <&vcc5v0_sys>;
198 vcc8-supply = <&vcc3v3_sys>;
199 vcc9-supply = <&vcc5v0_sys>;
200 vcc10-supply = <&vcc5v0_sys>;
201 vcc11-supply = <&vcc5v0_sys>;
202 vcc12-supply = <&vcc3v3_sys>;
203 vddio-supply = <&vcc_1v8>;
206 vdd_center: DCDC_REG1 {
207 regulator-name = "vdd_center";
208 regulator-min-microvolt = <750000>;
209 regulator-max-microvolt = <1350000>;
212 regulator-state-mem {
213 regulator-off-in-suspend;
217 vdd_cpu_l: DCDC_REG2 {
218 regulator-name = "vdd_cpu_l";
219 regulator-min-microvolt = <750000>;
220 regulator-max-microvolt = <1350000>;
223 regulator-state-mem {
224 regulator-off-in-suspend;
229 regulator-name = "vcc_ddr";
232 regulator-state-mem {
233 regulator-on-in-suspend;
238 regulator-name = "vcc_1v8";
239 regulator-min-microvolt = <1800000>;
240 regulator-max-microvolt = <1800000>;
243 regulator-state-mem {
244 regulator-on-in-suspend;
245 regulator-suspend-microvolt = <1800000>;
249 vcc1v8_dvp: LDO_REG1 {
250 regulator-name = "vcc1v8_dvp";
251 regulator-min-microvolt = <1800000>;
252 regulator-max-microvolt = <1800000>;
255 regulator-state-mem {
256 regulator-on-in-suspend;
257 regulator-suspend-microvolt = <1800000>;
261 vcca1v8_hdmi: LDO_REG2 {
262 regulator-name = "vcca1v8_hdmi";
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <1800000>;
267 regulator-state-mem {
268 regulator-on-in-suspend;
269 regulator-suspend-microvolt = <1800000>;
274 regulator-name = "vcca_1v8";
275 regulator-min-microvolt = <1800000>;
276 regulator-max-microvolt = <1800000>;
279 regulator-state-mem {
280 regulator-on-in-suspend;
281 regulator-suspend-microvolt = <1800000>;
286 regulator-name = "vcc_sd";
287 regulator-min-microvolt = <1800000>;
288 regulator-max-microvolt = <3300000>;
291 regulator-state-mem {
292 regulator-on-in-suspend;
293 regulator-suspend-microvolt = <3300000>;
297 vcc3v0_sd: LDO_REG5 {
298 regulator-name = "vcc3v0_sd";
299 regulator-min-microvolt = <3000000>;
300 regulator-max-microvolt = <3000000>;
303 regulator-state-mem {
304 regulator-on-in-suspend;
305 regulator-suspend-microvolt = <3000000>;
310 regulator-name = "vcc_1v5";
311 regulator-min-microvolt = <1500000>;
312 regulator-max-microvolt = <1500000>;
315 regulator-state-mem {
316 regulator-on-in-suspend;
317 regulator-suspend-microvolt = <1500000>;
321 vcca0v9_hdmi: LDO_REG7 {
322 regulator-name = "vcca0v9_hdmi";
323 regulator-min-microvolt = <900000>;
324 regulator-max-microvolt = <900000>;
327 regulator-state-mem {
328 regulator-on-in-suspend;
329 regulator-suspend-microvolt = <900000>;
334 regulator-name = "vcc_3v0";
335 regulator-min-microvolt = <3000000>;
336 regulator-max-microvolt = <3000000>;
339 regulator-state-mem {
340 regulator-on-in-suspend;
341 regulator-suspend-microvolt = <3000000>;
345 vcc3v3_s3: SWITCH_REG1 {
346 regulator-name = "vcc3v3_s3";
349 regulator-state-mem {
350 regulator-on-in-suspend;
354 vcc3v3_s0: SWITCH_REG2 {
355 regulator-name = "vcc3v3_s0";
358 regulator-state-mem {
359 regulator-on-in-suspend;
387 bt656-supply = <&vcc1v8_s0>; /* bt656_gpio2ab_ms */
388 audio-supply = <&vcc1v8_s0>; /* audio_gpio3d4a_ms */
389 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
390 gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */
400 pinctrl-names = "default";
401 pinctrl-0 = <&pcie_clkreqn_cpm>;
402 vpcie0v9-supply = <&vcc_0v9>;
403 vpcie1v8-supply = <&vcca_1v8>;
404 vpcie3v3-supply = <&vcc3v3_pcie>;
409 pmu1830-supply = <&vcc_1v8>;
415 bt_enable_h: bt-enable-h {
416 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
419 bt_host_wake_l: bt-host-wake-l {
420 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
423 bt_wake_l: bt-wake-l {
424 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
429 sdmmc_bus1: sdmmc-bus1 {
431 <4 RK_PB0 1 &pcfg_pull_up_8ma>;
434 sdmmc_bus4: sdmmc-bus4 {
436 <4 RK_PB0 1 &pcfg_pull_up_8ma>,
437 <4 RK_PB1 1 &pcfg_pull_up_8ma>,
438 <4 RK_PB2 1 &pcfg_pull_up_8ma>,
439 <4 RK_PB3 1 &pcfg_pull_up_8ma>;
442 sdmmc_clk: sdmmc-clk {
444 <4 RK_PB4 1 &pcfg_pull_none_18ma>;
447 sdmmc_cmd: sdmmc-cmd {
449 <4 RK_PB5 1 &pcfg_pull_up_8ma>;
454 sdio0_bus4: sdio0-bus4 {
456 <2 RK_PC4 1 &pcfg_pull_up_20ma>,
457 <2 RK_PC5 1 &pcfg_pull_up_20ma>,
458 <2 RK_PC6 1 &pcfg_pull_up_20ma>,
459 <2 RK_PC7 1 &pcfg_pull_up_20ma>;
462 sdio0_cmd: sdio0-cmd {
464 <2 RK_PD0 1 &pcfg_pull_up_20ma>;
467 sdio0_clk: sdio0-clk {
469 <2 RK_PD1 1 &pcfg_pull_none_20ma>;
474 pmic_int_l: pmic-int-l {
476 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
479 vsel1_pin: vsel1-pin {
481 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
484 vsel2_pin: vsel2-pin {
486 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
491 wifi_enable_h: wifi-enable-h {
493 <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
498 wifi_host_wake_l: wifi-host-wake-l {
499 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
514 clock-frequency = <50000000>;
517 keep-power-in-suspend;
518 mmc-pwrseq = <&sdio_pwrseq>;
520 pinctrl-names = "default";
521 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
523 #address-cells = <1>;
528 compatible = "brcm,bcm4329-fmac";
530 interrupt-parent = <&gpio0>;
531 interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
532 interrupt-names = "host-wake";
533 pinctrl-names = "default";
534 pinctrl-0 = <&wifi_host_wake_l>;
541 mmc-hs400-enhanced-strobe;
550 clock-frequency = <100000000>;
551 max-frequency = <100000000>;
552 cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
555 vqmmc-supply = <&vcc_sd>;
556 card-detect-delay = <800>;
557 pinctrl-names = "default";
558 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
563 rockchip,hw-tshut-mode = <1>;
564 rockchip,hw-tshut-polarity = <1>;
565 rockchip,hw-tshut-temp = <110000>;
570 pinctrl-names = "default";
571 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
575 compatible = "brcm,bcm43438-bt";
577 clock-names = "ext_clock";
578 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
579 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
580 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
581 pinctrl-names = "default";
582 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
607 phy-supply = <&vcc5v0_host>;
612 phy-supply = <&vcc5v0_host>;