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