2 * Copyright (c) 2016 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 "rk3188.dtsi"
48 model = "Rockchip PX3-EVB";
49 compatible = "rockchip,px3-evb", "rockchip,px3", "rockchip,rk3188";
52 stdout-path = "serial2:115200n8";
56 reg = <0x60000000 0x80000000>;
57 device_type = "memory";
61 compatible = "gpio-keys";
65 gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_POWER>;
67 label = "GPIO Key Power";
68 linux,input-type = <1>;
70 debounce-interval = <100>;
74 vcc_sys: vsys-regulator {
75 compatible = "regulator-fixed";
76 regulator-name = "vsys";
77 regulator-min-microvolt = <5000000>;
78 regulator-max-microvolt = <5000000>;
84 cpu0-supply = <&vdd_cpu>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
101 compatible = "bosch,bma250";
103 interrupt-parent = <&gpio0>;
104 interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
110 clock-frequency = <400000>;
113 compatible = "rockchip,rk818";
115 interrupt-parent = <&gpio0>;
116 interrupts = <RK_PB3 IRQ_TYPE_LEVEL_LOW>;
117 rockchip,system-power-controller;
120 clock-output-names = "xin32k", "rk808-clkout2";
122 vcc1-supply = <&vcc_sys>;
123 vcc2-supply = <&vcc_sys>;
124 vcc3-supply = <&vcc_sys>;
125 vcc4-supply = <&vcc_sys>;
126 vcc6-supply = <&vcc_sys>;
127 vcc7-supply = <&vcc_sys>;
128 vcc8-supply = <&vcc_io>;
129 vcc9-supply = <&vcc_io>;
135 regulator-min-microvolt = <750000>;
136 regulator-max-microvolt = <1350000>;
137 regulator-name = "vdd_arm";
138 regulator-state-mem {
139 regulator-off-in-suspend;
146 regulator-min-microvolt = <850000>;
147 regulator-max-microvolt = <1250000>;
148 regulator-name = "vdd_gpu";
149 regulator-state-mem {
150 regulator-on-in-suspend;
151 regulator-suspend-microvolt = <1000000>;
158 regulator-name = "vcc_ddr";
159 regulator-state-mem {
160 regulator-on-in-suspend;
167 regulator-min-microvolt = <3300000>;
168 regulator-max-microvolt = <3300000>;
169 regulator-name = "vcc_io";
170 regulator-state-mem {
171 regulator-on-in-suspend;
172 regulator-suspend-microvolt = <3300000>;
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
179 regulator-name = "vcc_cif";
182 vcc_jetta33: LDO_REG2 {
185 regulator-min-microvolt = <3300000>;
186 regulator-max-microvolt = <3300000>;
187 regulator-name = "vcc_jetta33";
193 regulator-min-microvolt = <1000000>;
194 regulator-max-microvolt = <1000000>;
195 regulator-name = "vdd_10";
196 regulator-state-mem {
197 regulator-on-in-suspend;
198 regulator-suspend-microvolt = <1000000>;
203 regulator-min-microvolt = <1800000>;
204 regulator-max-microvolt = <1800000>;
205 regulator-name = "lvds_12";
209 regulator-min-microvolt = <1800000>;
210 regulator-max-microvolt = <3300000>;
211 regulator-name = "lvds_25";
215 regulator-min-microvolt = <1000000>;
216 regulator-max-microvolt = <1000000>;
217 regulator-name = "cif_18";
221 regulator-min-microvolt = <1800000>;
222 regulator-max-microvolt = <3300000>;
223 regulator-name = "vcc_sd";
224 regulator-state-mem {
225 regulator-on-in-suspend;
226 regulator-suspend-microvolt = <3300000>;
231 regulator-min-microvolt = <1800000>;
232 regulator-max-microvolt = <3300000>;
233 regulator-name = "wl_18";
236 lcd_33: SWITCH_REG1 {
237 regulator-name = "lcd_33";
245 gsl1680: touchscreen@40 {
246 compatible = "silead,gsl1680";
248 interrupt-parent = <&gpio1>;
249 interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
250 power-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
251 touchscreen-size-x = <800>;
252 touchscreen-size-y = <1280>;
253 silead,max-fingers = <5>;
259 pinctrl-names = "default";
260 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
261 vmmc-supply = <&vcc_sd>;
270 pcfg_output_low: pcfg-output-low {
275 host_vbus_drv: host-vbus-drv {
276 rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
278 otg_vbus_drv: otg-vbus-drv {
279 rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;