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>;
67 compatible = "simple-audio-card";
68 simple-audio-card,format = "i2s";
69 simple-audio-card,name = "rockchip,rt5640-codec";
70 simple-audio-card,mclk-fs = <256>;
71 simple-audio-card,widgets =
72 "Microphone", "Mic Jack",
73 "Headphone", "Headphone Jack";
74 simple-audio-card,routing =
77 "Mic Jack", "MICBIAS1",
79 "Headphone Jack", "HPOL",
80 "Headphone Jack", "HPOR";
81 simple-audio-card,cpu {
82 sound-dai = <&i2s_8ch>;
84 simple-audio-card,codec {
85 sound-dai = <&rt5640>;
89 backlight: backlight {
90 compatible = "pwm-backlight";
91 pwms = <&pwm0 0 25000 PWM_POLARITY_INVERTED>;
95 16 17 18 19 20 21 22 23
96 24 25 26 27 28 29 30 31
97 32 33 34 35 36 37 38 39
98 40 41 42 43 44 45 46 47
99 48 49 50 51 52 53 54 55
100 56 57 58 59 60 61 62 63
101 64 65 66 67 68 69 70 71
102 72 73 74 75 76 77 78 79
103 80 81 82 83 84 85 86 87
104 88 89 90 91 92 93 94 95
105 96 97 98 99 100 101 102 103
106 104 105 106 107 108 109 110 111
107 112 113 114 115 116 117 118 119
108 120 121 122 123 124 125 126 127
109 128 129 130 131 132 133 134 135
110 136 137 138 139 140 141 142 143
111 144 145 146 147 148 149 150 151
112 152 153 154 155 156 157 158 159
113 160 161 162 163 164 165 166 167
114 168 169 170 171 172 173 174 175
115 176 177 178 179 180 181 182 183
116 184 185 186 187 188 189 190 191
117 192 193 194 195 196 197 198 199
118 200 201 202 203 204 205 206 207
119 208 209 210 211 212 213 214 215
120 216 217 218 219 220 221 222 223
121 224 225 226 227 228 229 230 231
122 232 233 234 235 236 237 238 239
123 240 241 242 243 244 245 246 247
124 248 249 250 251 252 253 254 255>;
125 default-brightness-level = <200>;
126 enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
129 rk_key: rockchip-key {
130 compatible = "rockchip,key";
133 io-channels = <&saradc 1>;
138 rockchip,adc_value = <1>;
143 label = "volume down";
144 rockchip,adc_value = <170>;
148 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
157 rockchip,adc_value = <355>;
163 rockchip,adc_value = <746>;
169 rockchip,adc_value = <560>;
175 rockchip,adc_value = <450>;
180 compatible = "regulator-fixed";
181 regulator-name = "vcc_sys";
184 regulator-min-microvolt = <3800000>;
185 regulator-max-microvolt = <3800000>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
202 clock-frequency = <37500000>;
203 clock-freq-min-max = <400000 37500000>;
207 card-detect-delay = <200>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
219 compatible = "silergy,syr827";
223 regulator-compatible = "fan53555-reg";
224 regulator-name = "vdd_arm";
225 regulator-min-microvolt = <712500>;
226 regulator-max-microvolt = <1500000>;
227 fcs,suspend-voltage-selector = <1>;
230 regulator-initial-state = <3>;
231 regulator-state-mem {
232 regulator-off-in-suspend;
233 regulator-suspend-microvolt = <900000>;
238 compatible = "silergy,syr828";
242 regulator-compatible = "fan53555-reg";
243 regulator-name = "vdd_gpu";
244 regulator-min-microvolt = <712500>;
245 regulator-max-microvolt = <1500000>;
246 fcs,suspend-voltage-selector = <1>;
249 regulator-initial-state = <3>;
250 regulator-state-mem {
251 regulator-on-in-suspend;
252 regulator-suspend-microvolt = <900000>;
256 act8846: act8846@5a {
258 * Note: u-boot ONLY match old compatible,
259 * it's better to add both instances here.
261 compatible = "act,act8846", "active-semi,act8846";
264 system-power-controller;
268 regulator-name = "VCC_DDR";
269 regulator-min-microvolt = <1200000>;
270 regulator-max-microvolt = <1200000>;
275 regulator-name = "VCC_IO";
276 regulator-min-microvolt = <3300000>;
277 regulator-max-microvolt = <3300000>;
282 regulator-name = "VDD_LOG";
283 regulator-min-microvolt = <700000>;
284 regulator-max-microvolt = <1500000>;
289 regulator-name = "VCC_20";
290 regulator-min-microvolt = <2000000>;
291 regulator-max-microvolt = <2000000>;
296 regulator-name = "VCCIO_SD";
297 regulator-min-microvolt = <1800000>;
298 regulator-max-microvolt = <3300000>;
303 regulator-name = "VDD10_LCD";
304 regulator-min-microvolt = <1000000>;
305 regulator-max-microvolt = <1000000>;
310 regulator-name = "VCCA_CODEC";
311 regulator-min-microvolt = <3300000>;
312 regulator-max-microvolt = <3300000>;
317 regulator-name = "VCCA_TP";
318 regulator-min-microvolt = <3300000>;
319 regulator-max-microvolt = <3300000>;
324 regulator-name = "VCCIO_PMU";
325 regulator-min-microvolt = <3300000>;
326 regulator-max-microvolt = <3300000>;
330 act8846_reg10: REG10 {
331 regulator-name = "VDD_10";
332 regulator-min-microvolt = <1000000>;
333 regulator-max-microvolt = <1000000>;
337 act8846_reg11: REG11 {
338 regulator-name = "VCC_18";
339 regulator-min-microvolt = <1800000>;
340 regulator-max-microvolt = <1800000>;
344 act8846_reg12: REG12 {
345 regulator-name = "VCC18_LCD";
346 regulator-min-microvolt = <1800000>;
347 regulator-max-microvolt = <1800000>;
354 compatible = "rockchip,rk818";
357 clock-output-names = "xin32k", "wifibt_32kin";
358 interrupt-parent = <&gpio0>;
359 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
360 pinctrl-names = "default";
361 pinctrl-0 = <&pmic_int_l>;
362 rockchip,system-power-controller;
366 vcc1-supply = <&vcc_sys>;
367 vcc2-supply = <&vcc_sys>;
368 vcc3-supply = <&vcc_sys>;
369 vcc4-supply = <&vcc_sys>;
370 vcc6-supply = <&vcc_sys>;
371 vcc7-supply = <&vcc_sys>;
372 vcc8-supply = <&vcc_sys>;
373 vcc9-supply = <&vcc_io>;
376 vdd_logic: DCDC_REG1 {
377 regulator-name = "vdd_logic";
380 regulator-min-microvolt = <750000>;
381 regulator-max-microvolt = <1450000>;
382 regulator-ramp-delay = <6001>;
383 regulator-state-mem {
384 regulator-on-in-suspend;
385 regulator-suspend-microvolt = <1000000>;
390 regulator-name = "vdd_gpu";
393 regulator-min-microvolt = <800000>;
394 regulator-max-microvolt = <1250000>;
395 regulator-ramp-delay = <6001>;
396 regulator-state-mem {
397 regulator-on-in-suspend;
398 regulator-suspend-microvolt = <1000000>;
405 regulator-name = "vcc_ddr";
406 regulator-state-mem {
407 regulator-on-in-suspend;
414 regulator-min-microvolt = <3300000>;
415 regulator-max-microvolt = <3300000>;
416 regulator-name = "vcc_io";
417 regulator-state-mem {
418 regulator-on-in-suspend;
419 regulator-suspend-microvolt = <3300000>;
423 vcca_codec: LDO_REG1 {
426 regulator-min-microvolt = <3300000>;
427 regulator-max-microvolt = <3300000>;
428 regulator-name = "vcca_codec";
429 regulator-state-mem {
430 regulator-on-in-suspend;
431 regulator-suspend-microvolt = <3300000>;
438 regulator-min-microvolt = <3000000>;
439 regulator-max-microvolt = <3000000>;
440 regulator-name = "vcc_tp";
441 regulator-state-mem {
442 regulator-off-in-suspend;
449 regulator-min-microvolt = <1000000>;
450 regulator-max-microvolt = <1000000>;
451 regulator-name = "vdd_10";
452 regulator-state-mem {
453 regulator-on-in-suspend;
454 regulator-suspend-microvolt = <1000000>;
458 vcc18_lcd: LDO_REG4 {
461 regulator-min-microvolt = <1800000>;
462 regulator-max-microvolt = <1800000>;
463 regulator-name = "vcc18_lcd";
464 regulator-state-mem {
465 regulator-on-in-suspend;
466 regulator-suspend-microvolt = <1800000>;
470 vccio_pmu: LDO_REG5 {
473 regulator-min-microvolt = <1800000>;
474 regulator-max-microvolt = <1800000>;
475 regulator-name = "vccio_pmu";
476 regulator-state-mem {
477 regulator-on-in-suspend;
478 regulator-suspend-microvolt = <1800000>;
482 vdd10_lcd: LDO_REG6 {
485 regulator-min-microvolt = <1000000>;
486 regulator-max-microvolt = <1000000>;
487 regulator-name = "vdd10_lcd";
488 regulator-state-mem {
489 regulator-on-in-suspend;
490 regulator-suspend-microvolt = <1000000>;
497 regulator-min-microvolt = <1800000>;
498 regulator-max-microvolt = <1800000>;
499 regulator-name = "vcc_18";
500 regulator-state-mem {
501 regulator-on-in-suspend;
502 regulator-suspend-microvolt = <1800000>;
509 regulator-min-microvolt = <1800000>;
510 regulator-max-microvolt = <3300000>;
511 regulator-name = "vccio_wl";
512 regulator-state-mem {
513 regulator-on-in-suspend;
514 regulator-suspend-microvolt = <3300000>;
521 regulator-min-microvolt = <1800000>;
522 regulator-max-microvolt = <3300000>;
523 regulator-name = "vccio_sd";
524 regulator-state-mem {
525 regulator-on-in-suspend;
526 regulator-suspend-microvolt = <3300000>;
533 regulator-name = "vcc_sd";
534 regulator-state-mem {
535 regulator-on-in-suspend;
547 #sound-dai-cells = <0>;
548 compatible = "realtek,rt5640";
558 compatible = "goodix,gt911";
560 interrupt-parent = <&gpio0>;
566 compatible = "goodix,gt9xx";
568 touch-gpio = <&gpio0 12 IRQ_TYPE_LEVEL_LOW>;
569 reset-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
579 rockchip,i2s-broken-burst-len;
580 rockchip,playback-channels = <8>;
581 rockchip,capture-channels = <2>;
582 #sound-dai-cells = <0>;
595 rockchip,disp-mode = <NO_DUAL>;
596 rockchip,uboot-logo-on = <0>;
601 backlight = <&backlight>;
602 rockchip,mirror = <NO_MIRROR>;
603 rockchip,cabc_mode = <0>;
604 rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
605 power_ctr: power_ctr {
606 rockchip,debug = <0>;
608 rockchip,power_type = <GPIO>;
609 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;/*GPIO_C6 = 22*/
610 rockchip,delay = <10>;
614 rockchip,power_type = <GPIO>;
615 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;/*GPIO_C5 = 21*/
616 rockchip,delay = <10>;
620 rockchip,power_type = <GPIO>;
621 gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
622 rockchip,delay = <5>;
628 pinctrl-names = "lcdc", "sleep";
629 pinctrl-0 = <&lcdc_lcdc>;
630 pinctrl-1 = <&lcdc_gpio>;
648 pmic_int_l: pmic-int-l {
649 rockchip,pins = <RK_GPIO0 1 RK_FUNC_GPIO &pcfg_pull_up>;