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 vcc3v3_sys: vcc3v3-sys {
97 compatible = "regulator-fixed";
98 regulator-name = "vcc3v3_sys";
101 regulator-min-microvolt = <3300000>;
102 regulator-max-microvolt = <3300000>;
103 vin-supply = <&vcc_sys>;
107 compatible = "regulator-fixed";
108 regulator-name = "vcc_sys";
111 regulator-min-microvolt = <5000000>;
112 regulator-max-microvolt = <5000000>;
113 vin-supply = <&dc_12v>;
116 vcc5v0_host: vcc5v0-host-regulator {
117 compatible = "regulator-fixed";
119 gpio = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
120 pinctrl-names = "default";
121 pinctrl-0 = <&vcc5v0_host_en>;
122 regulator-name = "vcc5v0_host";
124 vin-supply = <&vcc_sys>;
128 compatible = "pwm-regulator";
129 pwms = <&pwm2 0 25000 1>;
130 regulator-name = "vdd_log";
133 regulator-min-microvolt = <800000>;
134 regulator-max-microvolt = <1400000>;
135 vin-supply = <&vcc_sys>;
140 cpu-supply = <&vdd_cpu_l>;
144 cpu-supply = <&vdd_cpu_l>;
148 cpu-supply = <&vdd_cpu_l>;
152 cpu-supply = <&vdd_cpu_l>;
156 cpu-supply = <&vdd_cpu_b>;
160 cpu-supply = <&vdd_cpu_b>;
168 assigned-clocks = <&cru SCLK_RMII_SRC>;
169 assigned-clock-parents = <&clkin_gmac>;
170 clock_in_out = "input";
171 phy-supply = <&vcc_lan>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&rgmii_pins>;
175 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
176 snps,reset-active-low;
177 snps,reset-delays-us = <0 10000 50000>;
184 mali-supply = <&vdd_gpu>;
189 ddc-i2c-bus = <&i2c3>;
198 clock-frequency = <400000>;
199 i2c-scl-rising-time-ns = <168>;
200 i2c-scl-falling-time-ns = <4>;
204 compatible = "rockchip,rk808";
206 interrupt-parent = <&gpio1>;
207 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
209 clock-output-names = "xin32k", "rk808-clkout2";
210 pinctrl-names = "default";
211 pinctrl-0 = <&pmic_int_l &pmic_dvs2>;
212 rockchip,system-power-controller;
215 vcc1-supply = <&vcc_sys>;
216 vcc2-supply = <&vcc_sys>;
217 vcc3-supply = <&vcc_sys>;
218 vcc4-supply = <&vcc_sys>;
219 vcc6-supply = <&vcc_sys>;
220 vcc7-supply = <&vcc_sys>;
221 vcc8-supply = <&vcc3v3_sys>;
222 vcc9-supply = <&vcc_sys>;
223 vcc10-supply = <&vcc_sys>;
224 vcc11-supply = <&vcc_sys>;
225 vcc12-supply = <&vcc3v3_sys>;
226 vddio-supply = <&vcc1v8_pmu>;
229 vdd_center: DCDC_REG1 {
230 regulator-name = "vdd_center";
233 regulator-min-microvolt = <750000>;
234 regulator-max-microvolt = <1350000>;
235 regulator-ramp-delay = <6001>;
236 regulator-state-mem {
237 regulator-off-in-suspend;
241 vdd_cpu_l: DCDC_REG2 {
242 regulator-name = "vdd_cpu_l";
245 regulator-min-microvolt = <750000>;
246 regulator-max-microvolt = <1350000>;
247 regulator-ramp-delay = <6001>;
248 regulator-state-mem {
249 regulator-off-in-suspend;
254 regulator-name = "vcc_ddr";
257 regulator-state-mem {
258 regulator-on-in-suspend;
263 regulator-name = "vcc_1v8";
266 regulator-min-microvolt = <1800000>;
267 regulator-max-microvolt = <1800000>;
268 regulator-state-mem {
269 regulator-on-in-suspend;
270 regulator-suspend-microvolt = <1800000>;
274 vcc1v8_dvp: LDO_REG1 {
275 regulator-name = "vcc1v8_dvp";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
280 regulator-state-mem {
281 regulator-off-in-suspend;
285 vcc3v0_tp: LDO_REG2 {
286 regulator-name = "vcc3v0_tp";
289 regulator-min-microvolt = <3000000>;
290 regulator-max-microvolt = <3000000>;
291 regulator-state-mem {
292 regulator-off-in-suspend;
296 vcc1v8_pmu: LDO_REG3 {
297 regulator-name = "vcc1v8_pmu";
300 regulator-min-microvolt = <1800000>;
301 regulator-max-microvolt = <1800000>;
302 regulator-state-mem {
303 regulator-on-in-suspend;
304 regulator-suspend-microvolt = <1800000>;
309 regulator-name = "vcc_sdio";
312 regulator-min-microvolt = <1800000>;
313 regulator-max-microvolt = <3000000>;
314 regulator-state-mem {
315 regulator-on-in-suspend;
316 regulator-suspend-microvolt = <3000000>;
320 vcca3v0_codec: LDO_REG5 {
321 regulator-name = "vcca3v0_codec";
324 regulator-min-microvolt = <3000000>;
325 regulator-max-microvolt = <3000000>;
326 regulator-state-mem {
327 regulator-off-in-suspend;
332 regulator-name = "vcc_1v5";
335 regulator-min-microvolt = <1500000>;
336 regulator-max-microvolt = <1500000>;
337 regulator-state-mem {
338 regulator-on-in-suspend;
339 regulator-suspend-microvolt = <1500000>;
343 vcca1v8_codec: LDO_REG7 {
344 regulator-name = "vcca1v8_codec";
347 regulator-min-microvolt = <1800000>;
348 regulator-max-microvolt = <1800000>;
349 regulator-state-mem {
350 regulator-off-in-suspend;
355 regulator-name = "vcc_3v0";
358 regulator-min-microvolt = <3000000>;
359 regulator-max-microvolt = <3000000>;
360 regulator-state-mem {
361 regulator-on-in-suspend;
362 regulator-suspend-microvolt = <3000000>;
366 vcc3v3_s3: vcc_lan: SWITCH_REG1 {
367 regulator-name = "vcc3v3_s3";
370 regulator-state-mem {
371 regulator-off-in-suspend;
375 vcc3v3_s0: SWITCH_REG2 {
376 regulator-name = "vcc3v3_s0";
379 regulator-state-mem {
380 regulator-off-in-suspend;
386 vdd_cpu_b: regulator@40 {
387 compatible = "silergy,syr827";
389 fcs,suspend-voltage-selector = <1>;
390 regulator-name = "vdd_cpu_b";
391 regulator-min-microvolt = <712500>;
392 regulator-max-microvolt = <1500000>;
393 regulator-ramp-delay = <1000>;
396 vin-supply = <&vcc_sys>;
398 regulator-state-mem {
399 regulator-off-in-suspend;
403 vdd_gpu: regulator@41 {
404 compatible = "silergy,syr828";
406 fcs,suspend-voltage-selector = <1>;
407 regulator-name = "vdd_gpu";
408 regulator-min-microvolt = <712500>;
409 regulator-max-microvolt = <1500000>;
410 regulator-ramp-delay = <1000>;
413 vin-supply = <&vcc_sys>;
415 regulator-state-mem {
416 regulator-off-in-suspend;
422 i2c-scl-rising-time-ns = <450>;
423 i2c-scl-falling-time-ns = <15>;
434 bt656-supply = <&vcc_3v0>;
435 audio-supply = <&vcca1v8_codec>;
436 sdmmc-supply = <&vcc_sdio>;
437 gpio1830-supply = <&vcc_3v0>;
441 pmu1830-supply = <&vcc_3v0>;
448 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
453 pmic_int_l: pmic-int-l {
455 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
458 pmic_dvs2: pmic-dvs2 {
460 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
463 vsel1_gpio: vsel1-gpio {
464 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
467 vsel2_gpio: vsel2-gpio {
468 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
473 vcc5v0_host_en: vcc5v0-host-en {
475 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
489 vref-supply = <&vcca1v8_s3>;
496 mmc-hs400-enhanced-strobe;
505 clock-frequency = <150000000>;
507 max-frequency = <150000000>;
508 pinctrl-names = "default";
509 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
510 vqmmc-supply = <&vcc_sdio>;
523 /* tshut mode 0:CRU 1:GPIO */
524 rockchip,hw-tshut-mode = <1>;
525 /* tshut polarity 0:LOW 1:HIGH */
526 rockchip,hw-tshut-polarity = <1>;
533 u2phy0_otg: otg-port {
537 u2phy0_host: host-port {
538 phy-supply = <&vcc5v0_host>;
546 u2phy1_otg: otg-port {
550 u2phy1_host: host-port {
551 phy-supply = <&vcc5v0_host>;
557 pinctrl-names = "default";
558 pinctrl-0 = <&uart0_xfer &uart0_cts>;