Merge tag 'docs-4.10-2' of git://git.lwn.net/linux
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / rk3188-px3-evb.dts
1 /*
2  * Copyright (c) 2016 Andy Yan <andy.yan@rock-chips.com>
3  *
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
7  * whole.
8  *
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.
13  *
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.
18  *
19  * Or, alternatively,
20  *
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
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
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.
41  */
42
43 /dts-v1/;
44 #include <dt-bindings/input/input.h>
45 #include "rk3188.dtsi"
46
47 / {
48         model = "Rockchip PX3-EVB";
49         compatible = "rockchip,px3-evb", "rockchip,px3", "rockchip,rk3188";
50
51         chosen {
52                 stdout-path = "serial2:115200n8";
53         };
54
55         memory@60000000 {
56                 reg = <0x60000000 0x80000000>;
57                 device_type = "memory";
58         };
59
60         gpio-keys {
61                 compatible = "gpio-keys";
62                 autorepeat;
63
64                 power {
65                         gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
66                         linux,code = <KEY_POWER>;
67                         label = "GPIO Key Power";
68                         linux,input-type = <1>;
69                         wakeup-source;
70                         debounce-interval = <100>;
71                 };
72         };
73
74         vcc_sys: vsys-regulator {
75                 compatible = "regulator-fixed";
76                 regulator-name = "vsys";
77                 regulator-min-microvolt = <5000000>;
78                 regulator-max-microvolt = <5000000>;
79                 regulator-boot-on;
80         };
81 };
82
83 &cpu0 {
84         cpu0-supply = <&vdd_cpu>;
85 };
86
87 &emmc {
88         bus-width = <8>;
89         cap-mmc-highspeed;
90         disable-wp;
91         non-removable;
92         num-slots = <1>;
93         pinctrl-names = "default";
94         pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
95         status = "okay";
96 };
97
98 &i2c0 {
99         status = "okay";
100
101         accelerometer@18 {
102                 compatible = "bosch,bma250";
103                 reg = <0x18>;
104                 interrupt-parent = <&gpio0>;
105                 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
106         };
107 };
108
109 &i2c1 {
110         status = "okay";
111         clock-frequency = <400000>;
112
113         rk808: pmic@1c {
114                 compatible = "rockchip,rk818";
115                 reg = <0x1c>;
116                 interrupt-parent = <&gpio0>;
117                 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
118                 rockchip,system-power-controller;
119                 wakeup-source;
120                 #clock-cells = <1>;
121                 clock-output-names = "xin32k", "rk808-clkout2";
122
123                 vcc1-supply = <&vcc_sys>;
124                 vcc2-supply = <&vcc_sys>;
125                 vcc3-supply = <&vcc_sys>;
126                 vcc4-supply = <&vcc_sys>;
127                 vcc6-supply = <&vcc_sys>;
128                 vcc7-supply = <&vcc_sys>;
129                 vcc8-supply = <&vcc_io>;
130                 vcc9-supply = <&vcc_io>;
131
132                 regulators {
133                         vdd_cpu: DCDC_REG1 {
134                                 regulator-always-on;
135                                 regulator-boot-on;
136                                 regulator-min-microvolt = <750000>;
137                                 regulator-max-microvolt = <1350000>;
138                                 regulator-name = "vdd_arm";
139                                 regulator-state-mem {
140                                         regulator-off-in-suspend;
141                                 };
142                         };
143
144                         vdd_gpu: DCDC_REG2 {
145                                 regulator-always-on;
146                                 regulator-boot-on;
147                                 regulator-min-microvolt = <850000>;
148                                 regulator-max-microvolt = <1250000>;
149                                 regulator-name = "vdd_gpu";
150                                 regulator-state-mem {
151                                         regulator-on-in-suspend;
152                                         regulator-suspend-microvolt = <1000000>;
153                                 };
154                         };
155
156                         vcc_ddr: DCDC_REG3 {
157                                 regulator-always-on;
158                                 regulator-boot-on;
159                                 regulator-name = "vcc_ddr";
160                                 regulator-state-mem {
161                                         regulator-on-in-suspend;
162                                 };
163                         };
164
165                         vcc_io: DCDC_REG4 {
166                                 regulator-always-on;
167                                 regulator-boot-on;
168                                 regulator-min-microvolt = <3300000>;
169                                 regulator-max-microvolt = <3300000>;
170                                 regulator-name = "vcc_io";
171                                 regulator-state-mem {
172                                         regulator-on-in-suspend;
173                                         regulator-suspend-microvolt = <3300000>;
174                                 };
175                         };
176
177                         vcc_cif: LDO_REG1 {
178                                  regulator-min-microvolt = <3300000>;
179                                  regulator-max-microvolt = <3300000>;
180                                  regulator-name = "vcc_cif";
181                         };
182
183                         vcc_jetta33: LDO_REG2 {
184                                 regulator-always-on;
185                                 regulator-boot-on;
186                                 regulator-min-microvolt = <3300000>;
187                                 regulator-max-microvolt = <3300000>;
188                                 regulator-name = "vcc_jetta33";
189                         };
190
191                         vdd_10: LDO_REG3 {
192                                 regulator-always-on;
193                                 regulator-boot-on;
194                                 regulator-min-microvolt = <1000000>;
195                                 regulator-max-microvolt = <1000000>;
196                                 regulator-name = "vdd_10";
197                                 regulator-state-mem {
198                                         regulator-on-in-suspend;
199                                         regulator-suspend-microvolt = <1000000>;
200                                 };
201                         };
202
203                         lvds_12: LDO_REG4 {
204                                 regulator-min-microvolt = <1800000>;
205                                 regulator-max-microvolt = <1800000>;
206                                 regulator-name = "lvds_12";
207                         };
208
209                         lvds_25: LDO_REG5 {
210                                 regulator-min-microvolt = <1800000>;
211                                 regulator-max-microvolt = <3300000>;
212                                 regulator-name = "lvds_25";
213                         };
214
215                         cif_18: LDO_REG6 {
216                                 regulator-min-microvolt = <1000000>;
217                                 regulator-max-microvolt = <1000000>;
218                                 regulator-name = "cif_18";
219                         };
220
221                         vcc_sd: LDO_REG7 {
222                                 regulator-min-microvolt = <1800000>;
223                                 regulator-max-microvolt = <3300000>;
224                                 regulator-name = "vcc_sd";
225                                 regulator-state-mem {
226                                         regulator-on-in-suspend;
227                                         regulator-suspend-microvolt = <3300000>;
228                                 };
229                         };
230
231                         wl_18: LDO_REG8 {
232                                 regulator-min-microvolt = <1800000>;
233                                 regulator-max-microvolt = <3300000>;
234                                 regulator-name = "wl_18";
235                         };
236
237                         lcd_33: SWITCH_REG1 {
238                                 regulator-name = "lcd_33";
239                         };
240                 };
241         };
242
243 };
244
245 &i2c2 {
246         gsl1680: touchscreen@40 {
247                 compatible = "silead,gsl1680";
248                 reg = <0x40>;
249                 interrupt-parent = <&gpio1>;
250                 interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
251                 power-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
252                 touchscreen-size-x = <800>;
253                 touchscreen-size-y = <1280>;
254                 silead,max-fingers = <5>;
255         };
256 };
257
258 &mmc0 {
259         num-slots = <1>;
260         status = "okay";
261         pinctrl-names = "default";
262         pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
263         vmmc-supply = <&vcc_sd>;
264
265         bus-width = <4>;
266         cap-mmc-highspeed;
267         cap-sd-highspeed;
268         disable-wp;
269 };
270
271 &pinctrl {
272         pcfg_output_low: pcfg-output-low {
273                 output-low;
274         };
275
276         usb {
277                 host_vbus_drv: host-vbus-drv {
278                         rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
279                 };
280                 otg_vbus_drv: otg-vbus-drv {
281                         rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;
282                 };
283         };
284 };
285
286 &pwm1 {
287         status = "okay";
288 };
289
290 &pwm2 {
291         status = "okay";
292 };
293
294 &pwm3 {
295         status = "okay";
296 };
297
298 &uart0 {
299         status = "okay";
300 };
301
302 &uart1 {
303         status = "okay";
304 };
305
306 &uart2 {
307         status = "okay";
308 };
309
310 &uart3 {
311         status = "okay";
312 };
313
314 &usbphy {
315         status = "okay";
316 };
317
318 &usb_host {
319         status = "okay";
320 };
321
322 &usb_otg {
323         status = "okay";
324 };
325
326 &wdt {
327         status = "okay";
328 };