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>;
80 io_domains: io-domains {
81 compatible = "rockchip,rk3288-io-voltage-domain";
82 rockchip,grf = <&grf>;
84 audio-supply = <&vcca_33>;
85 bb-supply = <&vcc_io>;
86 dvp-supply = <&vcc18_dvp>;
87 flash0-supply = <&vcc_flash>;
88 flash1-supply = <&vcc_lan>;
89 gpio30-supply = <&vcc_io>;
90 gpio1830-supply = <&vcc_io>;
91 lcdc-supply = <&vcc_io>;
92 sdcard-supply = <&vccio_sd>;
93 wifi-supply = <&vccio_wl>;
97 compatible = "gpio-ir-receiver";
98 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&ir_int>;
103 vcc_flash: flash-regulator {
104 compatible = "regulator-fixed";
105 regulator-name = "vcc_flash";
106 regulator-min-microvolt = <1800000>;
107 regulator-max-microvolt = <1800000>;
108 vin-supply = <&vcc_io>;
111 vcc_sd: sdmmc-regulator {
112 compatible = "regulator-fixed";
113 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&sdmmc_pwr>;
116 regulator-name = "vcc_sd";
117 regulator-min-microvolt = <3300000>;
118 regulator-max-microvolt = <3300000>;
119 startup-delay-us = <100000>;
120 vin-supply = <&vcc_io>;
123 vcc_sys: vsys-regulator {
124 compatible = "regulator-fixed";
125 regulator-name = "vcc_sys";
126 regulator-min-microvolt = <5000000>;
127 regulator-max-microvolt = <5000000>;
133 * A PT5128 creates both dovdd_1v8 and vcc28_dvp, controlled
134 * by the dvp_pwr pin.
136 vcc18_dvp: vcc18-dvp-regulator {
137 compatible = "regulator-fixed";
138 regulator-name = "vcc18-dvp";
139 regulator-min-microvolt = <1800000>;
140 regulator-max-microvolt = <1800000>;
141 vin-supply = <&vcc28_dvp>;
144 vcc28_dvp: vcc28-dvp-regulator {
145 compatible = "regulator-fixed";
147 gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&dvp_pwr>;
150 regulator-name = "vcc28_dvp";
151 regulator-min-microvolt = <2800000>;
152 regulator-max-microvolt = <2800000>;
154 vin-supply = <&vcc_io>;
159 cpu0-supply = <&vdd_cpu>;
168 pinctrl-names = "default";
169 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
170 vmmc-supply = <&vcc_io>;
171 vqmmc-supply = <&vcc_flash>;
179 card-detect-delay = <200>;
180 disable-wp; /* wp not hooked up */
182 pinctrl-names = "default";
183 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
184 vmmc-supply = <&vcc_sd>;
185 vqmmc-supply = <&vccio_sd>;
190 phy-supply = <&vcc_lan>;
192 clock_in_out = "input";
193 snps,reset-gpio = <&gpio4 7 0>;
194 snps,reset-active-low;
195 snps,reset-delays-us = <0 10000 1000000>;
196 assigned-clocks = <&cru SCLK_MAC>;
197 assigned-clock-parents = <&ext_gmac>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&rgmii_pins>;
206 ddc-i2c-bus = <&i2c5>;
212 clock-frequency = <400000>;
215 compatible = "rockchip,rk808";
217 interrupt-parent = <&gpio0>;
218 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
219 pinctrl-names = "default";
220 pinctrl-0 = <&pmic_int &global_pwroff>;
221 rockchip,system-power-controller;
224 clock-output-names = "xin32k", "rk808-clkout2";
226 vcc1-supply = <&vcc_sys>;
227 vcc2-supply = <&vcc_sys>;
228 vcc3-supply = <&vcc_sys>;
229 vcc4-supply = <&vcc_sys>;
230 vcc6-supply = <&vcc_sys>;
231 vcc7-supply = <&vcc_sys>;
232 vcc8-supply = <&vcc_18>;
233 vcc9-supply = <&vcc_io>;
234 vcc10-supply = <&vcc_io>;
235 vcc11-supply = <&vcc_sys>;
236 vcc12-supply = <&vcc_io>;
237 vddio-supply = <&vcc_io>;
243 regulator-min-microvolt = <750000>;
244 regulator-max-microvolt = <1350000>;
245 regulator-name = "vdd_arm";
246 regulator-state-mem {
247 regulator-off-in-suspend;
254 regulator-min-microvolt = <850000>;
255 regulator-max-microvolt = <1250000>;
256 regulator-name = "vdd_gpu";
257 regulator-state-mem {
258 regulator-on-in-suspend;
259 regulator-suspend-microvolt = <1000000>;
266 regulator-name = "vcc_ddr";
267 regulator-state-mem {
268 regulator-on-in-suspend;
275 regulator-min-microvolt = <3300000>;
276 regulator-max-microvolt = <3300000>;
277 regulator-name = "vcc_io";
278 regulator-state-mem {
279 regulator-on-in-suspend;
280 regulator-suspend-microvolt = <3300000>;
287 regulator-min-microvolt = <3300000>;
288 regulator-max-microvolt = <3300000>;
289 regulator-name = "vcc_lan";
290 regulator-state-mem {
291 regulator-on-in-suspend;
292 regulator-suspend-microvolt = <3300000>;
299 regulator-min-microvolt = <3300000>;
300 regulator-max-microvolt = <3300000>;
301 regulator-name = "vccio_sd";
302 regulator-state-mem {
303 regulator-off-in-suspend;
310 regulator-min-microvolt = <1000000>;
311 regulator-max-microvolt = <1000000>;
312 regulator-name = "vdd_10";
313 regulator-state-mem {
314 regulator-on-in-suspend;
315 regulator-suspend-microvolt = <1000000>;
319 vcc18_lcd: LDO_REG4 {
322 regulator-min-microvolt = <1800000>;
323 regulator-max-microvolt = <1800000>;
324 regulator-name = "vcc18_lcd";
325 regulator-state-mem {
326 regulator-on-in-suspend;
327 regulator-suspend-microvolt = <1800000>;
333 regulator-min-microvolt = <1800000>;
334 regulator-max-microvolt = <3300000>;
335 regulator-name = "ldo5";
338 vdd10_lcd: LDO_REG6 {
341 regulator-min-microvolt = <1000000>;
342 regulator-max-microvolt = <1000000>;
343 regulator-name = "vdd10_lcd";
344 regulator-state-mem {
345 regulator-on-in-suspend;
346 regulator-suspend-microvolt = <1000000>;
353 regulator-min-microvolt = <1800000>;
354 regulator-max-microvolt = <1800000>;
355 regulator-name = "vcc_18";
356 regulator-state-mem {
357 regulator-on-in-suspend;
358 regulator-suspend-microvolt = <1800000>;
365 regulator-min-microvolt = <3300000>;
366 regulator-max-microvolt = <3300000>;
367 regulator-name = "vcca_33";
368 regulator-state-mem {
369 regulator-on-in-suspend;
370 regulator-suspend-microvolt = <3300000>;
374 vccio_wl: SWITCH_REG1 {
377 regulator-name = "vccio_wl";
378 regulator-state-mem {
379 regulator-on-in-suspend;
383 vcc_lcd: SWITCH_REG2 {
386 regulator-name = "vcc_lcd";
387 regulator-state-mem {
388 regulator-on-in-suspend;
397 clock-frequency = <400000>;
400 compatible = "asahi-kasei,ak8975";
402 interrupt-parent = <&gpio8>;
403 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
404 pinctrl-names = "default";
405 pinctrl-0 = <&comp_int>;
408 l3g4200d: l3g4200d@68 {
409 compatible = "st,l3g4200d-gyro";
410 st,drdy-int-pin = <2>;
414 mma8452: mma8452@1d {
415 compatible = "fsl,mma8452";
417 interrupt-parent = <&gpio8>;
418 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
419 pinctrl-names = "default";
420 pinctrl-0 = <&gsensor_int>;
443 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_up>;
449 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
455 rockchip,pins = <0 17 RK_FUNC_GPIO &pcfg_pull_none>;
461 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_up>;
466 gsensor_int: gsensor-int {
467 rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
473 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
478 sdmmc_pwr: sdmmc-pwr {
479 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
485 rockchip,hw-tshut-mode = <0>;
486 rockchip,hw-tshut-polarity = <0>;