2 * Copyright (c) 2015 Fuzhou Rockchip Electronics Co., Ltd
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include <dt-bindings/pwm/pwm.h>
44 #include "rk3368.dtsi"
47 compatible = "rockchip,tb", "rockchip,rk3368";
50 bootargs = "console=uart,mmio32,0xff690000";
54 compatible = "rockchip,ion";
59 reg = <0x00000000 0x02000000>;
66 backlight: backlight {
67 compatible = "pwm-backlight";
68 pwms = <&pwm0 0 25000 PWM_POLARITY_INVERTED>;
72 16 17 18 19 20 21 22 23
73 24 25 26 27 28 29 30 31
74 32 33 34 35 36 37 38 39
75 40 41 42 43 44 45 46 47
76 48 49 50 51 52 53 54 55
77 56 57 58 59 60 61 62 63
78 64 65 66 67 68 69 70 71
79 72 73 74 75 76 77 78 79
80 80 81 82 83 84 85 86 87
81 88 89 90 91 92 93 94 95
82 96 97 98 99 100 101 102 103
83 104 105 106 107 108 109 110 111
84 112 113 114 115 116 117 118 119
85 120 121 122 123 124 125 126 127
86 128 129 130 131 132 133 134 135
87 136 137 138 139 140 141 142 143
88 144 145 146 147 148 149 150 151
89 152 153 154 155 156 157 158 159
90 160 161 162 163 164 165 166 167
91 168 169 170 171 172 173 174 175
92 176 177 178 179 180 181 182 183
93 184 185 186 187 188 189 190 191
94 192 193 194 195 196 197 198 199
95 200 201 202 203 204 205 206 207
96 208 209 210 211 212 213 214 215
97 216 217 218 219 220 221 222 223
98 224 225 226 227 228 229 230 231
99 232 233 234 235 236 237 238 239
100 240 241 242 243 244 245 246 247
101 248 249 250 251 252 253 254 255>;
102 default-brightness-level = <200>;
103 enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
106 rk_key: rockchip-key {
107 compatible = "rockchip,key";
110 io-channels = <&saradc 1>;
115 rockchip,adc_value = <1>;
120 label = "volume down";
121 rockchip,adc_value = <170>;
125 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
134 rockchip,adc_value = <355>;
140 rockchip,adc_value = <746>;
146 rockchip,adc_value = <560>;
152 rockchip,adc_value = <450>;
157 compatible = "regulator-fixed";
158 regulator-name = "vcc_sys";
161 regulator-min-microvolt = <3800000>;
162 regulator-max-microvolt = <3800000>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
179 clock-frequency = <37500000>;
180 clock-freq-min-max = <400000 37500000>;
184 card-detect-delay = <200>;
187 pinctrl-names = "default";
188 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
196 compatible = "silergy,syr827";
200 regulator-compatible = "fan53555-reg";
201 regulator-name = "vdd_arm";
202 regulator-min-microvolt = <712500>;
203 regulator-max-microvolt = <1500000>;
204 fcs,suspend-voltage-selector = <1>;
207 regulator-initial-state = <3>;
208 regulator-state-mem {
209 regulator-off-in-suspend;
210 regulator-suspend-microvolt = <900000>;
215 compatible = "silergy,syr828";
219 regulator-compatible = "fan53555-reg";
220 regulator-name = "vdd_gpu";
221 regulator-min-microvolt = <712500>;
222 regulator-max-microvolt = <1500000>;
223 fcs,suspend-voltage-selector = <1>;
226 regulator-initial-state = <3>;
227 regulator-state-mem {
228 regulator-on-in-suspend;
229 regulator-suspend-microvolt = <900000>;
233 act8846: act8846@5a {
235 * Note: u-boot ONLY match old compatible,
236 * it's better to add both instances here.
238 compatible = "act,act8846", "active-semi,act8846";
241 system-power-controller;
245 regulator-name = "VCC_DDR";
246 regulator-min-microvolt = <1200000>;
247 regulator-max-microvolt = <1200000>;
252 regulator-name = "VCC_IO";
253 regulator-min-microvolt = <3300000>;
254 regulator-max-microvolt = <3300000>;
259 regulator-name = "VDD_LOG";
260 regulator-min-microvolt = <700000>;
261 regulator-max-microvolt = <1500000>;
266 regulator-name = "VCC_20";
267 regulator-min-microvolt = <2000000>;
268 regulator-max-microvolt = <2000000>;
273 regulator-name = "VCCIO_SD";
274 regulator-min-microvolt = <1800000>;
275 regulator-max-microvolt = <3300000>;
280 regulator-name = "VDD10_LCD";
281 regulator-min-microvolt = <1000000>;
282 regulator-max-microvolt = <1000000>;
287 regulator-name = "VCCA_CODEC";
288 regulator-min-microvolt = <3300000>;
289 regulator-max-microvolt = <3300000>;
294 regulator-name = "VCCA_TP";
295 regulator-min-microvolt = <3300000>;
296 regulator-max-microvolt = <3300000>;
301 regulator-name = "VCCIO_PMU";
302 regulator-min-microvolt = <3300000>;
303 regulator-max-microvolt = <3300000>;
307 act8846_reg10: REG10 {
308 regulator-name = "VDD_10";
309 regulator-min-microvolt = <1000000>;
310 regulator-max-microvolt = <1000000>;
314 act8846_reg11: REG11 {
315 regulator-name = "VCC_18";
316 regulator-min-microvolt = <1800000>;
317 regulator-max-microvolt = <1800000>;
321 act8846_reg12: REG12 {
322 regulator-name = "VCC18_LCD";
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <1800000>;
331 compatible = "rockchip,rk818";
334 clock-output-names = "xin32k", "wifibt_32kin";
335 interrupt-parent = <&gpio0>;
336 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
337 pinctrl-names = "default";
338 pinctrl-0 = <&pmic_int_l>;
339 rockchip,system-power-controller;
343 vcc1-supply = <&vcc_sys>;
344 vcc2-supply = <&vcc_sys>;
345 vcc3-supply = <&vcc_sys>;
346 vcc4-supply = <&vcc_sys>;
347 vcc6-supply = <&vcc_sys>;
348 vcc7-supply = <&vcc_sys>;
349 vcc8-supply = <&vcc_sys>;
350 vcc9-supply = <&vcc33_io>;
353 vdd_logic: DCDC_REG1 {
354 regulator-name = "vdd_logic";
357 regulator-min-microvolt = <750000>;
358 regulator-max-microvolt = <1450000>;
359 regulator-ramp-delay = <6001>;
360 regulator-state-mem {
361 regulator-off-in-suspend;
366 regulator-name = "vdd_gpu";
369 regulator-min-microvolt = <800000>;
370 regulator-max-microvolt = <1250000>;
371 regulator-ramp-delay = <6001>;
372 regulator-state-mem {
373 regulator-on-in-suspend;
374 regulator-suspend-microvolt = <1000000>;
381 regulator-name = "vcc_ddr";
382 regulator-state-mem {
383 regulator-on-in-suspend;
387 vcc33_io: DCDC_REG4 {
390 regulator-min-microvolt = <3300000>;
391 regulator-max-microvolt = <3300000>;
392 regulator-name = "vcc33_io";
393 regulator-state-mem {
394 regulator-on-in-suspend;
395 regulator-suspend-microvolt = <3300000>;
399 vccio_pmu: LDO_REG1 {
402 regulator-min-microvolt = <3300000>;
403 regulator-max-microvolt = <3300000>;
404 regulator-name = "vccio_pmu";
405 regulator-state-mem {
406 regulator-on-in-suspend;
407 regulator-suspend-microvolt = <3300000>;
414 regulator-min-microvolt = <3300000>;
415 regulator-max-microvolt = <3300000>;
416 regulator-name = "vcc_tp";
417 regulator-state-mem {
418 regulator-off-in-suspend;
425 regulator-min-microvolt = <1000000>;
426 regulator-max-microvolt = <1000000>;
427 regulator-name = "vdd_10";
428 regulator-state-mem {
429 regulator-on-in-suspend;
430 regulator-suspend-microvolt = <1000000>;
434 vcc18_lcd: LDO_REG4 {
437 regulator-min-microvolt = <1800000>;
438 regulator-max-microvolt = <1800000>;
439 regulator-name = "vcc18_lcd";
440 regulator-state-mem {
441 regulator-on-in-suspend;
442 regulator-suspend-microvolt = <1800000>;
449 regulator-min-microvolt = <1800000>;
450 regulator-max-microvolt = <3300000>;
451 regulator-name = "vccio_sd";
452 regulator-state-mem {
453 regulator-on-in-suspend;
454 regulator-suspend-microvolt = <3300000>;
458 vdd10_lcd: LDO_REG6 {
461 regulator-min-microvolt = <1000000>;
462 regulator-max-microvolt = <1000000>;
463 regulator-name = "vdd10_lcd";
464 regulator-state-mem {
465 regulator-on-in-suspend;
466 regulator-suspend-microvolt = <1000000>;
473 regulator-min-microvolt = <1800000>;
474 regulator-max-microvolt = <1800000>;
475 regulator-name = "vcc_18";
476 regulator-state-mem {
477 regulator-on-in-suspend;
478 regulator-suspend-microvolt = <1800000>;
482 vcca_codec: LDO_REG8 {
485 regulator-min-microvolt = <3300000>;
486 regulator-max-microvolt = <3300000>;
487 regulator-name = "vcca_codec";
488 regulator-state-mem {
489 regulator-on-in-suspend;
490 regulator-suspend-microvolt = <3300000>;
497 regulator-min-microvolt = <3300000>;
498 regulator-max-microvolt = <3300000>;
499 regulator-name = "vcc_wl";
500 regulator-state-mem {
501 regulator-on-in-suspend;
502 regulator-suspend-microvolt = <3300000>;
506 vcc_lcd: SWITCH_REG {
509 regulator-name = "vcc_lcd";
510 regulator-state-mem {
511 regulator-on-in-suspend;
523 compatible = "goodix,gt911";
525 interrupt-parent = <&gpio0>;
531 compatible = "goodix,gt9xx";
533 touch-gpio = <&gpio0 12 IRQ_TYPE_LEVEL_LOW>;
534 reset-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
552 rockchip,disp-mode = <NO_DUAL>;
553 rockchip,uboot-logo-on = <0>;
558 backlight = <&backlight>;
559 rockchip,mirror = <NO_MIRROR>;
560 rockchip,cabc_mode = <0>;
561 rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
562 power_ctr: power_ctr {
563 rockchip,debug = <0>;
565 rockchip,power_type = <GPIO>;
566 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;/*GPIO_C6 = 22*/
567 rockchip,delay = <10>;
571 rockchip,power_type = <GPIO>;
572 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;/*GPIO_C5 = 21*/
573 rockchip,delay = <10>;
577 rockchip,power_type = <GPIO>;
578 gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
579 rockchip,delay = <5>;
585 pinctrl-names = "lcdc", "sleep";
586 pinctrl-0 = <&lcdc_lcdc>;
587 pinctrl-1 = <&lcdc_gpio>;
605 pmic_int_l: pmic-int-l {
606 rockchip,pins = <RK_GPIO0 1 RK_FUNC_GPIO &pcfg_pull_up>;