2 * Copyright (c) 2014, 2015 Andy Yan <andy.yan@rock-chips.com>
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/input/input.h>
45 #include "rk3288.dtsi"
48 model = "PopMetal-RK3288";
49 compatible = "chipspark,popmetal-rk3288", "rockchip,rk3288";
52 device_type = "memory";
56 ext_gmac: external-gmac-clock {
57 compatible = "fixed-clock";
58 clock-frequency = <125000000>;
59 clock-output-names = "ext_gmac";
64 compatible = "gpio-keys";
67 pinctrl-names = "default";
68 pinctrl-0 = <&pwrbtn>;
71 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_POWER>;
73 label = "GPIO Key Power";
74 linux,input-type = <1>;
76 debounce-interval = <100>;
81 compatible = "gpio-ir-receiver";
82 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&ir_int>;
87 vcc_flash: flash-regulator {
88 compatible = "regulator-fixed";
89 regulator-name = "vcc_flash";
90 regulator-min-microvolt = <1800000>;
91 regulator-max-microvolt = <1800000>;
92 vin-supply = <&vcc_io>;
95 vcc_sd: sdmmc-regulator {
96 compatible = "regulator-fixed";
97 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&sdmmc_pwr>;
100 regulator-name = "vcc_sd";
101 regulator-min-microvolt = <3300000>;
102 regulator-max-microvolt = <3300000>;
103 startup-delay-us = <100000>;
104 vin-supply = <&vcc_io>;
107 vcc_sys: vsys-regulator {
108 compatible = "regulator-fixed";
109 regulator-name = "vcc_sys";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
117 * A PT5128 creates both dovdd_1v8 and vcc28_dvp, controlled
118 * by the dvp_pwr pin.
120 vcc18_dvp: vcc18-dvp-regulator {
121 compatible = "regulator-fixed";
122 regulator-name = "vcc18-dvp";
123 regulator-min-microvolt = <1800000>;
124 regulator-max-microvolt = <1800000>;
125 vin-supply = <&vcc28_dvp>;
128 vcc28_dvp: vcc28-dvp-regulator {
129 compatible = "regulator-fixed";
131 gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&dvp_pwr>;
134 regulator-name = "vcc28_dvp";
135 regulator-min-microvolt = <2800000>;
136 regulator-max-microvolt = <2800000>;
138 vin-supply = <&vcc_io>;
143 cpu0-supply = <&vdd_cpu>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
154 vmmc-supply = <&vcc_io>;
155 vqmmc-supply = <&vcc_flash>;
163 card-detect-delay = <200>;
164 disable-wp; /* wp not hooked up */
166 pinctrl-names = "default";
167 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
168 vmmc-supply = <&vcc_sd>;
169 vqmmc-supply = <&vccio_sd>;
174 phy-supply = <&vcc_lan>;
176 clock_in_out = "input";
177 snps,reset-gpio = <&gpio4 7 0>;
178 snps,reset-active-low;
179 snps,reset-delays-us = <0 10000 1000000>;
180 assigned-clocks = <&cru SCLK_MAC>;
181 assigned-clock-parents = <&ext_gmac>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&rgmii_pins>;
190 ddc-i2c-bus = <&i2c5>;
196 clock-frequency = <400000>;
199 compatible = "rockchip,rk808";
201 interrupt-parent = <&gpio0>;
202 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&pmic_int &global_pwroff>;
205 rockchip,system-power-controller;
208 clock-output-names = "xin32k", "rk808-clkout2";
210 vcc1-supply = <&vcc_sys>;
211 vcc2-supply = <&vcc_sys>;
212 vcc3-supply = <&vcc_sys>;
213 vcc4-supply = <&vcc_sys>;
214 vcc6-supply = <&vcc_sys>;
215 vcc7-supply = <&vcc_sys>;
216 vcc8-supply = <&vcc_18>;
217 vcc9-supply = <&vcc_io>;
218 vcc10-supply = <&vcc_io>;
219 vcc11-supply = <&vcc_sys>;
220 vcc12-supply = <&vcc_io>;
221 vddio-supply = <&vcc_io>;
227 regulator-min-microvolt = <750000>;
228 regulator-max-microvolt = <1350000>;
229 regulator-name = "vdd_arm";
230 regulator-state-mem {
231 regulator-off-in-suspend;
238 regulator-min-microvolt = <850000>;
239 regulator-max-microvolt = <1250000>;
240 regulator-name = "vdd_gpu";
241 regulator-state-mem {
242 regulator-on-in-suspend;
243 regulator-suspend-microvolt = <1000000>;
250 regulator-name = "vcc_ddr";
251 regulator-state-mem {
252 regulator-on-in-suspend;
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
261 regulator-name = "vcc_io";
262 regulator-state-mem {
263 regulator-on-in-suspend;
264 regulator-suspend-microvolt = <3300000>;
271 regulator-min-microvolt = <3300000>;
272 regulator-max-microvolt = <3300000>;
273 regulator-name = "vcc_lan";
274 regulator-state-mem {
275 regulator-on-in-suspend;
276 regulator-suspend-microvolt = <3300000>;
283 regulator-min-microvolt = <3300000>;
284 regulator-max-microvolt = <3300000>;
285 regulator-name = "vccio_sd";
286 regulator-state-mem {
287 regulator-off-in-suspend;
294 regulator-min-microvolt = <1000000>;
295 regulator-max-microvolt = <1000000>;
296 regulator-name = "vdd_10";
297 regulator-state-mem {
298 regulator-on-in-suspend;
299 regulator-suspend-microvolt = <1000000>;
303 vcc18_lcd: LDO_REG4 {
306 regulator-min-microvolt = <1800000>;
307 regulator-max-microvolt = <1800000>;
308 regulator-name = "vcc18_lcd";
309 regulator-state-mem {
310 regulator-on-in-suspend;
311 regulator-suspend-microvolt = <1800000>;
317 regulator-min-microvolt = <1800000>;
318 regulator-max-microvolt = <3300000>;
319 regulator-name = "ldo5";
322 vdd10_lcd: LDO_REG6 {
325 regulator-min-microvolt = <1000000>;
326 regulator-max-microvolt = <1000000>;
327 regulator-name = "vdd10_lcd";
328 regulator-state-mem {
329 regulator-on-in-suspend;
330 regulator-suspend-microvolt = <1000000>;
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
339 regulator-name = "vcc_18";
340 regulator-state-mem {
341 regulator-on-in-suspend;
342 regulator-suspend-microvolt = <1800000>;
349 regulator-min-microvolt = <3300000>;
350 regulator-max-microvolt = <3300000>;
351 regulator-name = "vcca_33";
352 regulator-state-mem {
353 regulator-on-in-suspend;
354 regulator-suspend-microvolt = <3300000>;
358 vccio_wl: SWITCH_REG1 {
361 regulator-name = "vccio_wl";
362 regulator-state-mem {
363 regulator-on-in-suspend;
367 vcc_lcd: SWITCH_REG2 {
370 regulator-name = "vcc_lcd";
371 regulator-state-mem {
372 regulator-on-in-suspend;
381 clock-frequency = <400000>;
384 compatible = "asahi-kasei,ak8975";
386 interrupt-parent = <&gpio8>;
387 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
388 pinctrl-names = "default";
389 pinctrl-0 = <&comp_int>;
392 l3g4200d: l3g4200d@68 {
393 compatible = "st,l3g4200d-gyro";
394 st,drdy-int-pin = <2>;
398 mma8452: mma8452@1d {
399 compatible = "fsl,mma8452";
401 interrupt-parent = <&gpio8>;
402 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
403 pinctrl-names = "default";
404 pinctrl-0 = <&gsensor_int>;
427 audio-supply = <&vcca_33>;
428 bb-supply = <&vcc_io>;
429 dvp-supply = <&vcc18_dvp>;
430 flash0-supply = <&vcc_flash>;
431 flash1-supply = <&vcc_lan>;
432 gpio30-supply = <&vcc_io>;
433 gpio1830-supply = <&vcc_io>;
434 lcdc-supply = <&vcc_io>;
435 sdcard-supply = <&vccio_sd>;
436 wifi-supply = <&vccio_wl>;
442 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_up>;
448 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
454 rockchip,pins = <0 17 RK_FUNC_GPIO &pcfg_pull_none>;
460 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_up>;
465 gsensor_int: gsensor-int {
466 rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
472 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
477 sdmmc_pwr: sdmmc-pwr {
478 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
484 rockchip,hw-tshut-mode = <0>;
485 rockchip,hw-tshut-polarity = <0>;