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.
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";
69 pinctrl-names = "default";
70 pinctrl-0 = <&pwrbtn>;
73 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
75 label = "GPIO Key Power";
76 linux,input-type = <1>;
77 gpio-key,wakeup = <1>;
78 debounce-interval = <100>;
83 compatible = "gpio-ir-receiver";
84 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&ir_int>;
89 vcc_sys: vsys-regulator {
90 compatible = "regulator-fixed";
91 regulator-name = "vcc_sys";
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
100 cpu0-supply = <&vdd_cpu>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
119 card-detect-delay = <200>;
120 disable-wp; /* wp not hooked up */
122 pinctrl-names = "default";
123 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
128 phy-supply = <&vcc_lan>;
130 clock_in_out = "input";
131 snps,reset-gpio = <&gpio4 7 0>;
132 snps,reset-active-low;
133 snps,reset-delays-us = <0 10000 1000000>;
134 assigned-clocks = <&cru SCLK_MAC>;
135 assigned-clock-parents = <&ext_gmac>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&rgmii_pins>;
144 ddc-i2c-bus = <&i2c5>;
150 clock-frequency = <400000>;
153 compatible = "rockchip,rk808";
155 interrupt-parent = <&gpio0>;
156 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
157 pinctrl-names = "default";
158 pinctrl-0 = <&pmic_int &global_pwroff>;
159 rockchip,system-power-controller;
162 clock-output-names = "xin32k", "rk808-clkout2";
164 vcc1-supply = <&vcc_sys>;
165 vcc2-supply = <&vcc_sys>;
166 vcc3-supply = <&vcc_sys>;
167 vcc4-supply = <&vcc_sys>;
168 vcc6-supply = <&vcc_sys>;
169 vcc7-supply = <&vcc_sys>;
170 vcc8-supply = <&vcc_18>;
171 vcc9-supply = <&vcc_io>;
172 vcc10-supply = <&vcc_io>;
173 vcc11-supply = <&vcc_sys>;
174 vcc12-supply = <&vcc_io>;
175 vddio-supply = <&vcc_io>;
181 regulator-min-microvolt = <750000>;
182 regulator-max-microvolt = <1350000>;
183 regulator-name = "vdd_arm";
184 regulator-state-mem {
185 regulator-off-in-suspend;
192 regulator-min-microvolt = <850000>;
193 regulator-max-microvolt = <1250000>;
194 regulator-name = "vdd_gpu";
195 regulator-state-mem {
196 regulator-on-in-suspend;
197 regulator-suspend-microvolt = <1000000>;
204 regulator-name = "vcc_ddr";
205 regulator-state-mem {
206 regulator-on-in-suspend;
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
215 regulator-name = "vcc_io";
216 regulator-state-mem {
217 regulator-on-in-suspend;
218 regulator-suspend-microvolt = <3300000>;
225 regulator-min-microvolt = <3300000>;
226 regulator-max-microvolt = <3300000>;
227 regulator-name = "vcc_lan";
228 regulator-state-mem {
229 regulator-on-in-suspend;
230 regulator-suspend-microvolt = <3300000>;
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
239 regulator-name = "vccio_sd";
240 regulator-state-mem {
241 regulator-off-in-suspend;
248 regulator-min-microvolt = <1000000>;
249 regulator-max-microvolt = <1000000>;
250 regulator-name = "vdd_10";
251 regulator-state-mem {
252 regulator-on-in-suspend;
253 regulator-suspend-microvolt = <1000000>;
257 vcc18_lcd: LDO_REG4 {
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <1800000>;
262 regulator-name = "vcc18_lcd";
263 regulator-state-mem {
264 regulator-on-in-suspend;
265 regulator-suspend-microvolt = <1800000>;
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <3300000>;
273 regulator-name = "ldo5";
276 vdd10_lcd: LDO_REG6 {
279 regulator-min-microvolt = <1000000>;
280 regulator-max-microvolt = <1000000>;
281 regulator-name = "vdd10_lcd";
282 regulator-state-mem {
283 regulator-on-in-suspend;
284 regulator-suspend-microvolt = <1000000>;
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-name = "vcc_18";
294 regulator-state-mem {
295 regulator-on-in-suspend;
296 regulator-suspend-microvolt = <1800000>;
300 vcca_codec: LDO_REG8 {
303 regulator-min-microvolt = <3300000>;
304 regulator-max-microvolt = <3300000>;
305 regulator-name = "vcca_codec";
306 regulator-state-mem {
307 regulator-on-in-suspend;
308 regulator-suspend-microvolt = <3300000>;
312 vcc_wl: SWITCH_REG1 {
315 regulator-name = "vcc_wl";
316 regulator-state-mem {
317 regulator-on-in-suspend;
321 vcc_lcd: SWITCH_REG2 {
324 regulator-name = "vcc_lcd";
325 regulator-state-mem {
326 regulator-on-in-suspend;
335 clock-frequency = <400000>;
338 compatible = "asahi-kasei,ak8975";
340 interrupt-parent = <&gpio8>;
341 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
342 pinctrl-names = "default";
343 pinctrl-0 = <&comp_int>;
346 l3g4200d: l3g4200d@68 {
347 compatible = "st,l3g4200d-gyro";
348 st,drdy-int-pin = <2>;
352 mma8452: mma8452@1d {
353 compatible = "fsl,mma8452";
355 interrupt-parent = <&gpio8>;
356 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
357 pinctrl-names = "default";
358 pinctrl-0 = <&gsensor_int>;
381 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_up>;
387 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
393 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_up>;
398 gsensor_int: gsensor-int {
399 rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
405 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
411 rockchip,hw-tshut-mode = <0>;
412 rockchip,hw-tshut-polarity = <0>;