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.
43 #include <dt-bindings/pwm/pwm.h>
44 #include "rk3399.dtsi"
47 compatible = "rockchip,tb", "rockchip,rk3399";
50 compatible = "pwm-regulator";
51 pwms = <&pwm2 0 1000>;
52 regulator-name = "vdd_log";
53 regulator-min-microvolt = <800000>;
54 regulator-max-microvolt = <1400000>;
59 vdd_center: vdd-center {
60 compatible = "pwm-regulator";
61 pwms = <&pwm3 0 1000>;
62 regulator-name = "vdd_center";
63 regulator-min-microvolt = <800000>;
64 regulator-max-microvolt = <1400000>;
69 vcc3v3_sys: vcc3v3-sys {
70 compatible = "regulator-fixed";
71 regulator-name = "vcc3v3_sys";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
78 backlight: backlight {
79 compatible = "pwm-backlight";
80 pwms = <&pwm0 0 25000 PWM_POLARITY_INVERTED>;
84 16 17 18 19 20 21 22 23
85 24 25 26 27 28 29 30 31
86 32 33 34 35 36 37 38 39
87 40 41 42 43 44 45 46 47
88 48 49 50 51 52 53 54 55
89 56 57 58 59 60 61 62 63
90 64 65 66 67 68 69 70 71
91 72 73 74 75 76 77 78 79
92 80 81 82 83 84 85 86 87
93 88 89 90 91 92 93 94 95
94 96 97 98 99 100 101 102 103
95 104 105 106 107 108 109 110 111
96 112 113 114 115 116 117 118 119
97 120 121 122 123 124 125 126 127
98 128 129 130 131 132 133 134 135
99 136 137 138 139 140 141 142 143
100 144 145 146 147 148 149 150 151
101 152 153 154 155 156 157 158 159
102 160 161 162 163 164 165 166 167
103 168 169 170 171 172 173 174 175
104 176 177 178 179 180 181 182 183
105 184 185 186 187 188 189 190 191
106 192 193 194 195 196 197 198 199
107 200 201 202 203 204 205 206 207
108 208 209 210 211 212 213 214 215
109 216 217 218 219 220 221 222 223
110 224 225 226 227 228 229 230 231
111 232 233 234 235 236 237 238 239
112 240 241 242 243 244 245 246 247
113 248 249 250 251 252 253 254 255>;
114 default-brightness-level = <200>;
115 enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
118 ext_gmac: external-gmac-clock {
119 compatible = "fixed-clock";
120 clock-frequency = <125000000>;
121 clock-output-names = "ext_gmac";
125 vcc_phy: vcc-phy-regulator {
126 compatible = "regulator-fixed";
127 regulator-name = "vcc_phy";
133 compatible = "rockchip,rk3399-io-voltage-domain";
134 rockchip,grf = <&grf>;
136 bt656-supply = <&vcc1v8_dvp>;
137 audio-supply = <&vcca1v8_codec>;
138 sdmmc-supply = <&vcc_sd>;
139 gpio1830-supply = <&vcc_3v0>;
143 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
144 rockchip,grf = <&pmugrf>;
146 pmu1830-supply = <&vcc1v8_pmu>;
151 clock-frequency = <37500000>;
152 clock-freq-min-max = <400000 37500000>;
159 pinctrl-names = "default";
160 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
165 clock-frequency = <37500000>;
166 clock-freq-min-max = <200000 37500000>;
172 keep-power-in-suspend;
173 //mmc-pwrseq = <&sdio_pwrseq>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
197 compatible = "rockchip,rk808";
199 interrupt-parent = <&gpio1>;
200 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&pmic_int_l>;
203 rockchip,system-power-controller;
206 clock-output-names = "xin32k", "rk808-clkout2";
208 vcc1-supply = <&vcc3v3_sys>;
209 vcc2-supply = <&vcc3v3_sys>;
210 vcc3-supply = <&vcc3v3_sys>;
211 vcc4-supply = <&vcc3v3_sys>;
212 vcc6-supply = <&vcc3v3_sys>;
213 vcc7-supply = <&vcc3v3_sys>;
214 vcc8-supply = <&vcc3v3_sys>;
215 vcc9-supply = <&vcc3v3_sys>;
216 vcc10-supply = <&vcc3v3_sys>;
217 vcc11-supply = <&vcc3v3_sys>;
218 vcc12-supply = <&vcc3v3_sys>;
219 vddio-supply = <&vcc1v8_pmu>;
222 vdd_cpu_b: DCDC_REG1 {
225 regulator-min-microvolt = <750000>;
226 regulator-max-microvolt = <1350000>;
227 regulator-name = "vdd_cpu_b";
228 regulator-state-mem {
229 regulator-off-in-suspend;
233 vdd_cpu_l: DCDC_REG2 {
236 regulator-min-microvolt = <750000>;
237 regulator-max-microvolt = <1350000>;
238 regulator-name = "vdd_cpu_l";
239 regulator-state-mem {
240 regulator-off-in-suspend;
247 regulator-name = "vcc_ddr";
248 regulator-state-mem {
249 regulator-on-in-suspend;
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <1800000>;
258 regulator-name = "vcc_1v8";
259 regulator-state-mem {
260 regulator-on-in-suspend;
261 regulator-suspend-microvolt = <1800000>;
265 vcc1v8_dvp: LDO_REG1 {
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
270 regulator-name = "vcc1v8_dvp";
271 regulator-state-mem {
272 regulator-on-in-suspend;
273 regulator-suspend-microvolt = <1800000>;
277 vcc3v0_tp: LDO_REG2 {
280 regulator-min-microvolt = <3000000>;
281 regulator-max-microvolt = <3000000>;
282 regulator-name = "vcc3v0_tp";
283 regulator-state-mem {
284 regulator-off-in-suspend;
288 vcc1v8_pmu: LDO_REG3 {
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-name = "vcc1v8_pmu";
294 regulator-state-mem {
295 regulator-on-in-suspend;
296 regulator-suspend-microvolt = <1800000>;
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <3300000>;
305 regulator-name = "vcc_sd";
306 regulator-state-mem {
307 regulator-on-in-suspend;
308 regulator-suspend-microvolt = <3300000>;
312 vcca3v0_codec: LDO_REG5 {
315 regulator-min-microvolt = <3000000>;
316 regulator-max-microvolt = <3000000>;
317 regulator-name = "vcca3v0_codec";
318 regulator-state-mem {
319 regulator-on-in-suspend;
320 regulator-suspend-microvolt = <3000000>;
327 regulator-min-microvolt = <1500000>;
328 regulator-max-microvolt = <1500000>;
329 regulator-name = "vcc_1v5";
330 regulator-state-mem {
331 regulator-on-in-suspend;
332 regulator-suspend-microvolt = <1500000>;
336 vcca1v8_codec: LDO_REG7 {
339 regulator-min-microvolt = <1800000>;
340 regulator-max-microvolt = <1800000>;
341 regulator-name = "vcca1v8_codec";
342 regulator-state-mem {
343 regulator-on-in-suspend;
344 regulator-suspend-microvolt = <1800000>;
351 regulator-min-microvolt = <3000000>;
352 regulator-max-microvolt = <3000000>;
353 regulator-name = "vcc_3v0";
354 regulator-state-mem {
355 regulator-on-in-suspend;
356 regulator-suspend-microvolt = <3000000>;
360 vcc3v3_s3: SWITCH_REG1 {
363 regulator-name = "vcc3v3_s3";
364 regulator-state-mem {
365 regulator-on-in-suspend;
369 vcc3v3_s0: SWITCH_REG2 {
372 regulator-name = "vcc3v3_s0";
373 regulator-state-mem {
374 regulator-on-in-suspend;
390 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
391 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
420 cpu-supply = <&vdd_cpu_l>;
424 cpu-supply = <&vdd_cpu_l>;
428 cpu-supply = <&vdd_cpu_l>;
432 cpu-supply = <&vdd_cpu_l>;
436 cpu-supply = <&vdd_cpu_b>;
440 cpu-supply = <&vdd_cpu_b>;
444 phy-supply = <&vcc_phy>;
446 clock_in_out = "input";
447 snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
448 snps,reset-active-low;
449 snps,reset-delays-us = <0 10000 50000>;
450 assigned-clocks = <&cru SCLK_MAC>;
451 assigned-clock-parents = <&ext_gmac>;
452 pinctrl-names = "default";
453 pinctrl-0 = <&rgmii_pins>;