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>;
119 vcc5v0_host: vcc5v0-host-regulator {
120 compatible = "regulator-fixed";
122 gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&vcc5v0_host_en>;
125 regulator-name = "vcc5v0_host";
127 vin-supply = <&vcc_sys>;
130 vcc5v0_typec0: vcc5v0-typec0-regulator {
131 compatible = "regulator-fixed";
133 gpio = <&gpio2 RK_PA0 GPIO_ACTIVE_HIGH>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&vcc5v0_typec0_en>;
136 regulator-name = "vcc5v0_typec0";
137 vin-supply = <&vcc_sys>;
141 compatible = "regulator-fixed";
142 regulator-name = "vcc_sys";
145 regulator-min-microvolt = <5000000>;
146 regulator-max-microvolt = <5000000>;
147 vin-supply = <&dc_12v>;
151 compatible = "pwm-regulator";
152 pwms = <&pwm2 0 25000 1>;
153 regulator-name = "vdd_log";
156 regulator-min-microvolt = <800000>;
157 regulator-max-microvolt = <1400000>;
158 vin-supply = <&vcc_sys>;
163 cpu-supply = <&vdd_cpu_l>;
167 cpu-supply = <&vdd_cpu_l>;
171 cpu-supply = <&vdd_cpu_l>;
175 cpu-supply = <&vdd_cpu_l>;
179 cpu-supply = <&vdd_cpu_b>;
183 cpu-supply = <&vdd_cpu_b>;
191 assigned-clocks = <&cru SCLK_RMII_SRC>;
192 assigned-clock-parents = <&clkin_gmac>;
193 clock_in_out = "input";
194 phy-supply = <&vcc_lan>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&rgmii_pins>;
198 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
199 snps,reset-active-low;
200 snps,reset-delays-us = <0 10000 50000>;
207 mali-supply = <&vdd_gpu>;
212 ddc-i2c-bus = <&i2c3>;
221 clock-frequency = <400000>;
222 i2c-scl-rising-time-ns = <168>;
223 i2c-scl-falling-time-ns = <4>;
227 compatible = "rockchip,rk808";
229 interrupt-parent = <&gpio1>;
230 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
232 clock-output-names = "xin32k", "rk808-clkout2";
233 pinctrl-names = "default";
234 pinctrl-0 = <&pmic_int_l>;
235 rockchip,system-power-controller;
238 vcc1-supply = <&vcc_sys>;
239 vcc2-supply = <&vcc_sys>;
240 vcc3-supply = <&vcc_sys>;
241 vcc4-supply = <&vcc_sys>;
242 vcc6-supply = <&vcc_sys>;
243 vcc7-supply = <&vcc_sys>;
244 vcc8-supply = <&vcc3v3_sys>;
245 vcc9-supply = <&vcc_sys>;
246 vcc10-supply = <&vcc_sys>;
247 vcc11-supply = <&vcc_sys>;
248 vcc12-supply = <&vcc3v3_sys>;
249 vddio-supply = <&vcc1v8_pmu>;
252 vdd_center: DCDC_REG1 {
253 regulator-name = "vdd_center";
256 regulator-min-microvolt = <750000>;
257 regulator-max-microvolt = <1350000>;
258 regulator-ramp-delay = <6001>;
259 regulator-state-mem {
260 regulator-off-in-suspend;
264 vdd_cpu_l: DCDC_REG2 {
265 regulator-name = "vdd_cpu_l";
268 regulator-min-microvolt = <750000>;
269 regulator-max-microvolt = <1350000>;
270 regulator-ramp-delay = <6001>;
271 regulator-state-mem {
272 regulator-off-in-suspend;
277 regulator-name = "vcc_ddr";
280 regulator-state-mem {
281 regulator-on-in-suspend;
286 regulator-name = "vcc_1v8";
289 regulator-min-microvolt = <1800000>;
290 regulator-max-microvolt = <1800000>;
291 regulator-state-mem {
292 regulator-on-in-suspend;
293 regulator-suspend-microvolt = <1800000>;
297 vcc1v8_dvp: LDO_REG1 {
298 regulator-name = "vcc1v8_dvp";
301 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <1800000>;
303 regulator-state-mem {
304 regulator-off-in-suspend;
308 vcc3v0_tp: LDO_REG2 {
309 regulator-name = "vcc3v0_tp";
312 regulator-min-microvolt = <3000000>;
313 regulator-max-microvolt = <3000000>;
314 regulator-state-mem {
315 regulator-off-in-suspend;
319 vcc1v8_pmu: LDO_REG3 {
320 regulator-name = "vcc1v8_pmu";
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <1800000>;
325 regulator-state-mem {
326 regulator-on-in-suspend;
327 regulator-suspend-microvolt = <1800000>;
332 regulator-name = "vcc_sdio";
335 regulator-min-microvolt = <1800000>;
336 regulator-max-microvolt = <3300000>;
337 regulator-state-mem {
338 regulator-on-in-suspend;
339 regulator-suspend-microvolt = <3000000>;
343 vcca3v0_codec: LDO_REG5 {
344 regulator-name = "vcca3v0_codec";
347 regulator-min-microvolt = <3000000>;
348 regulator-max-microvolt = <3000000>;
349 regulator-state-mem {
350 regulator-off-in-suspend;
355 regulator-name = "vcc_1v5";
358 regulator-min-microvolt = <1500000>;
359 regulator-max-microvolt = <1500000>;
360 regulator-state-mem {
361 regulator-on-in-suspend;
362 regulator-suspend-microvolt = <1500000>;
366 vcca1v8_codec: LDO_REG7 {
367 regulator-name = "vcca1v8_codec";
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <1800000>;
372 regulator-state-mem {
373 regulator-off-in-suspend;
378 regulator-name = "vcc_3v0";
381 regulator-min-microvolt = <3000000>;
382 regulator-max-microvolt = <3000000>;
383 regulator-state-mem {
384 regulator-on-in-suspend;
385 regulator-suspend-microvolt = <3000000>;
389 vcc3v3_s3: vcc_lan: SWITCH_REG1 {
390 regulator-name = "vcc3v3_s3";
393 regulator-state-mem {
394 regulator-off-in-suspend;
398 vcc3v3_s0: SWITCH_REG2 {
399 regulator-name = "vcc3v3_s0";
402 regulator-state-mem {
403 regulator-off-in-suspend;
409 vdd_cpu_b: regulator@40 {
410 compatible = "silergy,syr827";
412 fcs,suspend-voltage-selector = <1>;
413 regulator-name = "vdd_cpu_b";
414 regulator-min-microvolt = <712500>;
415 regulator-max-microvolt = <1500000>;
416 regulator-ramp-delay = <1000>;
419 vin-supply = <&vcc_sys>;
421 regulator-state-mem {
422 regulator-off-in-suspend;
426 vdd_gpu: regulator@41 {
427 compatible = "silergy,syr828";
429 fcs,suspend-voltage-selector = <1>;
430 regulator-name = "vdd_gpu";
431 regulator-min-microvolt = <712500>;
432 regulator-max-microvolt = <1500000>;
433 regulator-ramp-delay = <1000>;
436 vin-supply = <&vcc_sys>;
438 regulator-state-mem {
439 regulator-off-in-suspend;
445 i2c-scl-rising-time-ns = <450>;
446 i2c-scl-falling-time-ns = <15>;
457 bt656-supply = <&vcc_3v0>;
458 audio-supply = <&vcca1v8_codec>;
459 sdmmc-supply = <&vcc_sdio>;
460 gpio1830-supply = <&vcc_3v0>;
464 pmu1830-supply = <&vcc_3v0>;
471 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
476 pmic_int_l: pmic-int-l {
478 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
481 vsel1_gpio: vsel1-gpio {
482 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
485 vsel2_gpio: vsel2-gpio {
486 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
491 sdmmc0_pwr_h: sdmmc0-pwr-h {
493 <RK_GPIO0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
498 vcc5v0_host_en: vcc5v0-host-en {
500 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
502 vcc5v0_typec0_en: vcc5v0-typec0-en {
504 <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
518 vref-supply = <&vcca1v8_s3>;
525 mmc-hs400-enhanced-strobe;
535 clock-frequency = <150000000>;
537 max-frequency = <150000000>;
538 pinctrl-names = "default";
539 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
540 vmmc-supply = <&vcc3v0_sd>;
541 vqmmc-supply = <&vcc_sdio>;
554 /* tshut mode 0:CRU 1:GPIO */
555 rockchip,hw-tshut-mode = <1>;
556 /* tshut polarity 0:LOW 1:HIGH */
557 rockchip,hw-tshut-polarity = <1>;
564 u2phy0_otg: otg-port {
565 phy-supply = <&vcc5v0_typec0>;
569 u2phy0_host: host-port {
570 phy-supply = <&vcc5v0_host>;
578 u2phy1_otg: otg-port {
582 u2phy1_host: host-port {
583 phy-supply = <&vcc5v0_host>;
589 pinctrl-names = "default";
590 pinctrl-0 = <&uart0_xfer &uart0_cts>;