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"
12 sdio_pwrseq: sdio-pwrseq {
13 compatible = "mmc-pwrseq-simple";
15 clock-names = "ext_clock";
16 pinctrl-names = "default";
17 pinctrl-0 = <&wifi_enable_h>;
18 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
21 vcc12v_dcin: vcc12v-dcin {
22 compatible = "regulator-fixed";
23 regulator-name = "vcc12v_dcin";
24 regulator-min-microvolt = <12000000>;
25 regulator-max-microvolt = <12000000>;
30 vcc1v8_s0: vcc1v8-s0 {
31 compatible = "regulator-fixed";
32 regulator-name = "vcc1v8_s0";
33 regulator-min-microvolt = <1800000>;
34 regulator-max-microvolt = <1800000>;
38 vcc5v0_sys: vcc5v0-sys {
39 compatible = "regulator-fixed";
40 regulator-name = "vcc5v0_sys";
41 regulator-min-microvolt = <5000000>;
42 regulator-max-microvolt = <5000000>;
44 vin-supply = <&vcc12v_dcin>;
47 vcc3v3_sys: vcc3v3-sys {
48 compatible = "regulator-fixed";
49 regulator-name = "vcc3v3_sys";
50 regulator-min-microvolt = <3300000>;
51 regulator-max-microvolt = <3300000>;
53 vin-supply = <&vcc5v0_sys>;
56 vcc3v3_pcie: vcc3v3-pcie-regulator {
57 compatible = "regulator-fixed";
59 pinctrl-names = "default";
60 pinctrl-0 = <&pcie_drv>;
62 regulator-name = "vcc3v3_pcie";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
65 vin-supply = <&vcc3v3_sys>;
68 vcc5v0_host: vcc5v0-host-regulator {
69 compatible = "regulator-fixed";
71 pinctrl-names = "default";
72 pinctrl-0 = <&host_vbus_drv>;
73 regulator-name = "vcc5v0_host";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
77 vin-supply = <&vcc5v0_sys>;
81 compatible = "regulator-fixed";
82 regulator-name = "vcc_0v9";
84 regulator-min-microvolt = <900000>;
85 regulator-max-microvolt = <900000>;
86 vin-supply = <&vcc3v3_sys>;
91 cpu-supply = <&vdd_cpu_l>;
95 cpu-supply = <&vdd_cpu_l>;
99 cpu-supply = <&vdd_cpu_l>;
103 cpu-supply = <&vdd_cpu_l>;
107 cpu-supply = <&vdd_cpu_b>;
111 cpu-supply = <&vdd_cpu_b>;
119 mali-supply = <&vdd_gpu>;
124 ddc-i2c-bus = <&i2c3>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&hdmi_cec>;
135 clock-frequency = <400000>;
136 i2c-scl-rising-time-ns = <168>;
137 i2c-scl-falling-time-ns = <4>;
140 vdd_cpu_b: regulator@40 {
141 compatible = "silergy,syr827";
143 fcs,suspend-voltage-selector = <1>;
144 regulator-name = "vdd_cpu_b";
145 regulator-min-microvolt = <712500>;
146 regulator-max-microvolt = <1500000>;
147 regulator-ramp-delay = <1000>;
150 vin-supply = <&vcc5v0_sys>;
153 regulator-state-mem {
154 regulator-off-in-suspend;
158 vdd_gpu: regulator@41 {
159 compatible = "silergy,syr828";
161 fcs,suspend-voltage-selector = <1>;
162 regulator-name = "vdd_gpu";
163 regulator-min-microvolt = <712500>;
164 regulator-max-microvolt = <1500000>;
165 regulator-ramp-delay = <1000>;
168 vin-supply = <&vcc5v0_sys>;
169 regulator-state-mem {
170 regulator-off-in-suspend;
175 compatible = "rockchip,rk808";
177 interrupt-parent = <&gpio1>;
178 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&pmic_int_l>;
181 rockchip,system-power-controller;
184 clock-output-names = "xin32k", "rk808-clkout2";
186 vcc1-supply = <&vcc5v0_sys>;
187 vcc2-supply = <&vcc5v0_sys>;
188 vcc3-supply = <&vcc5v0_sys>;
189 vcc4-supply = <&vcc5v0_sys>;
190 vcc6-supply = <&vcc5v0_sys>;
191 vcc7-supply = <&vcc5v0_sys>;
192 vcc8-supply = <&vcc3v3_sys>;
193 vcc9-supply = <&vcc5v0_sys>;
194 vcc10-supply = <&vcc5v0_sys>;
195 vcc11-supply = <&vcc5v0_sys>;
196 vcc12-supply = <&vcc3v3_sys>;
197 vddio-supply = <&vcc_1v8>;
200 vdd_center: DCDC_REG1 {
201 regulator-name = "vdd_center";
202 regulator-min-microvolt = <750000>;
203 regulator-max-microvolt = <1350000>;
206 regulator-state-mem {
207 regulator-off-in-suspend;
211 vdd_cpu_l: DCDC_REG2 {
212 regulator-name = "vdd_cpu_l";
213 regulator-min-microvolt = <750000>;
214 regulator-max-microvolt = <1350000>;
217 regulator-state-mem {
218 regulator-off-in-suspend;
223 regulator-name = "vcc_ddr";
226 regulator-state-mem {
227 regulator-on-in-suspend;
232 regulator-name = "vcc_1v8";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
237 regulator-state-mem {
238 regulator-on-in-suspend;
239 regulator-suspend-microvolt = <1800000>;
243 vcc1v8_dvp: LDO_REG1 {
244 regulator-name = "vcc1v8_dvp";
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
249 regulator-state-mem {
250 regulator-on-in-suspend;
251 regulator-suspend-microvolt = <1800000>;
255 vcca1v8_hdmi: LDO_REG2 {
256 regulator-name = "vcca1v8_hdmi";
257 regulator-min-microvolt = <1800000>;
258 regulator-max-microvolt = <1800000>;
261 regulator-state-mem {
262 regulator-on-in-suspend;
263 regulator-suspend-microvolt = <1800000>;
268 regulator-name = "vcca_1v8";
269 regulator-min-microvolt = <1800000>;
270 regulator-max-microvolt = <1800000>;
273 regulator-state-mem {
274 regulator-on-in-suspend;
275 regulator-suspend-microvolt = <1800000>;
280 regulator-name = "vcc_sd";
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <3300000>;
285 regulator-state-mem {
286 regulator-on-in-suspend;
287 regulator-suspend-microvolt = <3300000>;
291 vcc3v0_sd: LDO_REG5 {
292 regulator-name = "vcc3v0_sd";
293 regulator-min-microvolt = <3000000>;
294 regulator-max-microvolt = <3000000>;
297 regulator-state-mem {
298 regulator-on-in-suspend;
299 regulator-suspend-microvolt = <3000000>;
304 regulator-name = "vcc_1v5";
305 regulator-min-microvolt = <1500000>;
306 regulator-max-microvolt = <1500000>;
309 regulator-state-mem {
310 regulator-on-in-suspend;
311 regulator-suspend-microvolt = <1500000>;
315 vcca0v9_hdmi: LDO_REG7 {
316 regulator-name = "vcca0v9_hdmi";
317 regulator-min-microvolt = <900000>;
318 regulator-max-microvolt = <900000>;
321 regulator-state-mem {
322 regulator-on-in-suspend;
323 regulator-suspend-microvolt = <900000>;
328 regulator-name = "vcc_3v0";
329 regulator-min-microvolt = <3000000>;
330 regulator-max-microvolt = <3000000>;
333 regulator-state-mem {
334 regulator-on-in-suspend;
335 regulator-suspend-microvolt = <3000000>;
339 vcc3v3_s3: SWITCH_REG1 {
340 regulator-name = "vcc3v3_s3";
343 regulator-state-mem {
344 regulator-on-in-suspend;
348 vcc3v3_s0: SWITCH_REG2 {
349 regulator-name = "vcc3v3_s0";
352 regulator-state-mem {
353 regulator-on-in-suspend;
381 bt656-supply = <&vcc1v8_s0>; /* bt656_gpio2ab_ms */
382 audio-supply = <&vcc1v8_s0>; /* audio_gpio3d4a_ms */
383 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
384 gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */
394 pinctrl-names = "default";
395 pinctrl-0 = <&pcie_clkreqn_cpm>;
396 vpcie0v9-supply = <&vcc_0v9>;
397 vpcie1v8-supply = <&vcca_1v8>;
398 vpcie3v3-supply = <&vcc3v3_pcie>;
403 pmu1830-supply = <&vcc_1v8>;
409 bt_enable_h: bt-enable-h {
410 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
413 bt_host_wake_l: bt-host-wake-l {
414 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
417 bt_wake_l: bt-wake-l {
418 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
423 sdmmc_bus1: sdmmc-bus1 {
425 <4 RK_PB0 1 &pcfg_pull_up_8ma>;
428 sdmmc_bus4: sdmmc-bus4 {
430 <4 RK_PB0 1 &pcfg_pull_up_8ma>,
431 <4 RK_PB1 1 &pcfg_pull_up_8ma>,
432 <4 RK_PB2 1 &pcfg_pull_up_8ma>,
433 <4 RK_PB3 1 &pcfg_pull_up_8ma>;
436 sdmmc_clk: sdmmc-clk {
438 <4 RK_PB4 1 &pcfg_pull_none_18ma>;
441 sdmmc_cmd: sdmmc-cmd {
443 <4 RK_PB5 1 &pcfg_pull_up_8ma>;
448 sdio0_bus4: sdio0-bus4 {
450 <2 RK_PC4 1 &pcfg_pull_up_20ma>,
451 <2 RK_PC5 1 &pcfg_pull_up_20ma>,
452 <2 RK_PC6 1 &pcfg_pull_up_20ma>,
453 <2 RK_PC7 1 &pcfg_pull_up_20ma>;
456 sdio0_cmd: sdio0-cmd {
458 <2 RK_PD0 1 &pcfg_pull_up_20ma>;
461 sdio0_clk: sdio0-clk {
463 <2 RK_PD1 1 &pcfg_pull_none_20ma>;
468 pmic_int_l: pmic-int-l {
470 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
473 vsel1_pin: vsel1-pin {
475 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
478 vsel2_pin: vsel2-pin {
480 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
485 wifi_enable_h: wifi-enable-h {
487 <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
492 wifi_host_wake_l: wifi-host-wake-l {
493 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
508 clock-frequency = <50000000>;
511 keep-power-in-suspend;
512 mmc-pwrseq = <&sdio_pwrseq>;
514 pinctrl-names = "default";
515 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
517 #address-cells = <1>;
522 compatible = "brcm,bcm4329-fmac";
524 interrupt-parent = <&gpio0>;
525 interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
526 interrupt-names = "host-wake";
527 pinctrl-names = "default";
528 pinctrl-0 = <&wifi_host_wake_l>;
535 mmc-hs400-enhanced-strobe;
544 clock-frequency = <100000000>;
545 max-frequency = <100000000>;
546 cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
549 vqmmc-supply = <&vcc_sd>;
550 card-detect-delay = <800>;
551 pinctrl-names = "default";
552 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
557 rockchip,hw-tshut-mode = <1>;
558 rockchip,hw-tshut-polarity = <1>;
559 rockchip,hw-tshut-temp = <110000>;
564 pinctrl-names = "default";
565 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
569 compatible = "brcm,bcm43438-bt";
571 clock-names = "ext_clock";
572 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
573 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
574 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
575 pinctrl-names = "default";
576 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
601 phy-supply = <&vcc5v0_host>;
606 phy-supply = <&vcc5v0_host>;