2 * Copyright (c) 2016 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.
44 #include <dt-bindings/pwm/pwm.h>
45 #include "rk3366.dtsi"
48 model = "Rockchip SDK tb board";
49 compatible = "rockchip,tb", "rockchip,rk3366";
52 bootargs = "console=uart,mmio32,0xff690000";
56 compatible = "rockchip,ion";
61 reg = <0x00000000 0x02000000>;
68 backlight: backlight {
69 compatible = "pwm-backlight";
70 pwms = <&pwm0 0 25000 PWM_POLARITY_INVERTED>;
74 16 17 18 19 20 21 22 23
75 24 25 26 27 28 29 30 31
76 32 33 34 35 36 37 38 39
77 40 41 42 43 44 45 46 47
78 48 49 50 51 52 53 54 55
79 56 57 58 59 60 61 62 63
80 64 65 66 67 68 69 70 71
81 72 73 74 75 76 77 78 79
82 80 81 82 83 84 85 86 87
83 88 89 90 91 92 93 94 95
84 96 97 98 99 100 101 102 103
85 104 105 106 107 108 109 110 111
86 112 113 114 115 116 117 118 119
87 120 121 122 123 124 125 126 127
88 128 129 130 131 132 133 134 135
89 136 137 138 139 140 141 142 143
90 144 145 146 147 148 149 150 151
91 152 153 154 155 156 157 158 159
92 160 161 162 163 164 165 166 167
93 168 169 170 171 172 173 174 175
94 176 177 178 179 180 181 182 183
95 184 185 186 187 188 189 190 191
96 192 193 194 195 196 197 198 199
97 200 201 202 203 204 205 206 207
98 208 209 210 211 212 213 214 215
99 216 217 218 219 220 221 222 223
100 224 225 226 227 228 229 230 231
101 232 233 234 235 236 237 238 239
102 240 241 242 243 244 245 246 247
103 248 249 250 251 252 253 254 255>;
104 default-brightness-level = <200>;
105 enable-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
108 rk_key: rockchip-key {
109 compatible = "rockchip,key";
112 io-channels = <&saradc 1>;
117 rockchip,adc_value = <1>;
122 label = "volume down";
123 rockchip,adc_value = <170>;
127 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
136 rockchip,adc_value = <355>;
142 rockchip,adc_value = <746>;
148 rockchip,adc_value = <560>;
154 rockchip,adc_value = <450>;
159 compatible = "regulator-fixed";
160 regulator-name = "vcc_sys";
163 regulator-min-microvolt = <3800000>;
164 regulator-max-microvolt = <3800000>;
167 ext_gmac: external-gmac-clock {
168 compatible = "fixed-clock";
169 clock-frequency = <125000000>;
170 clock-output-names = "ext_gmac";
174 vcc_phy: vcc-phy-regulator {
175 compatible = "regulator-fixed";
177 gpio = <&gpio0 24 GPIO_ACTIVE_HIGH>;
178 pinctrl-names = "default";
179 pinctrl-0 = <ð_phy_pwr>;
180 regulator-name = "vcc_phy";
187 clock-frequency = <100000000>;
188 clock-freq-min-max = <400000 100000000>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
201 clock-frequency = <37500000>;
202 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>;
216 clock-frequency = <50000000>;
217 clock-freq-min-max = <200000 50000000>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&sdio_bus4 &sdio_cmd &sdio_clk>;
236 regulator-name = "vdd_arm";
237 compatible = "silergy,syr827";
240 regulator-compatible = "fan53555-reg";
241 regulator-min-microvolt = <712500>;
242 regulator-max-microvolt = <1500000>;
243 fcs,suspend-voltage-selector = <1>;
246 regulator-initial-state = <3>;
247 regulator-state-mem {
248 regulator-on-in-suspend;
249 regulator-suspend-microvolt = <900000>;
254 compatible = "rockchip,rk818";
257 clock-output-names = "xin32k", "wifibt_32kin";
258 interrupt-parent = <&gpio0>;
259 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
260 pinctrl-names = "default";
261 pinctrl-0 = <&pmic_int_l>;
262 rockchip,system-power-controller;
266 vcc1-supply = <&vcc_sys>;
267 vcc2-supply = <&vcc_sys>;
268 vcc3-supply = <&vcc_sys>;
269 vcc4-supply = <&vcc_sys>;
270 vcc6-supply = <&vcc_sys>;
271 vcc7-supply = <&vcc_sys>;
272 vcc8-supply = <&vcc_sys>;
273 vcc9-supply = <&vcc_io>;
276 vdd_logic: DCDC_REG1 {
277 regulator-name = "vdd_logic";
280 regulator-min-microvolt = <750000>;
281 regulator-max-microvolt = <1450000>;
282 regulator-ramp-delay = <6001>;
283 regulator-state-mem {
284 regulator-on-in-suspend;
285 regulator-suspend-microvolt = <1000000>;
290 regulator-name = "vdd_gpu";
293 regulator-min-microvolt = <800000>;
294 regulator-max-microvolt = <1250000>;
295 regulator-ramp-delay = <6001>;
296 regulator-state-mem {
297 regulator-on-in-suspend;
298 regulator-suspend-microvolt = <1000000>;
303 regulator-name = "vcc_ddr";
306 regulator-state-mem {
307 regulator-on-in-suspend;
312 regulator-name = "vcc_io";
315 regulator-min-microvolt = <3300000>;
316 regulator-max-microvolt = <3300000>;
317 regulator-state-mem {
318 regulator-on-in-suspend;
319 regulator-suspend-microvolt = <3300000>;
323 vcca_codec: LDO_REG1 {
324 regulator-name = "vcca_codec";
327 regulator-min-microvolt = <3300000>;
328 regulator-max-microvolt = <3300000>;
329 regulator-state-mem {
330 regulator-on-in-suspend;
331 regulator-suspend-microvolt = <3300000>;
336 regulator-name = "vcc_tp";
339 regulator-min-microvolt = <3000000>;
340 regulator-max-microvolt = <3000000>;
341 regulator-state-mem {
342 regulator-on-in-suspend;
343 regulator-suspend-microvolt = <3000000>;
348 regulator-name = "vdd_10";
351 regulator-min-microvolt = <1000000>;
352 regulator-max-microvolt = <1000000>;
353 regulator-state-mem {
354 regulator-on-in-suspend;
355 regulator-suspend-microvolt = <1000000>;
359 vcc18_lcd: LDO_REG4 {
360 regulator-name = "vcc18_lcd";
363 regulator-min-microvolt = <1800000>;
364 regulator-max-microvolt = <1800000>;
365 regulator-state-mem {
366 regulator-on-in-suspend;
367 regulator-suspend-microvolt = <1800000>;
371 vccio_pmu: LDO_REG5 {
372 regulator-name = "vccio_pmu";
375 regulator-min-microvolt = <1800000>;
376 regulator-max-microvolt = <1800000>;
377 regulator-state-mem {
378 regulator-on-in-suspend;
379 regulator-suspend-microvolt = <1800000>;
383 vdd10_lcd: LDO_REG6 {
384 regulator-name = "vdd10_lcd";
387 regulator-min-microvolt = <1000000>;
388 regulator-max-microvolt = <1000000>;
389 regulator-state-mem {
390 regulator-on-in-suspend;
391 regulator-suspend-microvolt = <1000000>;
396 regulator-name = "vcc_18";
399 regulator-min-microvolt = <1800000>;
400 regulator-max-microvolt = <1800000>;
401 regulator-state-mem {
402 regulator-on-in-suspend;
403 regulator-suspend-microvolt = <1800000>;
408 regulator-name = "vccio_wl";
411 regulator-min-microvolt = <1800000>;
412 regulator-max-microvolt = <3300000>;
413 regulator-state-mem {
414 regulator-on-in-suspend;
415 regulator-suspend-microvolt = <3300000>;
420 regulator-name = "vccio_sd";
423 regulator-min-microvolt = <1800000>;
424 regulator-max-microvolt = <3300000>;
425 regulator-state-mem {
426 regulator-on-in-suspend;
427 regulator-suspend-microvolt = <3300000>;
432 regulator-name = "vcc_sd";
435 regulator-state-mem {
436 regulator-on-in-suspend;
453 rockchip,disp-mode = <DUAL>;
454 rockchip,uboot-logo-on = <0>;
459 #include <dt-bindings/display/screen-timing/lcd-b101ew05.dtsi>
463 pinctrl-names = "lcdc", "sleep";
464 pinctrl-0 = <&lcdc_lcdc>;
465 pinctrl-1 = <&lcdc_gpio>;
471 rockchip,prop = <EXTEND>;
472 rockchip,mirror = <NO_MIRROR>;
473 rockchip,cabc_mode = <0>;
474 rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
483 rockchip,prop = <PRMRY>;
484 backlight = <&backlight>;
485 rockchip,mirror = <NO_MIRROR>;
486 rockchip,cabc_mode = <0>;
487 rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
488 power_ctr: power_ctr {
489 rockchip,debug = <0>;
491 rockchip,power_type = <GPIO>;
492 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; /* GPIO_B4 = 12 */
493 rockchip,delay = <10>;
497 rockchip,power_type = <GPIO>;
498 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; /* GPIO_D0 = 24 */
499 rockchip,delay = <10>;
502 /* lcd_rst: lcd-rst {
503 * rockchip,power_type = <GPIO>;
504 * gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
505 * rockchip,delay = <5>;
517 pmic_int_l: pmic-int-l {
518 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
524 phy_regulator = "vcc_phy";
526 clock_in_out = "input";
527 snps,reset-gpio = <&gpio2 15 0>;
528 snps,reset-active-low;
529 snps,reset-delays-us = <0 10000 1000000>;
530 assigned-clocks = <&cru SCLK_MAC>;
531 assigned-clock-parents = <&ext_gmac>;
532 pinctrl-names = "default";
533 pinctrl-0 = <&rgmii_pins>;