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