1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
6 #include "dt-bindings/pwm/pwm.h"
7 #include "dt-bindings/input/input.h"
9 #include "rk3399-opp.dtsi"
12 compatible = "rockchip,rk3399-sapphire", "rockchip,rk3399";
14 backlight: backlight {
15 compatible = "pwm-backlight";
19 16 17 18 19 20 21 22 23
20 24 25 26 27 28 29 30 31
21 32 33 34 35 36 37 38 39
22 40 41 42 43 44 45 46 47
23 48 49 50 51 52 53 54 55
24 56 57 58 59 60 61 62 63
25 64 65 66 67 68 69 70 71
26 72 73 74 75 76 77 78 79
27 80 81 82 83 84 85 86 87
28 88 89 90 91 92 93 94 95
29 96 97 98 99 100 101 102 103
30 104 105 106 107 108 109 110 111
31 112 113 114 115 116 117 118 119
32 120 121 122 123 124 125 126 127
33 128 129 130 131 132 133 134 135
34 136 137 138 139 140 141 142 143
35 144 145 146 147 148 149 150 151
36 152 153 154 155 156 157 158 159
37 160 161 162 163 164 165 166 167
38 168 169 170 171 172 173 174 175
39 176 177 178 179 180 181 182 183
40 184 185 186 187 188 189 190 191
41 192 193 194 195 196 197 198 199
42 200 201 202 203 204 205 206 207
43 208 209 210 211 212 213 214 215
44 216 217 218 219 220 221 222 223
45 224 225 226 227 228 229 230 231
46 232 233 234 235 236 237 238 239
47 240 241 242 243 244 245 246 247
48 248 249 250 251 252 253 254 255>;
49 default-brightness-level = <200>;
50 pwms = <&pwm0 0 25000 0>;
53 clkin_gmac: external-gmac-clock {
54 compatible = "fixed-clock";
55 clock-frequency = <125000000>;
56 clock-output-names = "clkin_gmac";
61 compatible = "regulator-fixed";
62 regulator-name = "dc_12v";
65 regulator-min-microvolt = <12000000>;
66 regulator-max-microvolt = <12000000>;
70 compatible = "gpio-keys";
74 debounce-interval = <100>;
75 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_POWER>;
78 linux,input-type = <1>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&pwr_btn>;
85 /* switched by pmic_sleep */
86 vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
87 compatible = "regulator-fixed";
88 regulator-name = "vcc1v8_s3";
91 regulator-min-microvolt = <1800000>;
92 regulator-max-microvolt = <1800000>;
93 vin-supply = <&vcc_1v8>;
96 vcc3v0_sd: vcc3v0-sd {
97 compatible = "regulator-fixed";
99 gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&sdmmc0_pwr_h>;
103 regulator-max-microvolt = <3000000>;
104 regulator-min-microvolt = <3000000>;
105 regulator-name = "vcc3v0_sd";
106 vin-supply = <&vcc3v3_sys>;
109 vcc3v3_sys: vcc3v3-sys {
110 compatible = "regulator-fixed";
111 regulator-name = "vcc3v3_sys";
114 regulator-min-microvolt = <3300000>;
115 regulator-max-microvolt = <3300000>;
116 vin-supply = <&vcc_sys>;
120 compatible = "regulator-fixed";
121 regulator-name = "vcc_sys";
124 regulator-min-microvolt = <5000000>;
125 regulator-max-microvolt = <5000000>;
126 vin-supply = <&dc_12v>;
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 = <&vcc_sys>;
141 compatible = "pwm-regulator";
142 pwms = <&pwm2 0 25000 1>;
143 regulator-name = "vdd_log";
146 regulator-min-microvolt = <800000>;
147 regulator-max-microvolt = <1400000>;
148 vin-supply = <&vcc_sys>;
153 cpu-supply = <&vdd_cpu_l>;
157 cpu-supply = <&vdd_cpu_l>;
161 cpu-supply = <&vdd_cpu_l>;
165 cpu-supply = <&vdd_cpu_l>;
169 cpu-supply = <&vdd_cpu_b>;
173 cpu-supply = <&vdd_cpu_b>;
181 assigned-clocks = <&cru SCLK_RMII_SRC>;
182 assigned-clock-parents = <&clkin_gmac>;
183 clock_in_out = "input";
184 phy-supply = <&vcc_lan>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&rgmii_pins>;
188 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
189 snps,reset-active-low;
190 snps,reset-delays-us = <0 10000 50000>;
197 mali-supply = <&vdd_gpu>;
202 ddc-i2c-bus = <&i2c3>;
211 clock-frequency = <400000>;
212 i2c-scl-rising-time-ns = <168>;
213 i2c-scl-falling-time-ns = <4>;
217 compatible = "rockchip,rk808";
219 interrupt-parent = <&gpio1>;
220 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
222 clock-output-names = "xin32k", "rk808-clkout2";
223 pinctrl-names = "default";
224 pinctrl-0 = <&pmic_int_l &pmic_dvs2>;
225 rockchip,system-power-controller;
228 vcc1-supply = <&vcc_sys>;
229 vcc2-supply = <&vcc_sys>;
230 vcc3-supply = <&vcc_sys>;
231 vcc4-supply = <&vcc_sys>;
232 vcc6-supply = <&vcc_sys>;
233 vcc7-supply = <&vcc_sys>;
234 vcc8-supply = <&vcc3v3_sys>;
235 vcc9-supply = <&vcc_sys>;
236 vcc10-supply = <&vcc_sys>;
237 vcc11-supply = <&vcc_sys>;
238 vcc12-supply = <&vcc3v3_sys>;
239 vddio-supply = <&vcc1v8_pmu>;
242 vdd_center: DCDC_REG1 {
243 regulator-name = "vdd_center";
246 regulator-min-microvolt = <750000>;
247 regulator-max-microvolt = <1350000>;
248 regulator-ramp-delay = <6001>;
249 regulator-state-mem {
250 regulator-off-in-suspend;
254 vdd_cpu_l: DCDC_REG2 {
255 regulator-name = "vdd_cpu_l";
258 regulator-min-microvolt = <750000>;
259 regulator-max-microvolt = <1350000>;
260 regulator-ramp-delay = <6001>;
261 regulator-state-mem {
262 regulator-off-in-suspend;
267 regulator-name = "vcc_ddr";
270 regulator-state-mem {
271 regulator-on-in-suspend;
276 regulator-name = "vcc_1v8";
279 regulator-min-microvolt = <1800000>;
280 regulator-max-microvolt = <1800000>;
281 regulator-state-mem {
282 regulator-on-in-suspend;
283 regulator-suspend-microvolt = <1800000>;
287 vcc1v8_dvp: LDO_REG1 {
288 regulator-name = "vcc1v8_dvp";
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-state-mem {
294 regulator-off-in-suspend;
298 vcc3v0_tp: LDO_REG2 {
299 regulator-name = "vcc3v0_tp";
302 regulator-min-microvolt = <3000000>;
303 regulator-max-microvolt = <3000000>;
304 regulator-state-mem {
305 regulator-off-in-suspend;
309 vcc1v8_pmu: LDO_REG3 {
310 regulator-name = "vcc1v8_pmu";
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
315 regulator-state-mem {
316 regulator-on-in-suspend;
317 regulator-suspend-microvolt = <1800000>;
322 regulator-name = "vcc_sdio";
325 regulator-min-microvolt = <1800000>;
326 regulator-max-microvolt = <3300000>;
327 regulator-state-mem {
328 regulator-on-in-suspend;
329 regulator-suspend-microvolt = <3000000>;
333 vcca3v0_codec: LDO_REG5 {
334 regulator-name = "vcca3v0_codec";
337 regulator-min-microvolt = <3000000>;
338 regulator-max-microvolt = <3000000>;
339 regulator-state-mem {
340 regulator-off-in-suspend;
345 regulator-name = "vcc_1v5";
348 regulator-min-microvolt = <1500000>;
349 regulator-max-microvolt = <1500000>;
350 regulator-state-mem {
351 regulator-on-in-suspend;
352 regulator-suspend-microvolt = <1500000>;
356 vcca1v8_codec: LDO_REG7 {
357 regulator-name = "vcca1v8_codec";
360 regulator-min-microvolt = <1800000>;
361 regulator-max-microvolt = <1800000>;
362 regulator-state-mem {
363 regulator-off-in-suspend;
368 regulator-name = "vcc_3v0";
371 regulator-min-microvolt = <3000000>;
372 regulator-max-microvolt = <3000000>;
373 regulator-state-mem {
374 regulator-on-in-suspend;
375 regulator-suspend-microvolt = <3000000>;
379 vcc3v3_s3: vcc_lan: SWITCH_REG1 {
380 regulator-name = "vcc3v3_s3";
383 regulator-state-mem {
384 regulator-off-in-suspend;
388 vcc3v3_s0: SWITCH_REG2 {
389 regulator-name = "vcc3v3_s0";
392 regulator-state-mem {
393 regulator-off-in-suspend;
399 vdd_cpu_b: regulator@40 {
400 compatible = "silergy,syr827";
402 fcs,suspend-voltage-selector = <1>;
403 regulator-name = "vdd_cpu_b";
404 regulator-min-microvolt = <712500>;
405 regulator-max-microvolt = <1500000>;
406 regulator-ramp-delay = <1000>;
409 vin-supply = <&vcc_sys>;
411 regulator-state-mem {
412 regulator-off-in-suspend;
416 vdd_gpu: regulator@41 {
417 compatible = "silergy,syr828";
419 fcs,suspend-voltage-selector = <1>;
420 regulator-name = "vdd_gpu";
421 regulator-min-microvolt = <712500>;
422 regulator-max-microvolt = <1500000>;
423 regulator-ramp-delay = <1000>;
426 vin-supply = <&vcc_sys>;
428 regulator-state-mem {
429 regulator-off-in-suspend;
435 i2c-scl-rising-time-ns = <450>;
436 i2c-scl-falling-time-ns = <15>;
447 bt656-supply = <&vcc_3v0>;
448 audio-supply = <&vcca1v8_codec>;
449 sdmmc-supply = <&vcc_sdio>;
450 gpio1830-supply = <&vcc_3v0>;
454 pmu1830-supply = <&vcc_3v0>;
461 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
466 pmic_int_l: pmic-int-l {
468 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
471 pmic_dvs2: pmic-dvs2 {
473 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
476 vsel1_gpio: vsel1-gpio {
477 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
480 vsel2_gpio: vsel2-gpio {
481 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
486 sdmmc0_pwr_h: sdmmc0-pwr-h {
488 <RK_GPIO0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
493 vcc5v0_host_en: vcc5v0-host-en {
495 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
509 vref-supply = <&vcca1v8_s3>;
516 mmc-hs400-enhanced-strobe;
526 clock-frequency = <150000000>;
528 max-frequency = <150000000>;
529 pinctrl-names = "default";
530 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
531 vmmc-supply = <&vcc3v0_sd>;
532 vqmmc-supply = <&vcc_sdio>;
545 /* tshut mode 0:CRU 1:GPIO */
546 rockchip,hw-tshut-mode = <1>;
547 /* tshut polarity 0:LOW 1:HIGH */
548 rockchip,hw-tshut-polarity = <1>;
555 u2phy0_otg: otg-port {
559 u2phy0_host: host-port {
560 phy-supply = <&vcc5v0_host>;
568 u2phy1_otg: otg-port {
572 u2phy1_host: host-port {
573 phy-supply = <&vcc5v0_host>;
579 pinctrl-names = "default";
580 pinctrl-0 = <&uart0_xfer &uart0_cts>;