GNU Linux-libre 4.9.283-gnu1
[releases.git] / arch / arm / boot / dts / omap3-gta04.dtsi
1 /*
2  * Copyright (C) 2013 Marek Belisko <marek@goldelico.com>
3  *
4  * Based on omap3-beagle-xm.dts
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 /dts-v1/;
11
12 #include "omap36xx.dtsi"
13
14 / {
15         model = "OMAP3 GTA04";
16         compatible = "ti,omap3-gta04", "ti,omap36xx", "ti,omap3";
17
18         cpus {
19                 cpu@0 {
20                         cpu0-supply = <&vcc>;
21                 };
22         };
23
24         memory@80000000 {
25                 device_type = "memory";
26                 reg = <0x80000000 0x20000000>; /* 512 MB */
27         };
28
29         aliases {
30                 display0 = &lcd;
31                 display1 = &tv0;
32         };
33
34         gpio-keys {
35                 compatible = "gpio-keys";
36
37                 aux-button {
38                         label = "aux";
39                         linux,code = <169>;
40                         gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
41                         wakeup-source;
42                 };
43         };
44
45         sound {
46                 compatible = "ti,omap-twl4030";
47                 ti,model = "gta04";
48
49                 ti,mcbsp = <&mcbsp2>;
50         };
51
52          /* GSM audio */
53         sound_telephony {
54                 compatible = "simple-audio-card";
55                 simple-audio-card,name = "GTA04 voice";
56                 simple-audio-card,bitclock-master = <&telephony_link_master>;
57                 simple-audio-card,frame-master = <&telephony_link_master>;
58                 simple-audio-card,format = "i2s";
59
60                 simple-audio-card,cpu {
61                         sound-dai = <&mcbsp4>;
62                 };
63
64                 telephony_link_master: simple-audio-card,codec {
65                         sound-dai = <&gtm601_codec>;
66                 };
67         };
68
69         gtm601_codec: gsm_codec {
70                 compatible = "option,gtm601";
71                 #sound-dai-cells = <0>;
72         };
73
74         spi_lcd: spi_lcd {
75                 compatible = "spi-gpio";
76                 #address-cells = <0x1>;
77                 #size-cells = <0x0>;
78                 pinctrl-names = "default";
79                 pinctrl-0 = <&spi_gpio_pins>;
80
81                 gpio-sck = <&gpio1 12 GPIO_ACTIVE_HIGH>;
82                 gpio-miso = <&gpio1 18 GPIO_ACTIVE_HIGH>;
83                 gpio-mosi = <&gpio1 20 GPIO_ACTIVE_HIGH>;
84                 cs-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
85                 num-chipselects = <1>;
86
87                 /* lcd panel */
88                 lcd: td028ttec1@0 {
89                         compatible = "toppoly,td028ttec1";
90                         reg = <0>;
91                         spi-max-frequency = <100000>;
92                         spi-cpol;
93                         spi-cpha;
94
95                         label = "lcd";
96                         port {
97                                 lcd_in: endpoint {
98                                         remote-endpoint = <&dpi_out>;
99                                 };
100                         };
101                 };
102         };
103
104         backlight {
105                 compatible = "pwm-backlight";
106                 pwms = <&pwm11 0 12000000 0>;
107                 pwm-names = "backlight";
108                 brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>;
109                 default-brightness-level = <9>; /* => 90 */
110                 pinctrl-names = "default";
111                 pinctrl-0 = <&backlight_pins>;
112         };
113
114         pwm11: dmtimer-pwm {
115                 compatible = "ti,omap-dmtimer-pwm";
116                 ti,timers = <&timer11>;
117                 #pwm-cells = <3>;
118         };
119
120         hsusb2_phy: hsusb2_phy {
121                 compatible = "usb-nop-xceiv";
122                 reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
123         };
124
125         tv0: connector {
126                 compatible = "composite-video-connector";
127                 label = "tv";
128
129                 port {
130                         tv_connector_in: endpoint {
131                                 remote-endpoint = <&opa_out>;
132                         };
133                 };
134         };
135
136         tv_amp: opa362 {
137                 compatible = "ti,opa362";
138                 enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;    /* GPIO_23 to enable video out amplifier */
139
140                 ports {
141                         #address-cells = <1>;
142                         #size-cells = <0>;
143
144                         port@0 {
145                                 reg = <0>;
146                                 opa_in: endpoint {
147                                         remote-endpoint = <&venc_out>;
148                                 };
149                         };
150
151                         port@1 {
152                                 reg = <1>;
153                                 opa_out: endpoint {
154                                         remote-endpoint = <&tv_connector_in>;
155                                 };
156                         };
157                 };
158         };
159
160         wifi_pwrseq: wifi_pwrseq {
161                 compatible = "mmc-pwrseq-simple";
162                 reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>;     /* W2CBW003 reset through tca6507 */
163         };
164 };
165
166 &omap3_pmx_core {
167         pinctrl-names = "default";
168         pinctrl-0 = <
169                         &hsusb2_pins
170         >;
171
172         hsusb2_pins: pinmux_hsusb2_pins {
173                 pinctrl-single,pins = <
174                         OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi1_cs3.hsusb2_data2 */
175                         OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_clk.hsusb2_data7 */
176                         OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_simo.hsusb2_data4 */
177                         OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_somi.hsusb2_data5 */
178                         OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_cs0.hsusb2_data6 */
179                         OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_cs1.hsusb2_data3 */
180                 >;
181         };
182
183         uart1_pins: pinmux_uart1_pins {
184                 pinctrl-single,pins = <
185                         OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0)                /* uart1_rx.uart1_rx */
186                         OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0)               /* uart1_tx.uart1_tx */
187                 >;
188         };
189
190         uart2_pins: pinmux_uart2_pins {
191                 pinctrl-single,pins = <
192                         OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)                /* uart2_rx.uart2_rx */
193                         OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)               /* uart2_tx.uart2_tx */
194                 >;
195         };
196
197         uart3_pins: pinmux_uart3_pins {
198                 pinctrl-single,pins = <
199                         OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)                /* uart3_rx.uart3_rx */
200                         OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)               /* uart3_tx.uart3_tx */
201                 >;
202         };
203
204         mmc1_pins: pinmux_mmc1_pins {
205                 pinctrl-single,pins = <
206                         OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_clk.sdmmc1_clk */
207                         OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_cmd.sdmmc1_cmd */
208                         OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat0.sdmmc1_dat0 */
209                         OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat1.sdmmc1_dat1 */
210                         OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat2.sdmmc1_dat2 */
211                         OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat3.sdmmc1_dat3 */
212                 >;
213         };
214
215         backlight_pins: backlight_pins_pimnux {
216                 pinctrl-single,pins = <
217                         OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3)            /* gpt11/gpio57 */
218                 >;
219         };
220
221         dss_dpi_pins: pinmux_dss_dpi_pins {
222                pinctrl-single,pins = <
223                         OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)   /* dss_pclk.dss_pclk */
224                         OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)   /* dss_hsync.dss_hsync */
225                         OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)   /* dss_vsync.dss_vsync */
226                         OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)   /* dss_acbias.dss_acbias */
227                         OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   /* dss_data0.dss_data0 */
228                         OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   /* dss_data1.dss_data1 */
229                         OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   /* dss_data2.dss_data2 */
230                         OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   /* dss_data3.dss_data3 */
231                         OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   /* dss_data4.dss_data4 */
232                         OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   /* dss_data5.dss_data5 */
233                         OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)   /* dss_data6.dss_data6 */
234                         OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)   /* dss_data7.dss_data7 */
235                         OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)   /* dss_data8.dss_data8 */
236                         OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)   /* dss_data9.dss_data9 */
237                         OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)   /* dss_data10.dss_data10 */
238                         OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)   /* dss_data11.dss_data11 */
239                         OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)   /* dss_data12.dss_data12 */
240                         OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)   /* dss_data13.dss_data13 */
241                         OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)   /* dss_data14.dss_data14 */
242                         OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)   /* dss_data15.dss_data15 */
243                         OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0)   /* dss_data16.dss_data16 */
244                         OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0)   /* dss_data17.dss_data17 */
245                         OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0)   /* dss_data18.dss_data18 */
246                         OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0)   /* dss_data19.dss_data19 */
247                         OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0)   /* dss_data20.dss_data20 */
248                         OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0)   /* dss_data21.dss_data21 */
249                         OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0)   /* dss_data22.dss_data22 */
250                         OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0)   /* dss_data23.dss_data23 */
251                 >;
252        };
253
254         hdq_pins: hdq_pins {
255                 pinctrl-single,pins = <
256                         OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
257                 >;
258         };
259
260         bma180_pins: pinmux_bma180_pins {
261                 pinctrl-single,pins = <
262                         OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
263                 >;
264         };
265
266         itg3200_pins: pinmux_itg3200_pins {
267                 pinctrl-single,pins = <
268                         OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
269                 >;
270         };
271
272         hmc5843_pins: pinmux_hmc5843_pins {
273                 pinctrl-single,pins = <
274                         OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
275                 >;
276         };
277
278         penirq_pins: pinmux_penirq_pins {
279                 pinctrl-single,pins = <
280                         /* here we could enable to wakeup the cpu from suspend by a pen touch */
281                         OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio160 */
282                 >;
283         };
284 };
285
286 &omap3_pmx_core2 {
287         pinctrl-names = "default";
288         pinctrl-0 = <
289                         &hsusb2_2_pins
290         >;
291
292         hsusb2_2_pins: pinmux_hsusb2_2_pins {
293                 pinctrl-single,pins = <
294                         OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3)            /* etk_d10.hsusb2_clk */
295                         OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3)            /* etk_d11.hsusb2_stp */
296                         OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3)    /* etk_d12.hsusb2_dir */
297                         OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3)    /* etk_d13.hsusb2_nxt */
298                         OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3)    /* etk_d14.hsusb2_data0 */
299                         OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3)    /* etk_d15.hsusb2_data1 */
300                 >;
301         };
302
303         spi_gpio_pins: spi_gpio_pinmux {
304                 pinctrl-single,pins = <
305                         OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */
306                         OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */
307                         OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */
308                         OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */
309                 >;
310         };
311 };
312
313 &i2c1 {
314         clock-frequency = <2600000>;
315
316         twl: twl@48 {
317                 reg = <0x48>;
318                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
319                 interrupt-parent = <&intc>;
320
321                 twl_audio: audio {
322                         compatible = "ti,twl4030-audio";
323                         ti,enable-vibra = <1>;
324                         codec {
325                                 ti,ramp_delay_value = <3>;
326                         };
327                 };
328
329                 twl_power: power {
330                         compatible = "ti,twl4030-power";
331                         ti,use_poweroff;
332                 };
333         };
334 };
335
336 #include "twl4030.dtsi"
337 #include "twl4030_omap3.dtsi"
338
339 &i2c2 {
340         clock-frequency = <400000>;
341
342         /* pressure sensor */
343         bmp085@77 {
344                 compatible = "bosch,bmp085";
345                 reg = <0x77>;
346                 interrupt-parent = <&gpio4>;
347                 interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */
348         };
349
350         /* accelerometer */
351         bma180@41 {
352                 compatible = "bosch,bma180";
353                 reg = <0x41>;
354                 pinctrl-names = "default";
355                 pintcrl-0 = <&bma180_pins>;
356                 interrupt-parent = <&gpio4>;
357                 interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */
358         };
359
360         /* gyroscope */
361         itg3200@68 {
362                 compatible = "invensense,itg3200";
363                 reg = <0x68>;
364                 pinctrl-names = "default";
365                 pinctrl-0 = <&itg3200_pins>;
366                 interrupt-parent = <&gpio2>;
367                 interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
368         };
369
370         /* leds + gpios */
371         tca6507: tca6507@45 {
372                 compatible = "ti,tca6507";
373                 #address-cells = <1>;
374                 #size-cells = <0>;
375                 reg = <0x45>;
376
377                 gpio-controller;
378                 #gpio-cells = <2>;
379
380                 gta04_led0: red_aux@0 {
381                         label = "gta04:red:aux";
382                         reg = <0x0>;
383                 };
384
385                 gta04_led1: green_aux@1 {
386                         label = "gta04:green:aux";
387                         reg = <0x1>;
388                 };
389
390                 gta04_led3: red_power@3 {
391                         label = "gta04:red:power";
392                         reg = <0x3>;
393                         linux,default-trigger = "default-on";
394                 };
395
396                 gta04_led4: green_power@4 {
397                         label = "gta04:green:power";
398                         reg = <0x4>;
399                 };
400
401                 wifi_reset: wifi_reset@6 {
402                         reg = <0x6>;
403                         compatible = "gpio";
404                 };
405         };
406
407         /* compass aka magnetometer */
408         hmc5843@1e {
409                 compatible = "honeywell,hmc5883l";
410                 reg = <0x1e>;
411                 pinctrl-names = "default";
412                 pinctrl-0 = <&hmc5843_pins>;
413                 interrupt-parent = <&gpio4>;
414                 interrupts = <16 IRQ_TYPE_EDGE_FALLING>;        /* gpio112 */
415         };
416
417         /* touchscreen */
418         tsc2007@48 {
419                 compatible = "ti,tsc2007";
420                 reg = <0x48>;
421                 pinctrl-names = "default";
422                 pinctrl-0 = <&penirq_pins>;
423                 interrupt-parent = <&gpio6>;
424                 interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
425                 gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;     /* GPIO_160 */
426                 ti,x-plate-ohms = <600>;
427                 touchscreen-size-x = <480>;
428                 touchscreen-size-y = <640>;
429                 touchscreen-max-pressure = <1000>;
430                 touchscreen-fuzz-x = <3>;
431                 touchscreen-fuzz-y = <8>;
432                 touchscreen-fuzz-pressure = <10>;
433                 touchscreen-inverted-y;
434         };
435
436         /* RFID EEPROM */
437         m24lr64@50 {
438                 compatible = "at,24c64";
439                 reg = <0x50>;
440         };
441 };
442
443 &i2c3 {
444         clock-frequency = <100000>;
445 };
446
447 &usb_otg_hs {
448         interface-type = <0>;
449         usb-phy = <&usb2_phy>;
450         phys = <&usb2_phy>;
451         phy-names = "usb2-phy";
452         mode = <3>;
453         power = <50>;
454 };
455
456 &usbhshost {
457         port2-mode = "ehci-phy";
458 };
459
460 &usbhsehci {
461         phys = <0 &hsusb2_phy>;
462 };
463
464 &mmc1 {
465         pinctrl-names = "default";
466         pinctrl-0 = <&mmc1_pins>;
467         vmmc-supply = <&vmmc1>;
468         bus-width = <4>;
469         ti,non-removable;
470 };
471
472 &mmc2 {
473         vmmc-supply = <&vaux4>;
474         bus-width = <4>;
475         ti,non-removable;
476         cap-power-off-card;
477         mmc-pwrseq = <&wifi_pwrseq>;
478 };
479
480 &mmc3 {
481         status = "disabled";
482 };
483
484 &twl_keypad {
485         status = "disabled";
486 };
487
488 &uart1 {
489         pinctrl-names = "default";
490         pinctrl-0 = <&uart1_pins>;
491 };
492
493 &uart2 {
494         pinctrl-names = "default";
495         pinctrl-0 = <&uart2_pins>;
496 };
497
498 &uart3 {
499         pinctrl-names = "default";
500         pinctrl-0 = <&uart3_pins>;
501 };
502
503 &charger {
504         ti,bb-uvolt = <3200000>;
505         ti,bb-uamp = <150>;
506 };
507
508 /* spare */
509 &vaux1 {
510         regulator-min-microvolt = <2500000>;
511         regulator-max-microvolt = <3000000>;
512 };
513
514 /* sensors */
515 &vaux2 {
516         regulator-min-microvolt = <2800000>;
517         regulator-max-microvolt = <2800000>;
518         regulator-always-on;
519 };
520
521 /* camera */
522 &vaux3 {
523         regulator-min-microvolt = <2500000>;
524         regulator-max-microvolt = <2500000>;
525 };
526
527 /* WLAN/BT */
528 &vaux4 {
529         regulator-min-microvolt = <2800000>;
530         regulator-max-microvolt = <3150000>;
531 };
532
533 /* GPS LNA */
534 &vsim {
535         regulator-min-microvolt = <2800000>;
536         regulator-max-microvolt = <3150000>;
537 };
538
539 /* Needed to power the DPI pins */
540
541 &vpll2 {
542         regulator-always-on;
543 };
544
545 &dss {
546         pinctrl-names = "default";
547         pinctrl-0 = < &dss_dpi_pins >;
548
549         status = "okay";
550         vdds_dsi-supply = <&vpll2>;
551
552         port {
553                 dpi_out: endpoint {
554                         remote-endpoint = <&lcd_in>;
555                         data-lines = <24>;
556                 };
557         };
558 };
559
560 &venc {
561         status = "okay";
562
563         vdda-supply = <&vdac>;
564
565         #address-cells = <1>;
566         #size-cells = <0>;
567
568         port {
569                 reg = <0>;
570                 venc_out: endpoint {
571                         remote-endpoint = <&opa_in>;
572                         ti,channels = <1>;
573                         ti,invert-polarity;
574                 };
575         };
576 };
577
578 &gpmc {
579         ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
580
581         nand@0,0 {
582                 compatible = "ti,omap2-nand";
583                 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
584                 interrupt-parent = <&gpmc>;
585                 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
586                              <1 IRQ_TYPE_NONE>; /* termcount */
587                 nand-bus-width = <16>;
588                 ti,nand-ecc-opt = "bch8";
589
590                 gpmc,sync-clk-ps = <0>;
591                 gpmc,cs-on-ns = <0>;
592                 gpmc,cs-rd-off-ns = <44>;
593                 gpmc,cs-wr-off-ns = <44>;
594                 gpmc,adv-on-ns = <6>;
595                 gpmc,adv-rd-off-ns = <34>;
596                 gpmc,adv-wr-off-ns = <44>;
597                 gpmc,we-off-ns = <40>;
598                 gpmc,oe-off-ns = <54>;
599                 gpmc,access-ns = <64>;
600                 gpmc,rd-cycle-ns = <82>;
601                 gpmc,wr-cycle-ns = <82>;
602                 gpmc,wr-access-ns = <40>;
603                 gpmc,wr-data-mux-bus-ns = <0>;
604                 gpmc,device-width = <2>;
605
606                 #address-cells = <1>;
607                 #size-cells = <1>;
608
609                 x-loader@0 {
610                         label = "X-Loader";
611                         reg = <0 0x80000>;
612                 };
613
614                 bootloaders@80000 {
615                         label = "U-Boot";
616                         reg = <0x80000 0x1c0000>;
617                 };
618
619                 bootloaders_env@240000 {
620                         label = "U-Boot Env";
621                         reg = <0x240000 0x40000>;
622                 };
623
624                 kernel@280000 {
625                         label = "Kernel";
626                         reg = <0x280000 0x600000>;
627                 };
628
629                 filesystem@880000 {
630                         label = "File System";
631                         reg = <0x880000 0>;     /* 0 = MTDPART_SIZ_FULL */
632                 };
633         };
634 };
635
636 &mcbsp2 {
637         status = "okay";
638 };
639
640 &hdqw1w {
641         pinctrl-names = "default";
642         pinctrl-0 = <&hdq_pins>;
643 };
644
645 &mcbsp4 {
646         status = "okay";
647 };