]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/omap3-n900.dts
KARO: cleanup after merge of Freescale 3.10.17 stuff
[karo-tx-linux.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
356 &twl_keypad {
357         linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_Q)
358                          MATRIX_KEY(0x00, 0x01, KEY_O)
359                          MATRIX_KEY(0x00, 0x02, KEY_P)
360                          MATRIX_KEY(0x00, 0x03, KEY_COMMA)
361                          MATRIX_KEY(0x00, 0x04, KEY_BACKSPACE)
362                          MATRIX_KEY(0x00, 0x06, KEY_A)
363                          MATRIX_KEY(0x00, 0x07, KEY_S)
364
365                          MATRIX_KEY(0x01, 0x00, KEY_W)
366                          MATRIX_KEY(0x01, 0x01, KEY_D)
367                          MATRIX_KEY(0x01, 0x02, KEY_F)
368                          MATRIX_KEY(0x01, 0x03, KEY_G)
369                          MATRIX_KEY(0x01, 0x04, KEY_H)
370                          MATRIX_KEY(0x01, 0x05, KEY_J)
371                          MATRIX_KEY(0x01, 0x06, KEY_K)
372                          MATRIX_KEY(0x01, 0x07, KEY_L)
373
374                          MATRIX_KEY(0x02, 0x00, KEY_E)
375                          MATRIX_KEY(0x02, 0x01, KEY_DOT)
376                          MATRIX_KEY(0x02, 0x02, KEY_UP)
377                          MATRIX_KEY(0x02, 0x03, KEY_ENTER)
378                          MATRIX_KEY(0x02, 0x05, KEY_Z)
379                          MATRIX_KEY(0x02, 0x06, KEY_X)
380                          MATRIX_KEY(0x02, 0x07, KEY_C)
381                          MATRIX_KEY(0x02, 0x08, KEY_F9)
382
383                          MATRIX_KEY(0x03, 0x00, KEY_R)
384                          MATRIX_KEY(0x03, 0x01, KEY_V)
385                          MATRIX_KEY(0x03, 0x02, KEY_B)
386                          MATRIX_KEY(0x03, 0x03, KEY_N)
387                          MATRIX_KEY(0x03, 0x04, KEY_M)
388                          MATRIX_KEY(0x03, 0x05, KEY_SPACE)
389                          MATRIX_KEY(0x03, 0x06, KEY_SPACE)
390                          MATRIX_KEY(0x03, 0x07, KEY_LEFT)
391
392                          MATRIX_KEY(0x04, 0x00, KEY_T)
393                          MATRIX_KEY(0x04, 0x01, KEY_DOWN)
394                          MATRIX_KEY(0x04, 0x02, KEY_RIGHT)
395                          MATRIX_KEY(0x04, 0x04, KEY_LEFTCTRL)
396                          MATRIX_KEY(0x04, 0x05, KEY_RIGHTALT)
397                          MATRIX_KEY(0x04, 0x06, KEY_LEFTSHIFT)
398                          MATRIX_KEY(0x04, 0x08, KEY_F10)
399
400                          MATRIX_KEY(0x05, 0x00, KEY_Y)
401                          MATRIX_KEY(0x05, 0x08, KEY_F11)
402
403                          MATRIX_KEY(0x06, 0x00, KEY_U)
404
405                          MATRIX_KEY(0x07, 0x00, KEY_I)
406                          MATRIX_KEY(0x07, 0x01, KEY_F7)
407                          MATRIX_KEY(0x07, 0x02, KEY_F8)
408                          >;
409 };
410
411 &twl_gpio {
412         ti,pullups      = <0x0>;
413         ti,pulldowns    = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
414 };
415
416 &i2c2 {
417         pinctrl-names = "default";
418         pinctrl-0 = <&i2c2_pins>;
419
420         clock-frequency = <100000>;
421
422         tlv320aic3x: tlv320aic3x@18 {
423                 compatible = "ti,tlv320aic3x";
424                 reg = <0x18>;
425                 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
426                 ai3x-gpio-func = <
427                         0 /* AIC3X_GPIO1_FUNC_DISABLED */
428                         5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
429                 >;
430
431                 AVDD-supply = <&vmmc2>;
432                 DRVDD-supply = <&vmmc2>;
433                 IOVDD-supply = <&vio>;
434                 DVDD-supply = <&vio>;
435         };
436
437         tlv320aic3x_aux: tlv320aic3x@19 {
438                 compatible = "ti,tlv320aic3x";
439                 reg = <0x19>;
440                 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
441
442                 AVDD-supply = <&vmmc2>;
443                 DRVDD-supply = <&vmmc2>;
444                 IOVDD-supply = <&vio>;
445                 DVDD-supply = <&vio>;
446         };
447
448         tsl2563: tsl2563@29 {
449                 compatible = "amstaos,tsl2563";
450                 reg = <0x29>;
451
452                 amstaos,cover-comp-gain = <16>;
453         };
454
455         lp5523: lp5523@32 {
456                 compatible = "national,lp5523";
457                 reg = <0x32>;
458                 clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
459                 enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
460
461                 chan0 {
462                         chan-name = "lp5523:kb1";
463                         led-cur = /bits/ 8 <50>;
464                         max-cur = /bits/ 8 <100>;
465                 };
466
467                 chan1 {
468                         chan-name = "lp5523:kb2";
469                         led-cur = /bits/ 8 <50>;
470                         max-cur = /bits/ 8 <100>;
471                 };
472
473                 chan2 {
474                         chan-name = "lp5523:kb3";
475                         led-cur = /bits/ 8 <50>;
476                         max-cur = /bits/ 8 <100>;
477                 };
478
479                 chan3 {
480                         chan-name = "lp5523:kb4";
481                         led-cur = /bits/ 8 <50>;
482                         max-cur = /bits/ 8 <100>;
483                 };
484
485                 chan4 {
486                         chan-name = "lp5523:b";
487                         led-cur = /bits/ 8 <50>;
488                         max-cur = /bits/ 8 <100>;
489                 };
490
491                 chan5 {
492                         chan-name = "lp5523:g";
493                         led-cur = /bits/ 8 <50>;
494                         max-cur = /bits/ 8 <100>;
495                 };
496
497                 chan6 {
498                         chan-name = "lp5523:r";
499                         led-cur = /bits/ 8 <50>;
500                         max-cur = /bits/ 8 <100>;
501                 };
502
503                 chan7 {
504                         chan-name = "lp5523:kb5";
505                         led-cur = /bits/ 8 <50>;
506                         max-cur = /bits/ 8 <100>;
507                 };
508
509                 chan8 {
510                         chan-name = "lp5523:kb6";
511                         led-cur = /bits/ 8 <50>;
512                         max-cur = /bits/ 8 <100>;
513                 };
514         };
515
516         bq27200: bq27200@55 {
517                 compatible = "ti,bq27200";
518                 reg = <0x55>;
519         };
520
521         tpa6130a2: tpa6130a2@60 {
522                 compatible = "ti,tpa6130a2";
523                 reg = <0x60>;
524
525                 Vdd-supply = <&vmmc2>;
526
527                 power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */
528         };
529
530         bq24150a: bq24150a@6b {
531                 compatible = "ti,bq24150a";
532                 reg = <0x6b>;
533
534                 ti,current-limit = <100>;
535                 ti,weak-battery-voltage = <3400>;
536                 ti,battery-regulation-voltage = <4200>;
537                 ti,charge-current = <650>;
538                 ti,termination-current = <100>;
539                 ti,resistor-sense = <68>;
540
541                 ti,usb-charger-detection = <&isp1704>;
542         };
543 };
544
545 &i2c3 {
546         pinctrl-names = "default";
547         pinctrl-0 = <&i2c3_pins>;
548
549         clock-frequency = <400000>;
550 };
551
552 &mmc1 {
553         pinctrl-names = "default";
554         pinctrl-0 = <&mmc1_pins>;
555         vmmc-supply = <&vmmc1>;
556         bus-width = <4>;
557         cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
558 };
559
560 /* most boards use vaux3, only some old versions use vmmc2 instead */
561 &mmc2 {
562         pinctrl-names = "default";
563         pinctrl-0 = <&mmc2_pins>;
564         vmmc-supply = <&vaux3>;
565         vmmc_aux-supply = <&vsim>;
566         bus-width = <8>;
567         non-removable;
568 };
569
570 &mmc3 {
571         status = "disabled";
572 };
573
574 &gpmc {
575         ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
576
577         /* gpio-irq for dma: 65 */
578
579         onenand@0,0 {
580                 #address-cells = <1>;
581                 #size-cells = <1>;
582                 reg = <0 0 0x10000000>;
583
584                 gpmc,sync-read;
585                 gpmc,sync-write;
586                 gpmc,burst-length = <16>;
587                 gpmc,burst-read;
588                 gpmc,burst-wrap;
589                 gpmc,burst-write;
590                 gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
591                 gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
592                 gpmc,cs-on-ns = <0>;
593                 gpmc,cs-rd-off-ns = <87>;
594                 gpmc,cs-wr-off-ns = <87>;
595                 gpmc,adv-on-ns = <0>;
596                 gpmc,adv-rd-off-ns = <10>;
597                 gpmc,adv-wr-off-ns = <10>;
598                 gpmc,oe-on-ns = <15>;
599                 gpmc,oe-off-ns = <87>;
600                 gpmc,we-on-ns = <0>;
601                 gpmc,we-off-ns = <87>;
602                 gpmc,rd-cycle-ns = <112>;
603                 gpmc,wr-cycle-ns = <112>;
604                 gpmc,access-ns = <81>;
605                 gpmc,page-burst-access-ns = <15>;
606                 gpmc,bus-turnaround-ns = <0>;
607                 gpmc,cycle2cycle-delay-ns = <0>;
608                 gpmc,wait-monitoring-ns = <0>;
609                 gpmc,clk-activation-ns = <5>;
610                 gpmc,wr-data-mux-bus-ns = <30>;
611                 gpmc,wr-access-ns = <81>;
612                 gpmc,sync-clk-ps = <15000>;
613
614                 /*
615                  * MTD partition table corresponding to Nokia's
616                  * Maemo 5 (Fremantle) release.
617                  */
618                 partition@0 {
619                         label = "bootloader";
620                         reg = <0x00000000 0x00020000>;
621                         read-only;
622                 };
623                 partition@1 {
624                         label = "config";
625                         reg = <0x00020000 0x00060000>;
626                 };
627                 partition@2 {
628                         label = "log";
629                         reg = <0x00080000 0x00040000>;
630                 };
631                 partition@3 {
632                         label = "kernel";
633                         reg = <0x000c0000 0x00200000>;
634                 };
635                 partition@4 {
636                         label = "initfs";
637                         reg = <0x002c0000 0x00200000>;
638                 };
639                 partition@5 {
640                         label = "rootfs";
641                         reg = <0x004c0000 0x0fb40000>;
642                 };
643         };
644 };
645
646 &mcspi1 {
647         /*
648          * For some reason, touchscreen is necessary for screen to work at
649          * all on real hw. It works well without it on emulator.
650          *
651          * Also... order in the device tree actually matters here.
652          */
653         tsc2005@0 {
654                 compatible = "ti,tsc2005";
655                 spi-max-frequency = <6000000>;
656                 reg = <0>;
657
658                 vio-supply = <&vio>;
659
660                 reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */
661                 interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */
662
663                 touchscreen-fuzz-x = <4>;
664                 touchscreen-fuzz-y = <7>;
665                 touchscreen-fuzz-pressure = <2>;
666                 touchscreen-max-x = <4096>;
667                 touchscreen-max-y = <4096>;
668                 touchscreen-max-pressure = <2048>;
669
670                 ti,x-plate-ohms = <280>;
671                 ti,esd-recovery-timeout-ms = <8000>;
672         };
673
674         acx565akm@2 {
675                 compatible = "sony,acx565akm";
676                 spi-max-frequency = <6000000>;
677                 reg = <2>;
678
679                 pinctrl-names = "default";
680                 pinctrl-0 = <&acx565akm_pins>;
681
682                 label = "lcd";
683                 reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
684
685                 port {
686                         lcd_in: endpoint {
687                                 remote-endpoint = <&sdi_out>;
688                         };
689                 };
690         };
691 };
692
693 &mcspi4 {
694         pinctrl-names = "default";
695         pinctrl-0 = <&mcspi4_pins>;
696
697         wl1251@0 {
698                 pinctrl-names = "default";
699                 pinctrl-0 = <&wl1251_pins>;
700
701                 vio-supply = <&vio>;
702
703                 compatible = "ti,wl1251";
704                 reg = <0>;
705                 spi-max-frequency = <48000000>;
706
707                 spi-cpol;
708                 spi-cpha;
709
710                 ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */
711
712                 interrupt-parent = <&gpio2>;
713                 interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */
714         };
715 };
716
717 &usb_otg_hs {
718         interface-type = <0>;
719         usb-phy = <&usb2_phy>;
720         phys = <&usb2_phy>;
721         phy-names = "usb2-phy";
722         mode = <2>;
723         power = <50>;
724 };
725
726 &uart1 {
727         status = "disabled";
728 };
729
730 &uart2 {
731         interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
732         pinctrl-names = "default";
733         pinctrl-0 = <&uart2_pins>;
734 };
735
736 &uart3 {
737         interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
738         pinctrl-names = "default";
739         pinctrl-0 = <&uart3_pins>;
740 };
741
742 &dss {
743         status = "ok";
744
745         pinctrl-names = "default";
746         pinctrl-0 = <&dss_sdi_pins>;
747
748         vdds_sdi-supply = <&vaux1>;
749
750         ports {
751                 #address-cells = <1>;
752                 #size-cells = <0>;
753
754                 port@1 {
755                         reg = <1>;
756
757                         sdi_out: endpoint {
758                                 remote-endpoint = <&lcd_in>;
759                                 datapairs = <2>;
760                         };
761                 };
762         };
763 };
764
765 &venc {
766         status = "ok";
767
768         vdda-supply = <&vdac>;
769
770         port {
771                 venc_out: endpoint {
772                         remote-endpoint = <&tv_connector_in>;
773                         ti,channels = <1>;
774                 };
775         };
776 };
777
778 &mcbsp2 {
779         status = "ok";
780 };
781
782 &ssi_port1 {
783         pinctrl-names = "default";
784         pinctrl-0 = <&ssi_pins>;
785
786         ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
787
788         modem: hsi-client {
789                 compatible = "nokia,n900-modem";
790
791                 pinctrl-names = "default";
792                 pinctrl-0 = <&modem_pins>;
793
794                 hsi-channel-ids = <0>, <1>, <2>, <3>;
795                 hsi-channel-names = "mcsaab-control",
796                                     "speech-control",
797                                     "speech-data",
798                                     "mcsaab-data";
799                 hsi-speed-kbps = <55000>;
800                 hsi-mode = "frame";
801                 hsi-flow = "synchronized";
802                 hsi-arb-mode = "round-robin";
803
804                 interrupts-extended = <&gpio3 8 IRQ_TYPE_EDGE_FALLING>; /* 72 */
805
806                 gpios = <&gpio3  6 GPIO_ACTIVE_HIGH>, /* 70 */
807                         <&gpio3  9 GPIO_ACTIVE_HIGH>, /* 73 */
808                         <&gpio3 10 GPIO_ACTIVE_HIGH>, /* 74 */
809                         <&gpio3 11 GPIO_ACTIVE_HIGH>, /* 75 */
810                         <&gpio5 29 GPIO_ACTIVE_HIGH>; /* 157 */
811                 gpio-names = "cmt_apeslpx",
812                              "cmt_rst_rq",
813                              "cmt_en",
814                              "cmt_rst",
815                              "cmt_bsi";
816         };
817 };
818
819 &ssi_port2 {
820         status = "disabled";
821 };