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