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";
55 ext_gmac: external-gmac-clock {
56 compatible = "fixed-clock";
57 clock-frequency = <125000000>;
58 clock-output-names = "ext_gmac";
63 compatible = "gpio-keys";
68 pinctrl-names = "default";
69 pinctrl-0 = <&pwrbtn>;
72 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
74 label = "GPIO Key Power";
75 linux,input-type = <1>;
76 gpio-key,wakeup = <1>;
77 debounce-interval = <100>;
82 compatible = "gpio-ir-receiver";
83 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&ir_int>;
88 vcc_sys: vsys-regulator {
89 compatible = "regulator-fixed";
90 regulator-name = "vcc_sys";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
99 cpu0-supply = <&vdd_cpu>;
109 pinctrl-names = "default";
110 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
118 card-detect-delay = <200>;
119 disable-wp; /* wp not hooked up */
121 pinctrl-names = "default";
122 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
127 phy-supply = <&vcc_lan>;
129 clock_in_out = "input";
130 snps,reset-gpio = <&gpio4 7 0>;
131 snps,reset-active-low;
132 snps,reset-delays-us = <0 10000 1000000>;
133 assigned-clocks = <&cru SCLK_MAC>;
134 assigned-clock-parents = <&ext_gmac>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&rgmii_pins>;
143 ddc-i2c-bus = <&i2c5>;
149 clock-frequency = <400000>;
152 compatible = "rockchip,rk808";
154 interrupt-parent = <&gpio0>;
155 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&pmic_int &global_pwroff>;
158 rockchip,system-power-controller;
161 clock-output-names = "xin32k", "rk808-clkout2";
163 vcc1-supply = <&vcc_sys>;
164 vcc2-supply = <&vcc_sys>;
165 vcc3-supply = <&vcc_sys>;
166 vcc4-supply = <&vcc_sys>;
167 vcc6-supply = <&vcc_sys>;
168 vcc7-supply = <&vcc_sys>;
169 vcc8-supply = <&vcc_18>;
170 vcc9-supply = <&vcc_io>;
171 vcc10-supply = <&vcc_io>;
172 vcc11-supply = <&vcc_sys>;
173 vcc12-supply = <&vcc_io>;
174 vddio-supply = <&vcc_io>;
180 regulator-min-microvolt = <750000>;
181 regulator-max-microvolt = <1350000>;
182 regulator-name = "vdd_arm";
183 regulator-state-mem {
184 regulator-off-in-suspend;
191 regulator-min-microvolt = <850000>;
192 regulator-max-microvolt = <1250000>;
193 regulator-name = "vdd_gpu";
194 regulator-state-mem {
195 regulator-on-in-suspend;
196 regulator-suspend-microvolt = <1000000>;
203 regulator-name = "vcc_ddr";
204 regulator-state-mem {
205 regulator-on-in-suspend;
212 regulator-min-microvolt = <3300000>;
213 regulator-max-microvolt = <3300000>;
214 regulator-name = "vcc_io";
215 regulator-state-mem {
216 regulator-on-in-suspend;
217 regulator-suspend-microvolt = <3300000>;
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
226 regulator-name = "vcc_lan";
227 regulator-state-mem {
228 regulator-on-in-suspend;
229 regulator-suspend-microvolt = <3300000>;
236 regulator-min-microvolt = <3300000>;
237 regulator-max-microvolt = <3300000>;
238 regulator-name = "vccio_sd";
239 regulator-state-mem {
240 regulator-off-in-suspend;
247 regulator-min-microvolt = <1000000>;
248 regulator-max-microvolt = <1000000>;
249 regulator-name = "vdd_10";
250 regulator-state-mem {
251 regulator-on-in-suspend;
252 regulator-suspend-microvolt = <1000000>;
256 vcc18_lcd: LDO_REG4 {
259 regulator-min-microvolt = <1800000>;
260 regulator-max-microvolt = <1800000>;
261 regulator-name = "vcc18_lcd";
262 regulator-state-mem {
263 regulator-on-in-suspend;
264 regulator-suspend-microvolt = <1800000>;
270 regulator-min-microvolt = <1800000>;
271 regulator-max-microvolt = <3300000>;
272 regulator-name = "ldo5";
275 vdd10_lcd: LDO_REG6 {
278 regulator-min-microvolt = <1000000>;
279 regulator-max-microvolt = <1000000>;
280 regulator-name = "vdd10_lcd";
281 regulator-state-mem {
282 regulator-on-in-suspend;
283 regulator-suspend-microvolt = <1000000>;
290 regulator-min-microvolt = <1800000>;
291 regulator-max-microvolt = <1800000>;
292 regulator-name = "vcc_18";
293 regulator-state-mem {
294 regulator-on-in-suspend;
295 regulator-suspend-microvolt = <1800000>;
299 vcca_codec: LDO_REG8 {
302 regulator-min-microvolt = <3300000>;
303 regulator-max-microvolt = <3300000>;
304 regulator-name = "vcca_codec";
305 regulator-state-mem {
306 regulator-on-in-suspend;
307 regulator-suspend-microvolt = <3300000>;
311 vcc_wl: SWITCH_REG1 {
314 regulator-name = "vcc_wl";
315 regulator-state-mem {
316 regulator-on-in-suspend;
320 vcc_lcd: SWITCH_REG2 {
323 regulator-name = "vcc_lcd";
324 regulator-state-mem {
325 regulator-on-in-suspend;
334 clock-frequency = <400000>;
337 compatible = "asahi-kasei,ak8975";
339 interrupt-parent = <&gpio8>;
340 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
341 pinctrl-names = "default";
342 pinctrl-0 = <&comp_int>;
345 l3g4200d: l3g4200d@68 {
346 compatible = "st,l3g4200d-gyro";
347 st,drdy-int-pin = <2>;
351 mma8452: mma8452@1d {
352 compatible = "fsl,mma8452";
354 interrupt-parent = <&gpio8>;
355 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&gsensor_int>;
380 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_up>;
386 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
392 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_up>;
397 gsensor_int: gsensor-int {
398 rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
404 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
410 rockchip,hw-tshut-mode = <0>;
411 rockchip,hw-tshut-polarity = <0>;