Merge tag 'hwspinlock-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / omap3-n900.dts
1 /*
2  * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz>
3  * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi>
4  *
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
12 #include "omap34xx-hs.dtsi"
13 #include <dt-bindings/input/input.h>
14
15 / {
16         model = "Nokia N900";
17         compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
18
19         cpus {
20                 cpu@0 {
21                         cpu0-supply = <&vcc>;
22                 };
23         };
24
25         leds {
26                 compatible = "gpio-leds";
27                 heartbeat {
28                         label = "debug::sleep";
29                         gpios = <&gpio6 2 GPIO_ACTIVE_HIGH>;  /* gpio162 */
30                         linux,default-trigger = "default-on";
31                         pinctrl-names = "default";
32                         pinctrl-0 = <&debug_leds>;
33                 };
34         };
35
36         memory {
37                 device_type = "memory";
38                 reg = <0x80000000 0x10000000>; /* 256 MB */
39         };
40
41         gpio_keys {
42                 compatible = "gpio-keys";
43
44                 camera_lens_cover {
45                         label = "Camera Lens Cover";
46                         gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
47                         linux,input-type = <5>; /* EV_SW */
48                         linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
49                         gpio-key,wakeup;
50                 };
51
52                 camera_focus {
53                         label = "Camera Focus";
54                         gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
55                         linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
56                         gpio-key,wakeup;
57                 };
58
59                 camera_capture {
60                         label = "Camera Capture";
61                         gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
62                         linux,code = <0xd4>; /* KEY_CAMERA */
63                         gpio-key,wakeup;
64                 };
65
66                 lock_button {
67                         label = "Lock Button";
68                         gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
69                         linux,code = <0x98>; /* KEY_SCREENLOCK */
70                         gpio-key,wakeup;
71                 };
72
73                 keypad_slide {
74                         label = "Keypad Slide";
75                         gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
76                         linux,input-type = <5>; /* EV_SW */
77                         linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
78                         gpio-key,wakeup;
79                 };
80
81                 proximity_sensor {
82                         label = "Proximity Sensor";
83                         gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
84                         linux,input-type = <5>; /* EV_SW */
85                         linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
86                 };
87         };
88
89         isp1704: isp1704 {
90                 compatible = "nxp,isp1704";
91                 nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
92                 usb-phy = <&usb2_phy>;
93         };
94
95         tv: connector {
96                 compatible = "composite-connector";
97                 label = "tv";
98
99                 port {
100                         tv_connector_in: endpoint {
101                                 remote-endpoint = <&venc_out>;
102                         };
103                 };
104         };
105
106         sound: n900-audio {
107                 compatible = "nokia,n900-audio";
108
109                 nokia,cpu-dai = <&mcbsp2>;
110                 nokia,audio-codec = <&tlv320aic3x>, <&tlv320aic3x_aux>;
111                 nokia,headphone-amplifier = <&tpa6130a2>;
112
113                 tvout-selection-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; /* 40 */
114                 jack-detection-gpios = <&gpio6 17 GPIO_ACTIVE_HIGH>; /* 177 */
115                 eci-switch-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* 182 */
116                 speaker-amplifier-gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>;
117         };
118 };
119
120 &omap3_pmx_core {
121         pinctrl-names = "default";
122
123         uart2_pins: pinmux_uart2_pins {
124                 pinctrl-single,pins = <
125                         0x14a (PIN_INPUT | MUX_MODE0)           /* uart2_rx */
126                         0x148 (PIN_OUTPUT | MUX_MODE0)          /* uart2_tx */
127                 >;
128         };
129
130         uart3_pins: pinmux_uart3_pins {
131                 pinctrl-single,pins = <
132                         0x16e (PIN_INPUT | MUX_MODE0)           /* uart3_rx */
133                         0x170 (PIN_OUTPUT | MUX_MODE0)          /* uart3_tx */
134                 >;
135         };
136
137         i2c1_pins: pinmux_i2c1_pins {
138                 pinctrl-single,pins = <
139                         0x18a (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c1_scl */
140                         0x18c (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c1_sda */
141                 >;
142         };
143
144         i2c2_pins: pinmux_i2c2_pins {
145                 pinctrl-single,pins = <
146                         0x18e (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c2_scl */
147                         0x190 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c2_sda */
148                 >;
149         };
150
151         i2c3_pins: pinmux_i2c3_pins {
152                 pinctrl-single,pins = <
153                         0x192 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c3_scl */
154                         0x194 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c3_sda */
155                 >;
156         };
157
158         debug_leds: pinmux_debug_led_pins {
159                 pinctrl-single,pins = <
160                         OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4)       /* mcbsp1_clkx.gpio_162 */
161                 >;
162         };
163
164         mcspi4_pins: pinmux_mcspi4_pins {
165                 pinctrl-single,pins = <
166                         0x15c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_clk */
167                         0x162 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_somi */
168                         0x160 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_simo */
169                         0x166 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_cs0 */
170                 >;
171         };
172
173         mmc1_pins: pinmux_mmc1_pins {
174                 pinctrl-single,pins = <
175                         0x114 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_clk */
176                         0x116 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_cmd */
177                         0x118 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat0 */
178                         0x11a (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat1 */
179                         0x11c (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat2 */
180                         0x11e (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat3 */
181                 >;
182         };
183
184         mmc2_pins: pinmux_mmc2_pins {
185                 pinctrl-single,pins = <
186                         0x128 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_clk */
187                         0x12a (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_cmd */
188                         0x12c (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat0 */
189                         0x12e (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat1 */
190                         0x130 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat2 */
191                         0x132 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat3 */
192                         0x134 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat4 */
193                         0x136 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat5 */
194                         0x138 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat6 */
195                         0x13a (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat7 */
196                 >;
197         };
198
199         acx565akm_pins: pinmux_acx565akm_pins {
200                 pinctrl-single,pins = <
201                         0x0d4 (PIN_OUTPUT | MUX_MODE4)          /* RX51_LCD_RESET_GPIO */
202                 >;
203         };
204
205         dss_sdi_pins: pinmux_dss_sdi_pins {
206                 pinctrl-single,pins = <
207                         0x0c0 (PIN_OUTPUT | MUX_MODE1)   /* dss_data10.sdi_dat1n */
208                         0x0c2 (PIN_OUTPUT | MUX_MODE1)   /* dss_data11.sdi_dat1p */
209                         0x0c4 (PIN_OUTPUT | MUX_MODE1)   /* dss_data12.sdi_dat2n */
210                         0x0c6 (PIN_OUTPUT | MUX_MODE1)   /* dss_data13.sdi_dat2p */
211
212                         0x0d8 (PIN_OUTPUT | MUX_MODE1)   /* dss_data22.sdi_clkp */
213                         0x0da (PIN_OUTPUT | MUX_MODE1)   /* dss_data23.sdi_clkn */
214                 >;
215         };
216
217         wl1251_pins: pinmux_wl1251 {
218                 pinctrl-single,pins = <
219                         0x0ce (PIN_OUTPUT | MUX_MODE4)          /* gpio 87 => wl1251 enable */
220                         0x05a (PIN_INPUT | MUX_MODE4)           /* gpio 42 => wl1251 irq */
221                 >;
222         };
223
224         ssi_pins: pinmux_ssi {
225                 pinctrl-single,pins = <
226                         0x150 (PIN_INPUT_PULLUP | MUX_MODE1)    /* ssi1_rdy_tx */
227                         0x14e (PIN_OUTPUT | MUX_MODE1)          /* ssi1_flag_tx */
228                         0x152 (PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* ssi1_wake_tx (cawake) */
229                         0x14c (PIN_OUTPUT | MUX_MODE1)          /* ssi1_dat_tx */
230                         0x154 (PIN_INPUT | MUX_MODE1)           /* ssi1_dat_rx */
231                         0x156 (PIN_INPUT | MUX_MODE1)           /* ssi1_flag_rx */
232                         0x158 (PIN_OUTPUT | MUX_MODE1)          /* ssi1_rdy_rx */
233                         0x15a (PIN_OUTPUT | MUX_MODE1)          /* ssi1_wake */
234                 >;
235         };
236
237         modem_pins: pinmux_modem {
238                 pinctrl-single,pins = <
239                         0x0ac (PIN_OUTPUT | MUX_MODE4)          /* gpio 70 => cmt_apeslpx */
240                         0x0b0 (PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* gpio 72 => ape_rst_rq */
241                         0x0b2 (PIN_OUTPUT | MUX_MODE4)          /* gpio 73 => cmt_rst_rq */
242                         0x0b4 (PIN_OUTPUT | MUX_MODE4)          /* gpio 74 => cmt_en */
243                         0x0b6 (PIN_OUTPUT | MUX_MODE4)          /* gpio 75 => cmt_rst */
244                         0x15e (PIN_OUTPUT | MUX_MODE4)          /* gpio 157 => cmt_bsi */
245                 >;
246         };
247 };
248
249 &i2c1 {
250         pinctrl-names = "default";
251         pinctrl-0 = <&i2c1_pins>;
252
253         clock-frequency = <2200000>;
254
255         twl: twl@48 {
256                 reg = <0x48>;
257                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
258                 interrupt-parent = <&intc>;
259         };
260 };
261
262 #include "twl4030.dtsi"
263 #include "twl4030_omap3.dtsi"
264
265 &vaux1 {
266         regulator-name = "V28";
267         regulator-min-microvolt = <2800000>;
268         regulator-max-microvolt = <2800000>;
269         regulator-always-on; /* due battery cover sensor */
270 };
271
272 &vaux2 {
273         regulator-name = "VCSI";
274         regulator-min-microvolt = <1800000>;
275         regulator-max-microvolt = <1800000>;
276 };
277
278 &vaux3 {
279         regulator-name = "VMMC2_30";
280         regulator-min-microvolt = <2800000>;
281         regulator-max-microvolt = <3000000>;
282 };
283
284 &vaux4 {
285         regulator-name = "VCAM_ANA_28";
286         regulator-min-microvolt = <2800000>;
287         regulator-max-microvolt = <2800000>;
288 };
289
290 &vmmc1 {
291         regulator-name = "VMMC1";
292         regulator-min-microvolt = <1850000>;
293         regulator-max-microvolt = <3150000>;
294 };
295
296 &vmmc2 {
297         regulator-name = "V28_A";
298         regulator-min-microvolt = <2800000>;
299         regulator-max-microvolt = <3000000>;
300         regulator-always-on; /* due VIO leak to AIC34 VDDs */
301 };
302
303 &vpll1 {
304         regulator-name = "VPLL";
305         regulator-min-microvolt = <1800000>;
306         regulator-max-microvolt = <1800000>;
307         regulator-always-on;
308 };
309
310 &vpll2 {
311         regulator-name = "VSDI_CSI";
312         regulator-min-microvolt = <1800000>;
313         regulator-max-microvolt = <1800000>;
314         regulator-always-on;
315 };
316
317 &vsim {
318         regulator-name = "VMMC2_IO_18";
319         regulator-min-microvolt = <1800000>;
320         regulator-max-microvolt = <1800000>;
321 };
322
323 &vio {
324         regulator-name = "VIO";
325         regulator-min-microvolt = <1800000>;
326         regulator-max-microvolt = <1800000>;
327
328 };
329
330 &vintana1 {
331         regulator-name = "VINTANA1";
332         /* fixed to 1500000 */
333         regulator-always-on;
334 };
335
336 &vintana2 {
337         regulator-name = "VINTANA2";
338         regulator-min-microvolt = <2750000>;
339         regulator-max-microvolt = <2750000>;
340         regulator-always-on;
341 };
342
343 &vintdig {
344         regulator-name = "VINTDIG";
345         /* fixed to 1500000 */
346         regulator-always-on;
347 };
348
349 &twl {
350         twl_audio: audio {
351                 compatible = "ti,twl4030-audio";
352                 ti,enable-vibra = <1>;
353         };
354
355         twl_power: power {
356                 compatible = "ti,twl4030-power-n900";
357                 ti,use_poweroff;
358         };
359 };
360
361 &twl_keypad {
362         linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_Q)
363                          MATRIX_KEY(0x00, 0x01, KEY_O)
364                          MATRIX_KEY(0x00, 0x02, KEY_P)
365                          MATRIX_KEY(0x00, 0x03, KEY_COMMA)
366                          MATRIX_KEY(0x00, 0x04, KEY_BACKSPACE)
367                          MATRIX_KEY(0x00, 0x06, KEY_A)
368                          MATRIX_KEY(0x00, 0x07, KEY_S)
369
370                          MATRIX_KEY(0x01, 0x00, KEY_W)
371                          MATRIX_KEY(0x01, 0x01, KEY_D)
372                          MATRIX_KEY(0x01, 0x02, KEY_F)
373                          MATRIX_KEY(0x01, 0x03, KEY_G)
374                          MATRIX_KEY(0x01, 0x04, KEY_H)
375                          MATRIX_KEY(0x01, 0x05, KEY_J)
376                          MATRIX_KEY(0x01, 0x06, KEY_K)
377                          MATRIX_KEY(0x01, 0x07, KEY_L)
378
379                          MATRIX_KEY(0x02, 0x00, KEY_E)
380                          MATRIX_KEY(0x02, 0x01, KEY_DOT)
381                          MATRIX_KEY(0x02, 0x02, KEY_UP)
382                          MATRIX_KEY(0x02, 0x03, KEY_ENTER)
383                          MATRIX_KEY(0x02, 0x05, KEY_Z)
384                          MATRIX_KEY(0x02, 0x06, KEY_X)
385                          MATRIX_KEY(0x02, 0x07, KEY_C)
386                          MATRIX_KEY(0x02, 0x08, KEY_F9)
387
388                          MATRIX_KEY(0x03, 0x00, KEY_R)
389                          MATRIX_KEY(0x03, 0x01, KEY_V)
390                          MATRIX_KEY(0x03, 0x02, KEY_B)
391                          MATRIX_KEY(0x03, 0x03, KEY_N)
392                          MATRIX_KEY(0x03, 0x04, KEY_M)
393                          MATRIX_KEY(0x03, 0x05, KEY_SPACE)
394                          MATRIX_KEY(0x03, 0x06, KEY_SPACE)
395                          MATRIX_KEY(0x03, 0x07, KEY_LEFT)
396
397                          MATRIX_KEY(0x04, 0x00, KEY_T)
398                          MATRIX_KEY(0x04, 0x01, KEY_DOWN)
399                          MATRIX_KEY(0x04, 0x02, KEY_RIGHT)
400                          MATRIX_KEY(0x04, 0x04, KEY_LEFTCTRL)
401                          MATRIX_KEY(0x04, 0x05, KEY_RIGHTALT)
402                          MATRIX_KEY(0x04, 0x06, KEY_LEFTSHIFT)
403                          MATRIX_KEY(0x04, 0x08, KEY_F10)
404
405                          MATRIX_KEY(0x05, 0x00, KEY_Y)
406                          MATRIX_KEY(0x05, 0x08, KEY_F11)
407
408                          MATRIX_KEY(0x06, 0x00, KEY_U)
409
410                          MATRIX_KEY(0x07, 0x00, KEY_I)
411                          MATRIX_KEY(0x07, 0x01, KEY_F7)
412                          MATRIX_KEY(0x07, 0x02, KEY_F8)
413                          >;
414 };
415
416 &twl_gpio {
417         ti,pullups      = <0x0>;
418         ti,pulldowns    = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
419 };
420
421 &i2c2 {
422         pinctrl-names = "default";
423         pinctrl-0 = <&i2c2_pins>;
424
425         clock-frequency = <100000>;
426
427         tlv320aic3x: tlv320aic3x@18 {
428                 compatible = "ti,tlv320aic3x";
429                 reg = <0x18>;
430                 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
431                 ai3x-gpio-func = <
432                         0 /* AIC3X_GPIO1_FUNC_DISABLED */
433                         5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
434                 >;
435
436                 AVDD-supply = <&vmmc2>;
437                 DRVDD-supply = <&vmmc2>;
438                 IOVDD-supply = <&vio>;
439                 DVDD-supply = <&vio>;
440         };
441
442         tlv320aic3x_aux: tlv320aic3x@19 {
443                 compatible = "ti,tlv320aic3x";
444                 reg = <0x19>;
445                 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
446
447                 AVDD-supply = <&vmmc2>;
448                 DRVDD-supply = <&vmmc2>;
449                 IOVDD-supply = <&vio>;
450                 DVDD-supply = <&vio>;
451         };
452
453         tsl2563: tsl2563@29 {
454                 compatible = "amstaos,tsl2563";
455                 reg = <0x29>;
456
457                 amstaos,cover-comp-gain = <16>;
458         };
459
460         lp5523: lp5523@32 {
461                 compatible = "national,lp5523";
462                 reg = <0x32>;
463                 clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
464                 enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
465
466                 chan0 {
467                         chan-name = "lp5523:kb1";
468                         led-cur = /bits/ 8 <50>;
469                         max-cur = /bits/ 8 <100>;
470                 };
471
472                 chan1 {
473                         chan-name = "lp5523:kb2";
474                         led-cur = /bits/ 8 <50>;
475                         max-cur = /bits/ 8 <100>;
476                 };
477
478                 chan2 {
479                         chan-name = "lp5523:kb3";
480                         led-cur = /bits/ 8 <50>;
481                         max-cur = /bits/ 8 <100>;
482                 };
483
484                 chan3 {
485                         chan-name = "lp5523:kb4";
486                         led-cur = /bits/ 8 <50>;
487                         max-cur = /bits/ 8 <100>;
488                 };
489
490                 chan4 {
491                         chan-name = "lp5523:b";
492                         led-cur = /bits/ 8 <50>;
493                         max-cur = /bits/ 8 <100>;
494                 };
495
496                 chan5 {
497                         chan-name = "lp5523:g";
498                         led-cur = /bits/ 8 <50>;
499                         max-cur = /bits/ 8 <100>;
500                 };
501
502                 chan6 {
503                         chan-name = "lp5523:r";
504                         led-cur = /bits/ 8 <50>;
505                         max-cur = /bits/ 8 <100>;
506                 };
507
508                 chan7 {
509                         chan-name = "lp5523:kb5";
510                         led-cur = /bits/ 8 <50>;
511                         max-cur = /bits/ 8 <100>;
512                 };
513
514                 chan8 {
515                         chan-name = "lp5523:kb6";
516                         led-cur = /bits/ 8 <50>;
517                         max-cur = /bits/ 8 <100>;
518                 };
519         };
520
521         bq27200: bq27200@55 {
522                 compatible = "ti,bq27200";
523                 reg = <0x55>;
524         };
525
526         tpa6130a2: tpa6130a2@60 {
527                 compatible = "ti,tpa6130a2";
528                 reg = <0x60>;
529
530                 Vdd-supply = <&vmmc2>;
531
532                 power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */
533         };
534
535         bq24150a: bq24150a@6b {
536                 compatible = "ti,bq24150a";
537                 reg = <0x6b>;
538
539                 ti,current-limit = <100>;
540                 ti,weak-battery-voltage = <3400>;
541                 ti,battery-regulation-voltage = <4200>;
542                 ti,charge-current = <650>;
543                 ti,termination-current = <100>;
544                 ti,resistor-sense = <68>;
545
546                 ti,usb-charger-detection = <&isp1704>;
547         };
548 };
549
550 &i2c3 {
551         pinctrl-names = "default";
552         pinctrl-0 = <&i2c3_pins>;
553
554         clock-frequency = <400000>;
555 };
556
557 &mmc1 {
558         pinctrl-names = "default";
559         pinctrl-0 = <&mmc1_pins>;
560         vmmc-supply = <&vmmc1>;
561         bus-width = <4>;
562         cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
563 };
564
565 /* most boards use vaux3, only some old versions use vmmc2 instead */
566 &mmc2 {
567         pinctrl-names = "default";
568         pinctrl-0 = <&mmc2_pins>;
569         vmmc-supply = <&vaux3>;
570         vmmc_aux-supply = <&vsim>;
571         bus-width = <8>;
572         non-removable;
573 };
574
575 &mmc3 {
576         status = "disabled";
577 };
578
579 &gpmc {
580         ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
581
582         /* gpio-irq for dma: 65 */
583
584         onenand@0,0 {
585                 #address-cells = <1>;
586                 #size-cells = <1>;
587                 reg = <0 0 0x10000000>;
588
589                 gpmc,sync-read;
590                 gpmc,sync-write;
591                 gpmc,burst-length = <16>;
592                 gpmc,burst-read;
593                 gpmc,burst-wrap;
594                 gpmc,burst-write;
595                 gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
596                 gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
597                 gpmc,cs-on-ns = <0>;
598                 gpmc,cs-rd-off-ns = <87>;
599                 gpmc,cs-wr-off-ns = <87>;
600                 gpmc,adv-on-ns = <0>;
601                 gpmc,adv-rd-off-ns = <10>;
602                 gpmc,adv-wr-off-ns = <10>;
603                 gpmc,oe-on-ns = <15>;
604                 gpmc,oe-off-ns = <87>;
605                 gpmc,we-on-ns = <0>;
606                 gpmc,we-off-ns = <87>;
607                 gpmc,rd-cycle-ns = <112>;
608                 gpmc,wr-cycle-ns = <112>;
609                 gpmc,access-ns = <81>;
610                 gpmc,page-burst-access-ns = <15>;
611                 gpmc,bus-turnaround-ns = <0>;
612                 gpmc,cycle2cycle-delay-ns = <0>;
613                 gpmc,wait-monitoring-ns = <0>;
614                 gpmc,clk-activation-ns = <5>;
615                 gpmc,wr-data-mux-bus-ns = <30>;
616                 gpmc,wr-access-ns = <81>;
617                 gpmc,sync-clk-ps = <15000>;
618
619                 /*
620                  * MTD partition table corresponding to Nokia's
621                  * Maemo 5 (Fremantle) release.
622                  */
623                 partition@0 {
624                         label = "bootloader";
625                         reg = <0x00000000 0x00020000>;
626                         read-only;
627                 };
628                 partition@1 {
629                         label = "config";
630                         reg = <0x00020000 0x00060000>;
631                 };
632                 partition@2 {
633                         label = "log";
634                         reg = <0x00080000 0x00040000>;
635                 };
636                 partition@3 {
637                         label = "kernel";
638                         reg = <0x000c0000 0x00200000>;
639                 };
640                 partition@4 {
641                         label = "initfs";
642                         reg = <0x002c0000 0x00200000>;
643                 };
644                 partition@5 {
645                         label = "rootfs";
646                         reg = <0x004c0000 0x0fb40000>;
647                 };
648         };
649 };
650
651 &mcspi1 {
652         /*
653          * For some reason, touchscreen is necessary for screen to work at
654          * all on real hw. It works well without it on emulator.
655          *
656          * Also... order in the device tree actually matters here.
657          */
658         tsc2005@0 {
659                 compatible = "ti,tsc2005";
660                 spi-max-frequency = <6000000>;
661                 reg = <0>;
662
663                 vio-supply = <&vio>;
664
665                 reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */
666                 interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */
667
668                 touchscreen-fuzz-x = <4>;
669                 touchscreen-fuzz-y = <7>;
670                 touchscreen-fuzz-pressure = <2>;
671                 touchscreen-max-x = <4096>;
672                 touchscreen-max-y = <4096>;
673                 touchscreen-max-pressure = <2048>;
674
675                 ti,x-plate-ohms = <280>;
676                 ti,esd-recovery-timeout-ms = <8000>;
677         };
678
679         acx565akm@2 {
680                 compatible = "sony,acx565akm";
681                 spi-max-frequency = <6000000>;
682                 reg = <2>;
683
684                 pinctrl-names = "default";
685                 pinctrl-0 = <&acx565akm_pins>;
686
687                 label = "lcd";
688                 reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
689
690                 port {
691                         lcd_in: endpoint {
692                                 remote-endpoint = <&sdi_out>;
693                         };
694                 };
695         };
696 };
697
698 &mcspi4 {
699         pinctrl-names = "default";
700         pinctrl-0 = <&mcspi4_pins>;
701
702         wl1251@0 {
703                 pinctrl-names = "default";
704                 pinctrl-0 = <&wl1251_pins>;
705
706                 vio-supply = <&vio>;
707
708                 compatible = "ti,wl1251";
709                 reg = <0>;
710                 spi-max-frequency = <48000000>;
711
712                 spi-cpol;
713                 spi-cpha;
714
715                 ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */
716
717                 interrupt-parent = <&gpio2>;
718                 interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */
719         };
720 };
721
722 &usb_otg_hs {
723         interface-type = <0>;
724         usb-phy = <&usb2_phy>;
725         phys = <&usb2_phy>;
726         phy-names = "usb2-phy";
727         mode = <2>;
728         power = <50>;
729 };
730
731 &uart1 {
732         status = "disabled";
733 };
734
735 &uart2 {
736         interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
737         pinctrl-names = "default";
738         pinctrl-0 = <&uart2_pins>;
739 };
740
741 &uart3 {
742         interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
743         pinctrl-names = "default";
744         pinctrl-0 = <&uart3_pins>;
745 };
746
747 &dss {
748         status = "ok";
749
750         pinctrl-names = "default";
751         pinctrl-0 = <&dss_sdi_pins>;
752
753         vdds_sdi-supply = <&vaux1>;
754
755         ports {
756                 #address-cells = <1>;
757                 #size-cells = <0>;
758
759                 port@1 {
760                         reg = <1>;
761
762                         sdi_out: endpoint {
763                                 remote-endpoint = <&lcd_in>;
764                                 datapairs = <2>;
765                         };
766                 };
767         };
768 };
769
770 &venc {
771         status = "ok";
772
773         vdda-supply = <&vdac>;
774
775         port {
776                 venc_out: endpoint {
777                         remote-endpoint = <&tv_connector_in>;
778                         ti,channels = <1>;
779                 };
780         };
781 };
782
783 &mcbsp2 {
784         status = "ok";
785 };
786
787 &ssi_port1 {
788         pinctrl-names = "default";
789         pinctrl-0 = <&ssi_pins>;
790
791         ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
792
793         modem: hsi-client {
794                 compatible = "nokia,n900-modem";
795
796                 pinctrl-names = "default";
797                 pinctrl-0 = <&modem_pins>;
798
799                 hsi-channel-ids = <0>, <1>, <2>, <3>;
800                 hsi-channel-names = "mcsaab-control",
801                                     "speech-control",
802                                     "speech-data",
803                                     "mcsaab-data";
804                 hsi-speed-kbps = <55000>;
805                 hsi-mode = "frame";
806                 hsi-flow = "synchronized";
807                 hsi-arb-mode = "round-robin";
808
809                 interrupts-extended = <&gpio3 8 IRQ_TYPE_EDGE_FALLING>; /* 72 */
810
811                 gpios = <&gpio3  6 GPIO_ACTIVE_HIGH>, /* 70 */
812                         <&gpio3  9 GPIO_ACTIVE_HIGH>, /* 73 */
813                         <&gpio3 10 GPIO_ACTIVE_HIGH>, /* 74 */
814                         <&gpio3 11 GPIO_ACTIVE_HIGH>, /* 75 */
815                         <&gpio5 29 GPIO_ACTIVE_HIGH>; /* 157 */
816                 gpio-names = "cmt_apeslpx",
817                              "cmt_rst_rq",
818                              "cmt_en",
819                              "cmt_rst",
820                              "cmt_bsi";
821         };
822 };
823
824 &ssi_port2 {
825         status = "disabled";
826 };