2 * This file is dual-licensed: you can use it either under the terms
3 * of the GPL or the X11 license, at your option. Note that this dual
4 * licensing only applies to this file, and not this project as a
7 * a) This file is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This file is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
19 * b) Permission is hereby granted, free of charge, to any person
20 * obtaining a copy of this software and associated documentation
21 * files (the "Software"), to deal in the Software without
22 * restriction, including without limitation the rights to use,
23 * copy, modify, merge, publish, distribute, sublicense, and/or
24 * sell copies of the Software, and to permit persons to whom the
25 * Software is furnished to do so, subject to the following
28 * The above copyright notice and this permission notice shall be
29 * included in all copies or substantial portions of the Software.
31 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38 * OTHER DEALINGS IN THE SOFTWARE.
41 #include "rk3288.dtsi"
45 device_type = "memory";
49 ext_gmac: external-gmac-clock {
50 compatible = "fixed-clock";
51 clock-frequency = <125000000>;
52 clock-output-names = "ext_gmac";
57 compatible = "gpio-keys";
60 pinctrl-names = "default";
61 pinctrl-0 = <&pwrbtn>;
64 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
65 label = "GPIO Key Power";
66 linux,input-type = <1>;
68 debounce-interval = <100>;
72 io_domains: io-domains {
73 compatible = "rockchip,rk3288-io-voltage-domain";
74 rockchip,grf = <&grf>;
76 audio-supply = <&vcca_33>;
77 bb-supply = <&vcc_io>;
78 dvp-supply = <&vcc18_dvp>;
79 flash0-supply = <&vcc_flash>;
80 flash1-supply = <&vcc_lan>;
81 gpio30-supply = <&vcc_io>;
82 gpio1830-supply = <&vcc_io>;
83 lcdc-supply = <&vcc_io>;
84 sdcard-supply = <&vccio_sd>;
85 wifi-supply = <&vccio_wl>;
89 compatible = "gpio-ir-receiver";
90 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&ir_int>;
95 vcc_flash: flash-regulator {
96 compatible = "regulator-fixed";
97 regulator-name = "vcc_flash";
98 regulator-min-microvolt = <1800000>;
99 regulator-max-microvolt = <1800000>;
100 vin-supply = <&vcc_io>;
103 vcc_sd: sdmmc-regulator {
104 compatible = "regulator-fixed";
105 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&sdmmc_pwr>;
108 regulator-name = "vcc_sd";
109 regulator-min-microvolt = <3300000>;
110 regulator-max-microvolt = <3300000>;
111 startup-delay-us = <100000>;
112 vin-supply = <&vcc_io>;
115 vcc_sys: vsys-regulator {
116 compatible = "regulator-fixed";
117 regulator-name = "vcc_sys";
118 regulator-min-microvolt = <5000000>;
119 regulator-max-microvolt = <5000000>;
125 * A PT5128 creates both dovdd_1v8 and vcc28_dvp, controlled
126 * by the dvp_pwr pin.
128 vcc18_dvp: vcc18-dvp-regulator {
129 compatible = "regulator-fixed";
130 regulator-name = "vcc18-dvp";
131 regulator-min-microvolt = <1800000>;
132 regulator-max-microvolt = <1800000>;
133 vin-supply = <&vcc28_dvp>;
136 vcc28_dvp: vcc28-dvp-regulator {
137 compatible = "regulator-fixed";
139 gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&dvp_pwr>;
142 regulator-name = "vcc28_dvp";
143 regulator-min-microvolt = <2800000>;
144 regulator-max-microvolt = <2800000>;
146 vin-supply = <&vcc_io>;
149 vcc5v0_host: usb-host-regulator {
150 compatible = "regulator-fixed";
152 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&host_vbus_drv>;
155 regulator-name = "vcc5v0_host";
156 regulator-min-microvolt = <5000000>;
157 regulator-max-microvolt = <5000000>;
163 cpu0-supply = <&vdd_cpu>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
174 vmmc-supply = <&vcc_io>;
175 vqmmc-supply = <&vcc_flash>;
183 card-detect-delay = <200>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
188 vmmc-supply = <&vcc_sd>;
189 vqmmc-supply = <&vccio_sd>;
194 phy-supply = <&vcc_lan>;
196 clock_in_out = "input";
197 snps,reset-gpio = <&gpio4 7 0>;
198 snps,reset-active-low;
199 snps,reset-delays-us = <0 10000 1000000>;
200 assigned-clocks = <&cru SCLK_MAC>;
201 assigned-clock-parents = <&ext_gmac>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&rgmii_pins>;
210 ddc-i2c-bus = <&i2c5>;
216 clock-frequency = <400000>;
219 compatible = "rockchip,rk808";
221 interrupt-parent = <&gpio0>;
222 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&pmic_int &global_pwroff>;
225 rockchip,system-power-controller;
228 clock-output-names = "xin32k", "rk808-clkout2";
230 vcc1-supply = <&vcc_sys>;
231 vcc2-supply = <&vcc_sys>;
232 vcc3-supply = <&vcc_sys>;
233 vcc4-supply = <&vcc_sys>;
234 vcc6-supply = <&vcc_sys>;
235 vcc7-supply = <&vcc_sys>;
236 vcc8-supply = <&vcc_18>;
237 vcc9-supply = <&vcc_io>;
238 vcc10-supply = <&vcc_io>;
239 vcc11-supply = <&vcc_sys>;
240 vcc12-supply = <&vcc_io>;
241 vddio-supply = <&vcc_io>;
247 regulator-min-microvolt = <750000>;
248 regulator-max-microvolt = <1350000>;
249 regulator-name = "vdd_arm";
250 regulator-state-mem {
251 regulator-off-in-suspend;
258 regulator-min-microvolt = <850000>;
259 regulator-max-microvolt = <1250000>;
260 regulator-name = "vdd_gpu";
261 regulator-state-mem {
262 regulator-on-in-suspend;
263 regulator-suspend-microvolt = <1000000>;
270 regulator-name = "vcc_ddr";
271 regulator-state-mem {
272 regulator-on-in-suspend;
279 regulator-min-microvolt = <3300000>;
280 regulator-max-microvolt = <3300000>;
281 regulator-name = "vcc_io";
282 regulator-state-mem {
283 regulator-on-in-suspend;
284 regulator-suspend-microvolt = <3300000>;
291 regulator-min-microvolt = <3300000>;
292 regulator-max-microvolt = <3300000>;
293 regulator-name = "vcc_lan";
294 regulator-state-mem {
295 regulator-on-in-suspend;
296 regulator-suspend-microvolt = <3300000>;
303 regulator-min-microvolt = <3300000>;
304 regulator-max-microvolt = <3300000>;
305 regulator-name = "vccio_sd";
306 regulator-state-mem {
307 regulator-off-in-suspend;
314 regulator-min-microvolt = <1000000>;
315 regulator-max-microvolt = <1000000>;
316 regulator-name = "vdd_10";
317 regulator-state-mem {
318 regulator-on-in-suspend;
319 regulator-suspend-microvolt = <1000000>;
323 vcc18_lcd: LDO_REG4 {
326 regulator-min-microvolt = <1800000>;
327 regulator-max-microvolt = <1800000>;
328 regulator-name = "vcc18_lcd";
329 regulator-state-mem {
330 regulator-on-in-suspend;
331 regulator-suspend-microvolt = <1800000>;
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <3300000>;
339 regulator-name = "ldo5";
342 vdd10_lcd: LDO_REG6 {
345 regulator-min-microvolt = <1000000>;
346 regulator-max-microvolt = <1000000>;
347 regulator-name = "vdd10_lcd";
348 regulator-state-mem {
349 regulator-on-in-suspend;
350 regulator-suspend-microvolt = <1000000>;
357 regulator-min-microvolt = <1800000>;
358 regulator-max-microvolt = <1800000>;
359 regulator-name = "vcc_18";
360 regulator-state-mem {
361 regulator-on-in-suspend;
362 regulator-suspend-microvolt = <1800000>;
369 regulator-min-microvolt = <3300000>;
370 regulator-max-microvolt = <3300000>;
371 regulator-name = "vcca_33";
372 regulator-state-mem {
373 regulator-on-in-suspend;
374 regulator-suspend-microvolt = <3300000>;
378 vccio_wl: SWITCH_REG1 {
381 regulator-name = "vccio_wl";
382 regulator-state-mem {
383 regulator-on-in-suspend;
387 vcc_lcd: SWITCH_REG2 {
390 regulator-name = "vcc_lcd";
391 regulator-state-mem {
392 regulator-on-in-suspend;
401 clock-frequency = <400000>;
404 compatible = "asahi-kasei,ak8975";
406 interrupt-parent = <&gpio8>;
407 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
408 pinctrl-names = "default";
409 pinctrl-0 = <&comp_int>;
412 l3g4200d: l3g4200d@68 {
413 compatible = "st,l3g4200d-gyro";
414 st,drdy-int-pin = <2>;
418 mma8452: mma8452@1d {
419 compatible = "fsl,mma8452";
421 interrupt-parent = <&gpio8>;
422 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
423 pinctrl-names = "default";
424 pinctrl-0 = <&gsensor_int>;
447 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_up>;
453 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
459 rockchip,pins = <0 17 RK_FUNC_GPIO &pcfg_pull_none>;
465 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_up>;
470 gsensor_int: gsensor-int {
471 rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
477 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
482 sdmmc_pwr: sdmmc-pwr {
483 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
488 host_vbus_drv: host-vbus-drv {
489 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
495 rockchip,hw-tshut-mode = <0>;
496 rockchip,hw-tshut-polarity = <0>;
537 vbus-supply = <&vcc5v0_host>;