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