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