blob: f9fbb03158081b63050e2c6180513ddc97c2fda8 [file] [log] [blame]
Pavel Macheka4d4b152013-08-13 15:36:36 +02001/*
2 * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz>
Aaro Koskinenc3580bc2014-02-09 14:12:36 +02003 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi>
Pavel Macheka4d4b152013-08-13 15:36:36 +02004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 (or later) as
7 * published by the Free Software Foundation.
8 */
9
10/dts-v1/;
11
Tony Lindgrenf2e2c9d2013-12-06 14:20:17 -080012#include "omap34xx-hs.dtsi"
Sebastian Reichel3fdb7712014-05-06 15:14:28 +020013#include <dt-bindings/input/input.h>
Pavel Macheka4d4b152013-08-13 15:36:36 +020014
15/ {
16 model = "Nokia N900";
Aaro Koskinenc3580bc2014-02-09 14:12:36 +020017 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
Pavel Macheka4d4b152013-08-13 15:36:36 +020018
19 cpus {
20 cpu@0 {
21 cpu0-supply = <&vcc>;
22 };
23 };
24
25 memory {
26 device_type = "memory";
27 reg = <0x80000000 0x10000000>; /* 256 MB */
28 };
29
Sebastian Reichel3931c8392013-10-23 00:49:34 +020030 gpio_keys {
31 compatible = "gpio-keys";
32
33 camera_lens_cover {
34 label = "Camera Lens Cover";
35 gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
36 linux,input-type = <5>; /* EV_SW */
37 linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
38 gpio-key,wakeup;
39 };
40
41 camera_focus {
42 label = "Camera Focus";
43 gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
44 linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
45 gpio-key,wakeup;
46 };
47
48 camera_capture {
49 label = "Camera Capture";
50 gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
51 linux,code = <0xd4>; /* KEY_CAMERA */
52 gpio-key,wakeup;
53 };
54
55 lock_button {
56 label = "Lock Button";
57 gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
58 linux,code = <0x98>; /* KEY_SCREENLOCK */
59 gpio-key,wakeup;
60 };
61
62 keypad_slide {
63 label = "Keypad Slide";
64 gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
65 linux,input-type = <5>; /* EV_SW */
66 linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
67 gpio-key,wakeup;
68 };
69
70 proximity_sensor {
71 label = "Proximity Sensor";
72 gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
73 linux,input-type = <5>; /* EV_SW */
74 linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
75 };
76 };
77
Sebastian Reichele17337a2014-01-11 22:17:02 +010078 isp1704: isp1704 {
79 compatible = "nxp,isp1704";
80 nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
81 usb-phy = <&usb2_phy>;
82 };
Tomi Valkeinen11334202013-12-17 09:33:33 +020083
84 tv: connector {
85 compatible = "composite-connector";
86 label = "tv";
87
88 port {
89 tv_connector_in: endpoint {
90 remote-endpoint = <&venc_out>;
91 };
92 };
93 };
Sebastian Reichelf7d0f2a2014-04-28 16:07:27 +020094
95 sound: n900-audio {
96 compatible = "nokia,n900-audio";
97
98 nokia,cpu-dai = <&mcbsp2>;
99 nokia,audio-codec = <&tlv320aic3x>, <&tlv320aic3x_aux>;
100 nokia,headphone-amplifier = <&tpa6130a2>;
101
102 tvout-selection-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; /* 40 */
103 jack-detection-gpios = <&gpio6 17 GPIO_ACTIVE_HIGH>; /* 177 */
104 eci-switch-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* 182 */
105 speaker-amplifier-gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>;
106 };
Pavel Macheka4d4b152013-08-13 15:36:36 +0200107};
108
Sebastian Reichelac888a82013-10-23 00:49:30 +0200109&omap3_pmx_core {
110 pinctrl-names = "default";
111
Sebastian Reichel7a89eec2013-10-23 00:49:32 +0200112 uart2_pins: pinmux_uart2_pins {
113 pinctrl-single,pins = <
114 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */
115 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */
116 >;
117 };
118
119 uart3_pins: pinmux_uart3_pins {
120 pinctrl-single,pins = <
121 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */
122 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */
123 >;
124 };
125
Sebastian Reichelac888a82013-10-23 00:49:30 +0200126 i2c1_pins: pinmux_i2c1_pins {
127 pinctrl-single,pins = <
128 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
129 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
130 >;
131 };
132
133 i2c2_pins: pinmux_i2c2_pins {
134 pinctrl-single,pins = <
135 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
136 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
137 >;
138 };
139
140 i2c3_pins: pinmux_i2c3_pins {
141 pinctrl-single,pins = <
142 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
143 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
144 >;
145 };
Sebastian Reichelf1751cf2013-10-23 00:49:33 +0200146
Sebastian Reichelc1ad2202014-03-13 22:59:55 +0100147 mcspi4_pins: pinmux_mcspi4_pins {
148 pinctrl-single,pins = <
149 0x15c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_clk */
150 0x162 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_somi */
151 0x160 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_simo */
152 0x166 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_cs0 */
153 >;
154 };
155
Sebastian Reichelf1751cf2013-10-23 00:49:33 +0200156 mmc1_pins: pinmux_mmc1_pins {
157 pinctrl-single,pins = <
158 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */
159 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd */
160 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0 */
161 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */
162 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */
163 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */
164 >;
165 };
Sebastian Reicheld1e6f512013-10-23 00:49:40 +0200166
Tony Lindgrenedd5eb42013-11-25 14:23:45 -0800167 mmc2_pins: pinmux_mmc2_pins {
168 pinctrl-single,pins = <
169 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
170 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */
171 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */
172 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */
173 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */
174 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */
175 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat4 */
176 0x136 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat5 */
177 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat6 */
178 0x13a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat7 */
179 >;
180 };
181
Tomi Valkeinen11334202013-12-17 09:33:33 +0200182 acx565akm_pins: pinmux_acx565akm_pins {
Sebastian Reicheld1e6f512013-10-23 00:49:40 +0200183 pinctrl-single,pins = <
184 0x0d4 (PIN_OUTPUT | MUX_MODE4) /* RX51_LCD_RESET_GPIO */
185 >;
186 };
Tomi Valkeinen11334202013-12-17 09:33:33 +0200187
188 dss_sdi_pins: pinmux_dss_sdi_pins {
189 pinctrl-single,pins = <
190 0x0c0 (PIN_OUTPUT | MUX_MODE1) /* dss_data10.sdi_dat1n */
191 0x0c2 (PIN_OUTPUT | MUX_MODE1) /* dss_data11.sdi_dat1p */
192 0x0c4 (PIN_OUTPUT | MUX_MODE1) /* dss_data12.sdi_dat2n */
193 0x0c6 (PIN_OUTPUT | MUX_MODE1) /* dss_data13.sdi_dat2p */
194
195 0x0d8 (PIN_OUTPUT | MUX_MODE1) /* dss_data22.sdi_clkp */
196 0x0da (PIN_OUTPUT | MUX_MODE1) /* dss_data23.sdi_clkn */
197 >;
198 };
Sebastian Reichelc1ad2202014-03-13 22:59:55 +0100199
200 wl1251_pins: pinmux_wl1251 {
201 pinctrl-single,pins = <
202 0x0ce (PIN_OUTPUT | MUX_MODE4) /* gpio 87 => wl1251 enable */
203 0x05a (PIN_INPUT | MUX_MODE4) /* gpio 42 => wl1251 irq */
204 >;
205 };
Sebastian Reichelac888a82013-10-23 00:49:30 +0200206};
207
Pavel Macheka4d4b152013-08-13 15:36:36 +0200208&i2c1 {
Sebastian Reichelac888a82013-10-23 00:49:30 +0200209 pinctrl-names = "default";
210 pinctrl-0 = <&i2c1_pins>;
211
Pavel Macheka4d4b152013-08-13 15:36:36 +0200212 clock-frequency = <2200000>;
213
214 twl: twl@48 {
215 reg = <0x48>;
216 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
217 interrupt-parent = <&intc>;
218 };
219};
220
221#include "twl4030.dtsi"
Sebastian Reichelac888a82013-10-23 00:49:30 +0200222#include "twl4030_omap3.dtsi"
Pavel Macheka4d4b152013-08-13 15:36:36 +0200223
Sebastian Reichel9cdbbad2013-10-23 00:49:38 +0200224&vaux1 {
225 regulator-name = "V28";
226 regulator-min-microvolt = <2800000>;
227 regulator-max-microvolt = <2800000>;
228 regulator-always-on; /* due battery cover sensor */
229};
230
231&vaux2 {
232 regulator-name = "VCSI";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
235};
236
237&vaux3 {
238 regulator-name = "VMMC2_30";
239 regulator-min-microvolt = <2800000>;
240 regulator-max-microvolt = <3000000>;
241};
242
243&vaux4 {
244 regulator-name = "VCAM_ANA_28";
245 regulator-min-microvolt = <2800000>;
246 regulator-max-microvolt = <2800000>;
247};
248
249&vmmc1 {
250 regulator-name = "VMMC1";
251 regulator-min-microvolt = <1850000>;
252 regulator-max-microvolt = <3150000>;
253};
254
255&vmmc2 {
256 regulator-name = "V28_A";
257 regulator-min-microvolt = <2800000>;
258 regulator-max-microvolt = <3000000>;
259 regulator-always-on; /* due VIO leak to AIC34 VDDs */
260};
261
262&vpll1 {
263 regulator-name = "VPLL";
264 regulator-min-microvolt = <1800000>;
265 regulator-max-microvolt = <1800000>;
266 regulator-always-on;
267};
268
269&vpll2 {
270 regulator-name = "VSDI_CSI";
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <1800000>;
273 regulator-always-on;
274};
275
276&vsim {
277 regulator-name = "VMMC2_IO_18";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
280};
281
282&vio {
283 regulator-name = "VIO";
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <1800000>;
286
287};
288
289&vintana1 {
290 regulator-name = "VINTANA1";
291 /* fixed to 1500000 */
292 regulator-always-on;
293};
294
295&vintana2 {
296 regulator-name = "VINTANA2";
297 regulator-min-microvolt = <2750000>;
298 regulator-max-microvolt = <2750000>;
299 regulator-always-on;
300};
301
302&vintdig {
303 regulator-name = "VINTDIG";
304 /* fixed to 1500000 */
305 regulator-always-on;
306};
307
Sebastian Reichel06ba7a62013-10-23 00:49:35 +0200308&twl {
309 twl_audio: audio {
310 compatible = "ti,twl4030-audio";
311 ti,enable-vibra = <1>;
312 };
313};
314
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100315&twl_keypad {
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200316 linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_Q)
317 MATRIX_KEY(0x00, 0x01, KEY_O)
318 MATRIX_KEY(0x00, 0x02, KEY_P)
319 MATRIX_KEY(0x00, 0x03, KEY_COMMA)
320 MATRIX_KEY(0x00, 0x04, KEY_BACKSPACE)
321 MATRIX_KEY(0x00, 0x06, KEY_A)
322 MATRIX_KEY(0x00, 0x07, KEY_S)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100323
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200324 MATRIX_KEY(0x01, 0x00, KEY_W)
325 MATRIX_KEY(0x01, 0x01, KEY_D)
326 MATRIX_KEY(0x01, 0x02, KEY_F)
327 MATRIX_KEY(0x01, 0x03, KEY_G)
328 MATRIX_KEY(0x01, 0x04, KEY_H)
329 MATRIX_KEY(0x01, 0x05, KEY_J)
330 MATRIX_KEY(0x01, 0x06, KEY_K)
331 MATRIX_KEY(0x01, 0x07, KEY_L)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100332
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200333 MATRIX_KEY(0x02, 0x00, KEY_E)
334 MATRIX_KEY(0x02, 0x01, KEY_DOT)
335 MATRIX_KEY(0x02, 0x02, KEY_UP)
336 MATRIX_KEY(0x02, 0x03, KEY_ENTER)
337 MATRIX_KEY(0x02, 0x05, KEY_Z)
338 MATRIX_KEY(0x02, 0x06, KEY_X)
339 MATRIX_KEY(0x02, 0x07, KEY_C)
340 MATRIX_KEY(0x02, 0x08, KEY_F9)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100341
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200342 MATRIX_KEY(0x03, 0x00, KEY_R)
343 MATRIX_KEY(0x03, 0x01, KEY_V)
344 MATRIX_KEY(0x03, 0x02, KEY_B)
345 MATRIX_KEY(0x03, 0x03, KEY_N)
346 MATRIX_KEY(0x03, 0x04, KEY_M)
347 MATRIX_KEY(0x03, 0x05, KEY_SPACE)
348 MATRIX_KEY(0x03, 0x06, KEY_SPACE)
349 MATRIX_KEY(0x03, 0x07, KEY_LEFT)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100350
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200351 MATRIX_KEY(0x04, 0x00, KEY_T)
352 MATRIX_KEY(0x04, 0x01, KEY_DOWN)
353 MATRIX_KEY(0x04, 0x02, KEY_RIGHT)
354 MATRIX_KEY(0x04, 0x04, KEY_LEFTCTRL)
355 MATRIX_KEY(0x04, 0x05, KEY_RIGHTALT)
356 MATRIX_KEY(0x04, 0x06, KEY_LEFTSHIFT)
357 MATRIX_KEY(0x04, 0x08, KEY_F10)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100358
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200359 MATRIX_KEY(0x05, 0x00, KEY_Y)
360 MATRIX_KEY(0x05, 0x08, KEY_F11)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100361
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200362 MATRIX_KEY(0x06, 0x00, KEY_U)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100363
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200364 MATRIX_KEY(0x07, 0x00, KEY_I)
365 MATRIX_KEY(0x07, 0x01, KEY_F7)
366 MATRIX_KEY(0x07, 0x02, KEY_F8)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100367 >;
368};
369
Pavel Macheka4d4b152013-08-13 15:36:36 +0200370&twl_gpio {
371 ti,pullups = <0x0>;
372 ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
373};
374
375&i2c2 {
Sebastian Reichelac888a82013-10-23 00:49:30 +0200376 pinctrl-names = "default";
377 pinctrl-0 = <&i2c2_pins>;
378
Sebastian Reichel48fc9862013-10-23 00:49:31 +0200379 clock-frequency = <100000>;
Sebastian Reichelb2b9b252013-10-23 00:49:36 +0200380
Sebastian Reichel14e3e292013-10-23 00:49:41 +0200381 tlv320aic3x: tlv320aic3x@18 {
382 compatible = "ti,tlv320aic3x";
383 reg = <0x18>;
384 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
385 ai3x-gpio-func = <
386 0 /* AIC3X_GPIO1_FUNC_DISABLED */
387 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
388 >;
389
390 AVDD-supply = <&vmmc2>;
391 DRVDD-supply = <&vmmc2>;
392 IOVDD-supply = <&vio>;
393 DVDD-supply = <&vio>;
394 };
395
396 tlv320aic3x_aux: tlv320aic3x@19 {
397 compatible = "ti,tlv320aic3x";
398 reg = <0x19>;
399 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
400
401 AVDD-supply = <&vmmc2>;
402 DRVDD-supply = <&vmmc2>;
403 IOVDD-supply = <&vio>;
404 DVDD-supply = <&vio>;
405 };
406
Sebastian Reichel12f2f872014-01-11 22:17:00 +0100407 tsl2563: tsl2563@29 {
408 compatible = "amstaos,tsl2563";
409 reg = <0x29>;
410
411 amstaos,cover-comp-gain = <16>;
412 };
413
Sebastian Reichela0bf1f32013-10-23 00:49:42 +0200414 lp5523: lp5523@32 {
415 compatible = "national,lp5523";
416 reg = <0x32>;
417 clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
418 enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
419
420 chan0 {
421 chan-name = "lp5523:kb1";
422 led-cur = /bits/ 8 <50>;
423 max-cur = /bits/ 8 <100>;
424 };
425
426 chan1 {
427 chan-name = "lp5523:kb2";
428 led-cur = /bits/ 8 <50>;
429 max-cur = /bits/ 8 <100>;
430 };
431
432 chan2 {
433 chan-name = "lp5523:kb3";
434 led-cur = /bits/ 8 <50>;
435 max-cur = /bits/ 8 <100>;
436 };
437
438 chan3 {
439 chan-name = "lp5523:kb4";
440 led-cur = /bits/ 8 <50>;
441 max-cur = /bits/ 8 <100>;
442 };
443
444 chan4 {
445 chan-name = "lp5523:b";
446 led-cur = /bits/ 8 <50>;
447 max-cur = /bits/ 8 <100>;
448 };
449
450 chan5 {
451 chan-name = "lp5523:g";
452 led-cur = /bits/ 8 <50>;
453 max-cur = /bits/ 8 <100>;
454 };
455
456 chan6 {
457 chan-name = "lp5523:r";
458 led-cur = /bits/ 8 <50>;
459 max-cur = /bits/ 8 <100>;
460 };
461
462 chan7 {
463 chan-name = "lp5523:kb5";
464 led-cur = /bits/ 8 <50>;
465 max-cur = /bits/ 8 <100>;
466 };
467
468 chan8 {
469 chan-name = "lp5523:kb6";
470 led-cur = /bits/ 8 <50>;
471 max-cur = /bits/ 8 <100>;
472 };
473 };
474
Sebastian Reichelb2b9b252013-10-23 00:49:36 +0200475 bq27200: bq27200@55 {
476 compatible = "ti,bq27200";
477 reg = <0x55>;
478 };
Sebastian Reichel9e2367c2014-01-11 22:17:01 +0100479
480 tpa6130a2: tpa6130a2@60 {
481 compatible = "ti,tpa6130a2";
482 reg = <0x60>;
483
484 Vdd-supply = <&vmmc2>;
485
486 power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */
487 };
Sebastian Reichel334a09c2014-01-11 22:17:03 +0100488
489 bq24150a: bq24150a@6b {
490 compatible = "ti,bq24150a";
491 reg = <0x6b>;
492
493 ti,current-limit = <100>;
494 ti,weak-battery-voltage = <3400>;
495 ti,battery-regulation-voltage = <4200>;
496 ti,charge-current = <650>;
497 ti,termination-current = <100>;
498 ti,resistor-sense = <68>;
499
500 ti,usb-charger-detection = <&isp1704>;
501 };
Pavel Macheka4d4b152013-08-13 15:36:36 +0200502};
503
504&i2c3 {
Sebastian Reichelac888a82013-10-23 00:49:30 +0200505 pinctrl-names = "default";
506 pinctrl-0 = <&i2c3_pins>;
507
Sebastian Reichel48fc9862013-10-23 00:49:31 +0200508 clock-frequency = <400000>;
Pavel Macheka4d4b152013-08-13 15:36:36 +0200509};
510
511&mmc1 {
Sebastian Reichelf1751cf2013-10-23 00:49:33 +0200512 pinctrl-names = "default";
513 pinctrl-0 = <&mmc1_pins>;
514 vmmc-supply = <&vmmc1>;
515 bus-width = <4>;
516 cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
Pavel Macheka4d4b152013-08-13 15:36:36 +0200517};
518
Tony Lindgrenedd5eb42013-11-25 14:23:45 -0800519/* most boards use vaux3, only some old versions use vmmc2 instead */
Pavel Macheka4d4b152013-08-13 15:36:36 +0200520&mmc2 {
Tony Lindgrenedd5eb42013-11-25 14:23:45 -0800521 pinctrl-names = "default";
522 pinctrl-0 = <&mmc2_pins>;
523 vmmc-supply = <&vaux3>;
524 vmmc_aux-supply = <&vsim>;
525 bus-width = <8>;
526 non-removable;
Pavel Macheka4d4b152013-08-13 15:36:36 +0200527};
528
529&mmc3 {
530 status = "disabled";
531};
532
Sebastian Reichel8699d2d2013-10-23 00:49:39 +0200533&gpmc {
534 ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
535
536 /* gpio-irq for dma: 65 */
537
538 onenand@0,0 {
539 #address-cells = <1>;
540 #size-cells = <1>;
541 reg = <0 0 0x10000000>;
542
543 gpmc,sync-read;
544 gpmc,sync-write;
545 gpmc,burst-length = <16>;
546 gpmc,burst-read;
547 gpmc,burst-wrap;
548 gpmc,burst-write;
549 gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
550 gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
551 gpmc,cs-on-ns = <0>;
552 gpmc,cs-rd-off-ns = <87>;
553 gpmc,cs-wr-off-ns = <87>;
554 gpmc,adv-on-ns = <0>;
555 gpmc,adv-rd-off-ns = <10>;
556 gpmc,adv-wr-off-ns = <10>;
557 gpmc,oe-on-ns = <15>;
558 gpmc,oe-off-ns = <87>;
559 gpmc,we-on-ns = <0>;
560 gpmc,we-off-ns = <87>;
561 gpmc,rd-cycle-ns = <112>;
562 gpmc,wr-cycle-ns = <112>;
563 gpmc,access-ns = <81>;
564 gpmc,page-burst-access-ns = <15>;
565 gpmc,bus-turnaround-ns = <0>;
566 gpmc,cycle2cycle-delay-ns = <0>;
567 gpmc,wait-monitoring-ns = <0>;
568 gpmc,clk-activation-ns = <5>;
569 gpmc,wr-data-mux-bus-ns = <30>;
570 gpmc,wr-access-ns = <81>;
571 gpmc,sync-clk-ps = <15000>;
572
573 /*
574 * MTD partition table corresponding to Nokia's
575 * Maemo 5 (Fremantle) release.
576 */
577 partition@0 {
578 label = "bootloader";
579 reg = <0x00000000 0x00020000>;
580 read-only;
581 };
582 partition@1 {
583 label = "config";
584 reg = <0x00020000 0x00060000>;
585 };
586 partition@2 {
587 label = "log";
588 reg = <0x00080000 0x00040000>;
589 };
590 partition@3 {
591 label = "kernel";
592 reg = <0x000c0000 0x00200000>;
593 };
594 partition@4 {
595 label = "initfs";
596 reg = <0x002c0000 0x00200000>;
597 };
598 partition@5 {
599 label = "rootfs";
600 reg = <0x004c0000 0x0fb40000>;
601 };
602 };
603};
604
Pavel Macheka4d4b152013-08-13 15:36:36 +0200605&mcspi1 {
606 /*
607 * For some reason, touchscreen is necessary for screen to work at
608 * all on real hw. It works well without it on emulator.
609 *
610 * Also... order in the device tree actually matters here.
611 */
612 tsc2005@0 {
613 compatible = "tsc2005";
614 spi-max-frequency = <6000000>;
615 reg = <0>;
616 };
Tomi Valkeinen11334202013-12-17 09:33:33 +0200617
618 acx565akm@2 {
619 compatible = "sony,acx565akm";
Pavel Macheka4d4b152013-08-13 15:36:36 +0200620 spi-max-frequency = <6000000>;
621 reg = <2>;
Sebastian Reicheld1e6f512013-10-23 00:49:40 +0200622
623 pinctrl-names = "default";
Tomi Valkeinen11334202013-12-17 09:33:33 +0200624 pinctrl-0 = <&acx565akm_pins>;
625
626 label = "lcd";
627 reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
628
629 port {
630 lcd_in: endpoint {
631 remote-endpoint = <&sdi_out>;
632 };
633 };
Pavel Macheka4d4b152013-08-13 15:36:36 +0200634 };
635};
636
Sebastian Reichelc1ad2202014-03-13 22:59:55 +0100637&mcspi4 {
638 pinctrl-names = "default";
639 pinctrl-0 = <&mcspi4_pins>;
640
641 wl1251@0 {
642 pinctrl-names = "default";
643 pinctrl-0 = <&wl1251_pins>;
644
645 vio-supply = <&vio>;
646
647 compatible = "ti,wl1251";
648 reg = <0>;
649 spi-max-frequency = <48000000>;
650
651 spi-cpol;
652 spi-cpha;
653
654 ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */
655
656 interrupt-parent = <&gpio2>;
657 interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */
658 };
659};
660
Pavel Macheka4d4b152013-08-13 15:36:36 +0200661&usb_otg_hs {
662 interface-type = <0>;
663 usb-phy = <&usb2_phy>;
Roger Quadrosd2afcf02013-10-07 16:28:13 +0300664 phys = <&usb2_phy>;
665 phy-names = "usb2-phy";
Pavel Macheka4d4b152013-08-13 15:36:36 +0200666 mode = <2>;
667 power = <50>;
668};
Sebastian Reichel7a89eec2013-10-23 00:49:32 +0200669
670&uart1 {
671 status = "disabled";
672};
673
674&uart2 {
675 pinctrl-names = "default";
676 pinctrl-0 = <&uart2_pins>;
677};
678
679&uart3 {
680 pinctrl-names = "default";
681 pinctrl-0 = <&uart3_pins>;
682};
Tomi Valkeinen11334202013-12-17 09:33:33 +0200683
684&dss {
685 status = "ok";
686
687 pinctrl-names = "default";
688 pinctrl-0 = <&dss_sdi_pins>;
689
690 vdds_sdi-supply = <&vaux1>;
691
692 ports {
693 #address-cells = <1>;
694 #size-cells = <0>;
695
696 port@1 {
697 reg = <1>;
698
699 sdi_out: endpoint {
700 remote-endpoint = <&lcd_in>;
701 datapairs = <2>;
702 };
703 };
704 };
705};
706
707&venc {
708 status = "ok";
709
710 vdda-supply = <&vdac>;
711
712 port {
713 venc_out: endpoint {
714 remote-endpoint = <&tv_connector_in>;
715 ti,channels = <1>;
716 };
717 };
718};
Sebastian Reichelf7d0f2a2014-04-28 16:07:27 +0200719
720&mcbsp2 {
721 status = "ok";
722};