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 vcc1v8_s0: vcc1v8-s0 {
22 compatible = "regulator-fixed";
23 regulator-name = "vcc1v8_s0";
24 regulator-min-microvolt = <1800000>;
25 regulator-max-microvolt = <1800000>;
30 compatible = "regulator-fixed";
31 regulator-name = "vcc_sys";
32 regulator-min-microvolt = <5000000>;
33 regulator-max-microvolt = <5000000>;
37 vcc3v3_sys: vcc3v3-sys {
38 compatible = "regulator-fixed";
39 regulator-name = "vcc3v3_sys";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
43 vin-supply = <&vcc_sys>;
46 vcc3v3_pcie: vcc3v3-pcie-regulator {
47 compatible = "regulator-fixed";
49 pinctrl-names = "default";
50 pinctrl-0 = <&pcie_drv>;
52 regulator-name = "vcc3v3_pcie";
53 regulator-min-microvolt = <3300000>;
54 regulator-max-microvolt = <3300000>;
55 vin-supply = <&vcc3v3_sys>;
58 vcc5v0_host: vcc5v0-host-regulator {
59 compatible = "regulator-fixed";
61 pinctrl-names = "default";
62 pinctrl-0 = <&host_vbus_drv>;
63 regulator-name = "vcc5v0_host";
64 regulator-min-microvolt = <5000000>;
65 regulator-max-microvolt = <5000000>;
67 vin-supply = <&vcc_sys>;
72 cpu-supply = <&vdd_cpu_l>;
76 cpu-supply = <&vdd_cpu_l>;
80 cpu-supply = <&vdd_cpu_l>;
84 cpu-supply = <&vdd_cpu_l>;
88 cpu-supply = <&vdd_cpu_b>;
92 cpu-supply = <&vdd_cpu_b>;
100 ddc-i2c-bus = <&i2c3>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&hdmi_cec>;
111 clock-frequency = <400000>;
112 i2c-scl-rising-time-ns = <168>;
113 i2c-scl-falling-time-ns = <4>;
116 vdd_cpu_b: regulator@40 {
117 compatible = "silergy,syr827";
119 fcs,suspend-voltage-selector = <1>;
120 regulator-name = "vdd_cpu_b";
121 regulator-min-microvolt = <712500>;
122 regulator-max-microvolt = <1500000>;
123 regulator-ramp-delay = <1000>;
126 vin-supply = <&vcc_sys>;
129 regulator-state-mem {
130 regulator-off-in-suspend;
134 vdd_gpu: regulator@41 {
135 compatible = "silergy,syr828";
137 fcs,suspend-voltage-selector = <1>;
138 regulator-name = "vdd_gpu";
139 regulator-min-microvolt = <712500>;
140 regulator-max-microvolt = <1500000>;
141 regulator-ramp-delay = <1000>;
144 vin-supply = <&vcc_sys>;
145 regulator-state-mem {
146 regulator-off-in-suspend;
151 compatible = "rockchip,rk808";
153 interrupt-parent = <&gpio1>;
154 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&pmic_int_l>;
157 rockchip,system-power-controller;
160 clock-output-names = "xin32k", "rk808-clkout2";
162 vcc1-supply = <&vcc_sys>;
163 vcc2-supply = <&vcc_sys>;
164 vcc3-supply = <&vcc_sys>;
165 vcc4-supply = <&vcc_sys>;
166 vcc6-supply = <&vcc_sys>;
167 vcc7-supply = <&vcc_sys>;
168 vcc8-supply = <&vcc3v3_sys>;
169 vcc9-supply = <&vcc_sys>;
170 vcc10-supply = <&vcc_sys>;
171 vcc11-supply = <&vcc_sys>;
172 vcc12-supply = <&vcc3v3_sys>;
173 vddio-supply = <&vcc_1v8>;
176 vdd_center: DCDC_REG1 {
177 regulator-name = "vdd_center";
178 regulator-min-microvolt = <750000>;
179 regulator-max-microvolt = <1350000>;
182 regulator-state-mem {
183 regulator-off-in-suspend;
187 vdd_cpu_l: DCDC_REG2 {
188 regulator-name = "vdd_cpu_l";
189 regulator-min-microvolt = <750000>;
190 regulator-max-microvolt = <1350000>;
193 regulator-state-mem {
194 regulator-off-in-suspend;
199 regulator-name = "vcc_ddr";
202 regulator-state-mem {
203 regulator-on-in-suspend;
208 regulator-name = "vcc_1v8";
209 regulator-min-microvolt = <1800000>;
210 regulator-max-microvolt = <1800000>;
213 regulator-state-mem {
214 regulator-on-in-suspend;
215 regulator-suspend-microvolt = <1800000>;
219 vcc1v8_dvp: LDO_REG1 {
220 regulator-name = "vcc1v8_dvp";
221 regulator-min-microvolt = <1800000>;
222 regulator-max-microvolt = <1800000>;
225 regulator-state-mem {
226 regulator-on-in-suspend;
227 regulator-suspend-microvolt = <1800000>;
231 vcca1v8_hdmi: LDO_REG2 {
232 regulator-name = "vcca1v8_hdmi";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
237 regulator-state-mem {
238 regulator-on-in-suspend;
239 regulator-suspend-microvolt = <1800000>;
244 regulator-name = "vcca_1v8";
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
249 regulator-state-mem {
250 regulator-on-in-suspend;
251 regulator-suspend-microvolt = <1800000>;
256 regulator-name = "vcc_sd";
257 regulator-min-microvolt = <1800000>;
258 regulator-max-microvolt = <3300000>;
261 regulator-state-mem {
262 regulator-on-in-suspend;
263 regulator-suspend-microvolt = <3300000>;
267 vcc3v0_sd: LDO_REG5 {
268 regulator-name = "vcc3v0_sd";
269 regulator-min-microvolt = <3000000>;
270 regulator-max-microvolt = <3000000>;
273 regulator-state-mem {
274 regulator-on-in-suspend;
275 regulator-suspend-microvolt = <3000000>;
280 regulator-name = "vcc_1v5";
281 regulator-min-microvolt = <1500000>;
282 regulator-max-microvolt = <1500000>;
285 regulator-state-mem {
286 regulator-on-in-suspend;
287 regulator-suspend-microvolt = <1500000>;
291 vcca0v9_hdmi: LDO_REG7 {
292 regulator-name = "vcca0v9_hdmi";
293 regulator-min-microvolt = <900000>;
294 regulator-max-microvolt = <900000>;
297 regulator-state-mem {
298 regulator-on-in-suspend;
299 regulator-suspend-microvolt = <900000>;
304 regulator-name = "vcc_3v0";
305 regulator-min-microvolt = <3000000>;
306 regulator-max-microvolt = <3000000>;
309 regulator-state-mem {
310 regulator-on-in-suspend;
311 regulator-suspend-microvolt = <3000000>;
315 vcc3v3_s3: SWITCH_REG1 {
316 regulator-name = "vcc3v3_s3";
319 regulator-state-mem {
320 regulator-on-in-suspend;
324 vcc3v3_s0: SWITCH_REG2 {
325 regulator-name = "vcc3v3_s0";
328 regulator-state-mem {
329 regulator-on-in-suspend;
357 bt656-supply = <&vcc1v8_s0>; /* bt656_gpio2ab_ms */
358 audio-supply = <&vcc1v8_s0>; /* audio_gpio3d4a_ms */
359 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
360 gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */
370 pinctrl-names = "default";
371 pinctrl-0 = <&pcie_clkreqn_cpm>;
372 vpcie3v3-supply = <&vcc3v3_pcie>;
377 pmu1830-supply = <&vcc_1v8>;
383 bt_enable_h: bt-enable-h {
384 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
387 bt_host_wake_l: bt-host-wake-l {
388 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
391 bt_wake_l: bt-wake-l {
392 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
397 sdmmc_bus1: sdmmc-bus1 {
399 <4 8 RK_FUNC_1 &pcfg_pull_up_8ma>;
402 sdmmc_bus4: sdmmc-bus4 {
404 <4 8 RK_FUNC_1 &pcfg_pull_up_8ma>,
405 <4 9 RK_FUNC_1 &pcfg_pull_up_8ma>,
406 <4 10 RK_FUNC_1 &pcfg_pull_up_8ma>,
407 <4 11 RK_FUNC_1 &pcfg_pull_up_8ma>;
410 sdmmc_clk: sdmmc-clk {
412 <4 12 RK_FUNC_1 &pcfg_pull_none_18ma>;
415 sdmmc_cmd: sdmmc-cmd {
417 <4 13 RK_FUNC_1 &pcfg_pull_up_8ma>;
422 sdio0_bus4: sdio0-bus4 {
424 <2 20 RK_FUNC_1 &pcfg_pull_up_20ma>,
425 <2 21 RK_FUNC_1 &pcfg_pull_up_20ma>,
426 <2 22 RK_FUNC_1 &pcfg_pull_up_20ma>,
427 <2 23 RK_FUNC_1 &pcfg_pull_up_20ma>;
430 sdio0_cmd: sdio0-cmd {
432 <2 24 RK_FUNC_1 &pcfg_pull_up_20ma>;
435 sdio0_clk: sdio0-clk {
437 <2 25 RK_FUNC_1 &pcfg_pull_none_20ma>;
442 pmic_int_l: pmic-int-l {
444 <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
447 vsel1_gpio: vsel1-gpio {
449 <1 17 RK_FUNC_GPIO &pcfg_pull_down>;
452 vsel2_gpio: vsel2-gpio {
454 <1 14 RK_FUNC_GPIO &pcfg_pull_down>;
459 wifi_enable_h: wifi-enable-h {
461 <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
466 wifi_host_wake_l: wifi-host-wake-l {
467 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
482 clock-frequency = <50000000>;
485 keep-power-in-suspend;
486 mmc-pwrseq = <&sdio_pwrseq>;
488 pinctrl-names = "default";
489 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
491 #address-cells = <1>;
496 compatible = "brcm,bcm4329-fmac";
498 interrupt-parent = <&gpio0>;
499 interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
500 interrupt-names = "host-wake";
501 pinctrl-names = "default";
502 pinctrl-0 = <&wifi_host_wake_l>;
509 mmc-hs400-enhanced-strobe;
518 clock-frequency = <100000000>;
519 clock-freq-min-max = <100000 100000000>;
520 cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
523 vqmmc-supply = <&vcc_sd>;
524 card-detect-delay = <800>;
525 pinctrl-names = "default";
526 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
531 rockchip,hw-tshut-mode = <1>;
532 rockchip,hw-tshut-polarity = <1>;
533 rockchip,hw-tshut-temp = <110000>;
538 pinctrl-names = "default";
539 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
543 compatible = "brcm,bcm43438-bt";
545 clock-names = "ext_clock";
546 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
547 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
548 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
549 pinctrl-names = "default";
550 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
575 phy-supply = <&vcc5v0_host>;
580 phy-supply = <&vcc5v0_host>;