ARM: dts: rockchip: add missing device_type = "memory" to boards
[deliverable/linux.git] / arch / arm / boot / dts / rk3288-popmetal.dts
1 /*
2 * Copyright (c) 2014, 2015 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
45 #include "rk3288.dtsi"
46
47 / {
48 model = "PopMetal-RK3288";
49 compatible = "chipspark,popmetal-rk3288", "rockchip,rk3288";
50
51 memory{
52 device_type = "memory";
53 reg = <0 0x80000000>;
54 };
55
56 ext_gmac: external-gmac-clock {
57 compatible = "fixed-clock";
58 clock-frequency = <125000000>;
59 clock-output-names = "ext_gmac";
60 #clock-cells = <0>;
61 };
62
63 gpio-keys {
64 compatible = "gpio-keys";
65 #address-cells = <1>;
66 #size-cells = <0>;
67 autorepeat;
68
69 pinctrl-names = "default";
70 pinctrl-0 = <&pwrbtn>;
71
72 button@0 {
73 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
74 linux,code = <116>;
75 label = "GPIO Key Power";
76 linux,input-type = <1>;
77 gpio-key,wakeup = <1>;
78 debounce-interval = <100>;
79 };
80 };
81
82 ir: ir-receiver {
83 compatible = "gpio-ir-receiver";
84 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&ir_int>;
87 };
88
89 vcc_sys: vsys-regulator {
90 compatible = "regulator-fixed";
91 regulator-name = "vcc_sys";
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
94 regulator-always-on;
95 regulator-boot-on;
96 };
97 };
98
99 &cpu0 {
100 cpu0-supply = <&vdd_cpu>;
101 };
102
103 &emmc {
104 broken-cd;
105 bus-width = <8>;
106 cap-mmc-highspeed;
107 disable-wp;
108 non-removable;
109 num-slots = <1>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
112 status = "okay";
113 };
114
115 &sdmmc {
116 bus-width = <4>;
117 cap-mmc-highspeed;
118 cap-sd-highspeed;
119 card-detect-delay = <200>;
120 disable-wp; /* wp not hooked up */
121 num-slots = <1>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
124 status = "okay";
125 };
126
127 &gmac {
128 phy-supply = <&vcc_lan>;
129 phy-mode = "rgmii";
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>;
138 tx_delay = <0x30>;
139 rx_delay = <0x10>;
140 status = "ok";
141 };
142
143 &hdmi {
144 ddc-i2c-bus = <&i2c5>;
145 status = "okay";
146 };
147
148 &i2c0 {
149 status = "okay";
150 clock-frequency = <400000>;
151
152 rk808: pmic@1b {
153 compatible = "rockchip,rk808";
154 reg = <0x1b>;
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;
160 wakeup-source;
161 #clock-cells = <1>;
162 clock-output-names = "xin32k", "rk808-clkout2";
163
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>;
176
177 regulators {
178 vdd_cpu: DCDC_REG1 {
179 regulator-always-on;
180 regulator-boot-on;
181 regulator-min-microvolt = <750000>;
182 regulator-max-microvolt = <1350000>;
183 regulator-name = "vdd_arm";
184 regulator-state-mem {
185 regulator-off-in-suspend;
186 };
187 };
188
189 vdd_gpu: DCDC_REG2 {
190 regulator-always-on;
191 regulator-boot-on;
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>;
198 };
199 };
200
201 vcc_ddr: DCDC_REG3 {
202 regulator-always-on;
203 regulator-boot-on;
204 regulator-name = "vcc_ddr";
205 regulator-state-mem {
206 regulator-on-in-suspend;
207 };
208 };
209
210 vcc_io: DCDC_REG4 {
211 regulator-always-on;
212 regulator-boot-on;
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>;
219 };
220 };
221
222 vcc_lan: LDO_REG1 {
223 regulator-always-on;
224 regulator-boot-on;
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>;
231 };
232 };
233
234 vccio_sd: LDO_REG2 {
235 regulator-always-on;
236 regulator-boot-on;
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
239 regulator-name = "vccio_sd";
240 regulator-state-mem {
241 regulator-off-in-suspend;
242 };
243 };
244
245 vdd_10: LDO_REG3 {
246 regulator-always-on;
247 regulator-boot-on;
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>;
254 };
255 };
256
257 vcc18_lcd: LDO_REG4 {
258 regulator-always-on;
259 regulator-boot-on;
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>;
266 };
267 };
268
269 ldo5: LDO_REG5 {
270 regulator-always-on;
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <3300000>;
273 regulator-name = "ldo5";
274 };
275
276 vdd10_lcd: LDO_REG6 {
277 regulator-always-on;
278 regulator-boot-on;
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>;
285 };
286 };
287
288 vcc_18: LDO_REG7 {
289 regulator-always-on;
290 regulator-boot-on;
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>;
297 };
298 };
299
300 vcca_codec: LDO_REG8 {
301 regulator-always-on;
302 regulator-boot-on;
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>;
309 };
310 };
311
312 vcc_wl: SWITCH_REG1 {
313 regulator-always-on;
314 regulator-boot-on;
315 regulator-name = "vcc_wl";
316 regulator-state-mem {
317 regulator-on-in-suspend;
318 };
319 };
320
321 vcc_lcd: SWITCH_REG2 {
322 regulator-always-on;
323 regulator-boot-on;
324 regulator-name = "vcc_lcd";
325 regulator-state-mem {
326 regulator-on-in-suspend;
327 };
328 };
329 };
330 };
331 };
332
333 &i2c1 {
334 status = "okay";
335 clock-frequency = <400000>;
336
337 ak8963: ak8963@0d {
338 compatible = "asahi-kasei,ak8975";
339 reg = <0x0d>;
340 interrupt-parent = <&gpio8>;
341 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
342 pinctrl-names = "default";
343 pinctrl-0 = <&comp_int>;
344 };
345
346 l3g4200d: l3g4200d@68 {
347 compatible = "st,l3g4200d-gyro";
348 st,drdy-int-pin = <2>;
349 reg = <0x6b>;
350 };
351
352 mma8452: mma8452@1d {
353 compatible = "fsl,mma8452";
354 reg = <0x1d>;
355 interrupt-parent = <&gpio8>;
356 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
357 pinctrl-names = "default";
358 pinctrl-0 = <&gsensor_int>;
359 };
360 };
361
362 &i2c2 {
363 status = "okay";
364 };
365
366 &i2c3 {
367 status = "okay";
368 };
369
370 &i2c4 {
371 status = "okay";
372 };
373
374 &i2c5 {
375 status = "okay";
376 };
377
378 &pinctrl {
379 ak8963 {
380 comp_int: comp-int {
381 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_up>;
382 };
383 };
384
385 buttons {
386 pwrbtn: pwrbtn {
387 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
388 };
389 };
390
391 ir {
392 ir_int: ir-int {
393 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_up>;
394 };
395 };
396
397 mma8452 {
398 gsensor_int: gsensor-int {
399 rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
400 };
401 };
402
403 pmic {
404 pmic_int: pmic-int {
405 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
406 };
407 };
408 };
409
410 &tsadc {
411 rockchip,hw-tshut-mode = <0>;
412 rockchip,hw-tshut-polarity = <0>;
413 status = "okay";
414 };
415
416 &vopb {
417 status = "okay";
418 };
419
420 &vopb_mmu {
421 status = "okay";
422 };
423
424 &vopl {
425 status = "okay";
426 };
427
428 &vopl_mmu {
429 status = "okay";
430 };
431
432 &uart0 {
433 status = "okay";
434 };
435
436 &uart1 {
437 status = "okay";
438 };
439
440 &uart2 {
441 status = "okay";
442 };
443
444 &uart3 {
445 status = "okay";
446 };
447
448 &uart4 {
449 status = "okay";
450 };
451
452 &usbphy {
453 status = "okay";
454 };
This page took 0.045265 seconds and 5 git commands to generate.