Merge tag 'uniphier-dt-v4.17' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / arch / arm / boot / dts / omap4-droid4-xt894.dts
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License version 2 as
4  * published by the Free Software Foundation.
5  */
6 /dts-v1/;
7
8 #include <dt-bindings/input/input.h>
9 #include "omap443x.dtsi"
10 #include "motorola-cpcap-mapphone.dtsi"
11
12 / {
13         model = "Motorola Droid 4 XT894";
14         compatible = "motorola,droid4", "ti,omap4430", "ti,omap4";
15
16         chosen {
17                 stdout-path = &uart3;
18         };
19
20         aliases {
21                 display0 = &lcd0;
22                 display1 = &hdmi0;
23         };
24
25         /*
26          * We seem to have only 1021 MB accessible, 1021 - 1022 is locked,
27          * then 1023 - 1024 seems to contain mbm.
28          */
29         memory {
30                 device_type = "memory";
31                 reg = <0x80000000 0x3fd00000>;  /* 1021 MB */
32         };
33
34         /* Poweroff GPIO probably connected to CPCAP */
35         gpio-poweroff {
36                 compatible = "gpio-poweroff";
37                 pinctrl-0 = <&poweroff_gpio>;
38                 pinctrl-names = "default";
39                 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;    /* gpio50 */
40         };
41
42         hdmi0: connector {
43                 compatible = "hdmi-connector";
44                 pinctrl-0 = <&hdmi_hpd_gpio>;
45                 pinctrl-names = "default";
46                 label = "hdmi";
47                 type = "d";
48
49                 hpd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;       /* gpio63 */
50
51                 port {
52                         hdmi_connector_in: endpoint {
53                                 remote-endpoint = <&hdmi_out>;
54                         };
55                 };
56         };
57
58         /*
59          * HDMI 5V regulator probably sourced from battery. Let's keep
60          * keep this as always enabled for HDMI to work until we've
61          * figured what the encoder chip is.
62          */
63         hdmi_regulator: regulator-hdmi {
64                 compatible = "regulator-fixed";
65                 regulator-name = "hdmi";
66                 regulator-min-microvolt = <5000000>;
67                 regulator-max-microvolt = <5000000>;
68                 gpio = <&gpio2 27 GPIO_ACTIVE_HIGH>;    /* gpio59 */
69                 enable-active-high;
70                 regulator-always-on;
71         };
72
73         /* HS USB Host PHY on PORT 1 */
74         hsusb1_phy: hsusb1_phy {
75                 compatible = "usb-nop-xceiv";
76                 #phy-cells = <0>;
77         };
78
79         /* LCD regulator from sw5 source */
80         lcd_regulator: regulator-lcd {
81                 compatible = "regulator-fixed";
82                 regulator-name = "lcd";
83                 regulator-min-microvolt = <5050000>;
84                 regulator-max-microvolt = <5050000>;
85                 gpio = <&gpio4 0 GPIO_ACTIVE_HIGH>;     /* gpio96 */
86                 enable-active-high;
87                 vin-supply = <&sw5>;
88         };
89
90         /* This is probably coming straight from the battery.. */
91         wl12xx_vmmc: regulator-wl12xx {
92                 compatible = "regulator-fixed";
93                 regulator-name = "vwl1271";
94                 regulator-min-microvolt = <1650000>;
95                 regulator-max-microvolt = <1650000>;
96                 gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>;    /* gpio94 */
97                 startup-delay-us = <70000>;
98                 enable-active-high;
99         };
100
101         gpio_keys {
102                 compatible = "gpio-keys";
103
104                 volume_down {
105                         label = "Volume Down";
106                         gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; /* gpio154 */
107                         linux,code = <KEY_VOLUMEDOWN>;
108                         linux,can-disable;
109                 };
110
111                 slider {
112                         label = "Keypad Slide";
113                         gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>; /* gpio122 */
114                         linux,input-type = <EV_SW>;
115                         linux,code = <SW_KEYPAD_SLIDE>;
116                         linux,can-disable;
117
118                 };
119         };
120
121         soundcard {
122                 compatible = "audio-graph-card";
123                 label = "Droid 4 Audio";
124
125                 simple-graph-card,widgets =
126                         "Speaker", "Earpiece",
127                         "Speaker", "Loudspeaker",
128                         "Headphone", "Headphone Jack",
129                         "Microphone", "Internal Mic";
130
131                 simple-graph-card,routing =
132                         "Earpiece", "EP",
133                         "Loudspeaker", "SPKR",
134                         "Headphone Jack", "HSL",
135                         "Headphone Jack", "HSR",
136                         "MICR", "Internal Mic";
137
138                 dais = <&mcbsp2_port>, <&mcbsp3_port>;
139         };
140 };
141
142 &dss {
143         status = "okay";
144 };
145
146 &gpio6 {
147         pwm8: dmtimer-pwm-8 {
148                 pinctrl-names = "default";
149                 pinctrl-0 = <&vibrator_direction_pin>;
150
151                 compatible = "ti,omap-dmtimer-pwm";
152                 #pwm-cells = <3>;
153                 ti,timers = <&timer8>;
154                 ti,clock-source = <0x01>;
155         };
156
157         pwm9: dmtimer-pwm-9 {
158                 pinctrl-names = "default";
159                 pinctrl-0 = <&vibrator_enable_pin>;
160
161                 compatible = "ti,omap-dmtimer-pwm";
162                 #pwm-cells = <3>;
163                 ti,timers = <&timer9>;
164                 ti,clock-source = <0x01>;
165         };
166
167         vibrator {
168                 compatible = "pwm-vibrator";
169                 pwms = <&pwm9 0 10000000 0>, <&pwm8 0 10000000 0>;
170                 pwm-names = "enable", "direction";
171                 direction-duty-cycle-ns = <10000000>;
172         };
173
174 };
175
176 &dsi1 {
177         status = "okay";
178         vdd-supply = <&vcsi>;
179
180         port {
181                 dsi1_out_ep: endpoint {
182                         remote-endpoint = <&lcd0_in>;
183                         lanes = <0 1 2 3 4 5>;
184                 };
185         };
186
187         lcd0: display {
188                 compatible = "panel-dsi-cm";
189                 label = "lcd0";
190                 vddi-supply = <&lcd_regulator>;
191                 reset-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>;      /* gpio101 */
192
193                 width-mm = <50>;
194                 height-mm = <89>;
195                 backlight = <&lcd_backlight>;
196
197                 panel-timing {
198                         clock-frequency = <0>;          /* Calculated by dsi */
199
200                         hback-porch = <2>;
201                         hactive = <540>;
202                         hfront-porch = <0>;
203                         hsync-len = <2>;
204
205                         vback-porch = <1>;
206                         vactive = <960>;
207                         vfront-porch = <0>;
208                         vsync-len = <1>;
209
210                         hsync-active = <0>;
211                         vsync-active = <0>;
212                         de-active = <1>;
213                         pixelclk-active = <1>;
214                 };
215
216                 port {
217                         lcd0_in: endpoint {
218                                 remote-endpoint = <&dsi1_out_ep>;
219                         };
220                 };
221         };
222 };
223
224 &hdmi {
225         status = "okay";
226         pinctrl-0 = <&dss_hdmi_pins>;
227         pinctrl-names = "default";
228         vdda-supply = <&vdac>;
229
230         port {
231                 hdmi_out: endpoint {
232                         remote-endpoint = <&hdmi_connector_in>;
233                         lanes = <1 0 3 2 5 4 7 6>;
234                 };
235         };
236 };
237
238 &i2c1 {
239         tmp105@48 {
240                 compatible = "ti,tmp105";
241                 reg = <0x48>;
242                 pinctrl-0 = <&tmp105_irq>;
243                 pinctrl-names = "default";
244                 /* kpd_row0.gpio_178 */
245                 interrupts-extended = <&gpio6 18 IRQ_TYPE_EDGE_FALLING
246                                        &omap4_pmx_core 0x14e>;
247                 interrupt-names = "irq", "wakeup";
248                 wakeup-source;
249         };
250 };
251
252 &keypad {
253         keypad,num-rows = <8>;
254         keypad,num-columns = <8>;
255         linux,keymap = <
256
257         /* Row 1 */
258         MATRIX_KEY(0, 2, KEY_1)
259         MATRIX_KEY(0, 6, KEY_2)
260         MATRIX_KEY(2, 3, KEY_3)
261         MATRIX_KEY(0, 7, KEY_4)
262         MATRIX_KEY(0, 4, KEY_5)
263         MATRIX_KEY(5, 5, KEY_6)
264         MATRIX_KEY(0, 1, KEY_7)
265         MATRIX_KEY(0, 5, KEY_8)
266         MATRIX_KEY(0, 0, KEY_9)
267         MATRIX_KEY(1, 6, KEY_0)
268
269         /* Row 2 */
270         MATRIX_KEY(3, 4, KEY_APOSTROPHE)
271         MATRIX_KEY(7, 6, KEY_Q)
272         MATRIX_KEY(7, 7, KEY_W)
273         MATRIX_KEY(7, 2, KEY_E)
274         MATRIX_KEY(1, 0, KEY_R)
275         MATRIX_KEY(4, 4, KEY_T)
276         MATRIX_KEY(1, 2, KEY_Y)
277         MATRIX_KEY(6, 7, KEY_U)
278         MATRIX_KEY(2, 2, KEY_I)
279         MATRIX_KEY(5, 6, KEY_O)
280         MATRIX_KEY(3, 7, KEY_P)
281         MATRIX_KEY(6, 5, KEY_BACKSPACE)
282
283         /* Row 3 */
284         MATRIX_KEY(5, 4, KEY_TAB)
285         MATRIX_KEY(5, 7, KEY_A)
286         MATRIX_KEY(2, 7, KEY_S)
287         MATRIX_KEY(7, 0, KEY_D)
288         MATRIX_KEY(2, 6, KEY_F)
289         MATRIX_KEY(6, 2, KEY_G)
290         MATRIX_KEY(6, 6, KEY_H)
291         MATRIX_KEY(1, 4, KEY_J)
292         MATRIX_KEY(3, 1, KEY_K)
293         MATRIX_KEY(2, 1, KEY_L)
294         MATRIX_KEY(4, 6, KEY_ENTER)
295
296         /* Row 4 */
297         MATRIX_KEY(3, 6, KEY_LEFTSHIFT)         /* KEY_CAPSLOCK */
298         MATRIX_KEY(6, 1, KEY_Z)
299         MATRIX_KEY(7, 4, KEY_X)
300         MATRIX_KEY(5, 1, KEY_C)
301         MATRIX_KEY(1, 7, KEY_V)
302         MATRIX_KEY(2, 4, KEY_B)
303         MATRIX_KEY(4, 1, KEY_N)
304         MATRIX_KEY(1, 1, KEY_M)
305         MATRIX_KEY(3, 5, KEY_COMMA)
306         MATRIX_KEY(5, 2, KEY_DOT)
307         MATRIX_KEY(6, 3, KEY_UP)
308         MATRIX_KEY(7, 3, KEY_OK)
309
310         /* Row 5 */
311         MATRIX_KEY(2, 5, KEY_LEFTCTRL)          /* KEY_LEFTSHIFT */
312         MATRIX_KEY(4, 5, KEY_LEFTALT)           /* SYM */
313         MATRIX_KEY(6, 0, KEY_MINUS)
314         MATRIX_KEY(4, 7, KEY_EQUAL)
315         MATRIX_KEY(1, 5, KEY_SPACE)
316         MATRIX_KEY(3, 2, KEY_SLASH)
317         MATRIX_KEY(4, 3, KEY_LEFT)
318         MATRIX_KEY(5, 3, KEY_DOWN)
319         MATRIX_KEY(3, 3, KEY_RIGHT)
320
321         /* Side buttons, KEY_VOLUMEDOWN and KEY_PWER are on CPCAP? */
322         MATRIX_KEY(5, 0, KEY_VOLUMEUP)
323         >;
324 };
325
326 &mmc1 {
327         vmmc-supply = <&vwlan2>;
328         bus-width = <4>;
329         cd-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; /* gpio176 */
330 };
331
332 &mmc2 {
333         vmmc-supply = <&vsdio>;
334         bus-width = <8>;
335         non-removable;
336 };
337
338 &mmc3 {
339         vmmc-supply = <&wl12xx_vmmc>;
340         interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
341                                &omap4_pmx_core 0xde>;
342
343         non-removable;
344         bus-width = <4>;
345         cap-power-off-card;
346
347         #address-cells = <1>;
348         #size-cells = <0>;
349         wlcore: wlcore@2 {
350                 compatible = "ti,wl1285", "ti,wl1283";
351                 reg = <2>;
352                 interrupt-parent = <&gpio4>;
353                 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; /* gpio100 */
354                 ref-clock-frequency = <26000000>;
355                 tcxo-clock-frequency = <26000000>;
356         };
357 };
358
359 &i2c1 {
360         lm3532@38 {
361                 compatible = "ti,lm3532";
362                 reg = <0x38>;
363
364                 enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
365
366                 lcd_backlight: backlight {
367                         compatible = "ti,lm3532-backlight";
368
369                         lcd {
370                                 led-sources = <0 1 2>;
371                                 ramp-up-msec = <1>;
372                                 ramp-down-msec = <0>;
373                         };
374                 };
375         };
376 };
377
378 &i2c2 {
379         touchscreen@4a {
380                 compatible = "atmel,maxtouch";
381                 reg = <0x4a>;
382                 pinctrl-names = "default";
383                 pinctrl-0 = <&touchscreen_pins>;
384
385                 reset-gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; /* gpio173 */
386
387                 /* gpio_183 with sys_nirq2 pad as wakeup */
388                 interrupts-extended = <&gpio6 23 IRQ_TYPE_EDGE_FALLING>,
389                                       <&omap4_pmx_core 0x160>;
390                 interrupt-names = "irq", "wakeup";
391                 wakeup-source;
392         };
393
394         isl29030@44 {
395                 compatible = "isil,isl29030";
396                 reg = <0x44>;
397
398                 pinctrl-names = "default";
399                 pinctrl-0 = <&als_proximity_pins>;
400
401                 interrupt-parent = <&gpio6>;
402                 interrupts = <17 IRQ_TYPE_LEVEL_LOW>; /* gpio177 */
403         };
404 };
405
406 &omap4_pmx_core {
407
408         /* hdmi_hpd.gpio_63 */
409         hdmi_hpd_gpio: pinmux_hdmi_hpd_pins {
410                 pinctrl-single,pins = <
411                 OMAP4_IOPAD(0x098, PIN_INPUT | MUX_MODE3)
412                 >;
413         };
414
415         /* hdmi_cec.hdmi_cec, hdmi_scl.hdmi_scl, hdmi_sda.hdmi_sda */
416         dss_hdmi_pins: pinmux_dss_hdmi_pins {
417                 pinctrl-single,pins = <
418                 OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0)
419                 OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0)
420                 OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0)
421                 >;
422         };
423
424         /* gpmc_ncs0.gpio_50 */
425         poweroff_gpio: pinmux_poweroff_pins {
426                 pinctrl-single,pins = <
427                 OMAP4_IOPAD(0x074, PIN_OUTPUT_PULLUP | MUX_MODE3)
428                 >;
429         };
430
431         /* kpd_row0.gpio_178 */
432         tmp105_irq: pinmux_tmp105_irq {
433                 pinctrl-single,pins = <
434                 OMAP4_IOPAD(0x18e, PIN_INPUT_PULLUP | MUX_MODE3)
435                 >;
436         };
437
438         usb_gpio_mux_sel1: pinmux_usb_gpio_mux_sel1_pins {
439                 /* gpio_60 */
440                 pinctrl-single,pins = <
441                 OMAP4_IOPAD(0x088, PIN_OUTPUT | MUX_MODE3)
442                 >;
443         };
444
445         touchscreen_pins: pinmux_touchscreen_pins {
446                 pinctrl-single,pins = <
447                 OMAP4_IOPAD(0x180, PIN_OUTPUT | MUX_MODE3)
448                 OMAP4_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE3)
449                 >;
450         };
451
452         als_proximity_pins: pinmux_als_proximity_pins {
453                 pinctrl-single,pins = <
454                 OMAP4_IOPAD(0x18c, PIN_INPUT_PULLUP | MUX_MODE3)
455                 >;
456         };
457
458         usb_ulpi_pins: pinmux_usb_ulpi_pins {
459                 pinctrl-single,pins = <
460                 OMAP4_IOPAD(0x196, MUX_MODE7)
461                 OMAP4_IOPAD(0x198, MUX_MODE7)
462                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE0)
463                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0)
464                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE0)
465                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE0)
466                 OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE0)
467                 OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE0)
468                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE0)
469                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE0)
470                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE0)
471                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE0)
472                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE0)
473                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE0)
474                 >;
475         };
476
477         /* usb0_otg_dp and usb0_otg_dm */
478         usb_utmi_pins: pinmux_usb_utmi_pins {
479                 pinctrl-single,pins = <
480                 OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0)
481                 OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0)
482                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
483                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
484                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
485                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
486                 OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE7)
487                 OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE7)
488                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
489                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
490                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
491                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
492                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
493                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
494                 >;
495         };
496
497         /* uart3_tx_irtx and uart3_rx_irrx */
498         uart3_pins: pinmux_uart3_pins {
499                 pinctrl-single,pins = <
500                 OMAP4_IOPAD(0x196, MUX_MODE7)
501                 OMAP4_IOPAD(0x198, MUX_MODE7)
502                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
503                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
504                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
505                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
506                 OMAP4_IOPAD(0x1ba, MUX_MODE2)
507                 OMAP4_IOPAD(0x1bc, PIN_INPUT | MUX_MODE2)
508                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
509                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
510                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
511                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
512                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
513                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
514                 >;
515         };
516
517         uart4_pins: pinmux_uart4_pins {
518                 pinctrl-single,pins = <
519                 OMAP4_IOPAD(0x15c, PIN_INPUT | MUX_MODE0)               /* uart4_rx */
520                 OMAP4_IOPAD(0x15e, PIN_OUTPUT | MUX_MODE0)              /* uart4_tx */
521                 OMAP4_IOPAD(0x110, PIN_INPUT_PULLUP | MUX_MODE5)        /* uart4_cts */
522                 OMAP4_IOPAD(0x112, PIN_OUTPUT_PULLUP | MUX_MODE5)       /* uart4_rts */
523                 >;
524         };
525
526         mcbsp2_pins: pinmux_mcbsp2_pins {
527                 pinctrl-single,pins = <
528                 OMAP4_IOPAD(0x0f6, PIN_INPUT | MUX_MODE0)       /* abe_mcbsp2_clkx */
529                 OMAP4_IOPAD(0x0f8, PIN_INPUT | MUX_MODE0)       /* abe_mcbsp2_dr */
530                 OMAP4_IOPAD(0x0fa, PIN_OUTPUT | MUX_MODE0)      /* abe_mcbsp2_dx */
531                 OMAP4_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0)       /* abe_mcbsp2_fsx */
532                 >;
533         };
534
535         mcbsp3_pins: pinmux_mcbsp3_pins {
536                 pinctrl-single,pins = <
537                 OMAP4_IOPAD(0x106, PIN_INPUT | MUX_MODE1)       /* abe_mcbsp3_dr */
538                 OMAP4_IOPAD(0x108, PIN_OUTPUT | MUX_MODE1)      /* abe_mcbsp3_dx */
539                 OMAP4_IOPAD(0x10a, PIN_INPUT | MUX_MODE1)       /* abe_mcbsp3_clkx */
540                 OMAP4_IOPAD(0x10c, PIN_INPUT | MUX_MODE1)       /* abe_mcbsp3_fsx */
541                 >;
542         };
543 };
544
545 &omap4_pmx_wkup {
546         usb_gpio_mux_sel2: pinmux_usb_gpio_mux_sel2_pins {
547                 /* gpio_wk0 */
548                 pinctrl-single,pins = <
549                 OMAP4_IOPAD(0x040, PIN_OUTPUT_PULLDOWN | MUX_MODE3)
550                 >;
551         };
552
553         vibrator_direction_pin: pinmux_vibrator_direction_pin {
554                 pinctrl-single,pins = <
555                 OMAP4_IOPAD(0x1ce, PIN_OUTPUT | MUX_MODE1)      /* dmtimer8_pwm_evt (gpio_27) */
556                 >;
557         };
558
559         vibrator_enable_pin: pinmux_vibrator_enable_pin {
560                 pinctrl-single,pins = <
561                 OMAP4_IOPAD(0X1d0, PIN_OUTPUT | MUX_MODE1)      /* dmtimer9_pwm_evt (gpio_28) */
562                 >;
563         };
564 };
565
566 &uart3 {
567         interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH
568                                &omap4_pmx_core 0x17c>;
569 };
570
571 &uart4 {
572         pinctrl-names = "default";
573         pinctrl-0 = <&uart4_pins>;
574
575         bluetooth {
576                 compatible = "ti,wl1285-st";
577                 enable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; /* gpio 174 */
578                 max-speed = <3686400>;
579         };
580 };
581
582 &usbhsehci {
583         phys = <&hsusb1_phy>;
584 };
585
586 &usbhshost {
587         port1-mode = "ohci-phy-4pin-dpdm";
588         port2-mode = "ehci-tll";
589 };
590
591 /* Internal UTMI+ PHY used for OTG, CPCAP ULPI PHY for detection and charger */
592 &usb_otg_hs {
593         interface-type = <1>;
594         mode = <3>;
595         power = <50>;
596 };
597
598 &i2c4 {
599         ak8975: magnetometer@c {
600                 compatible = "asahi-kasei,ak8975";
601                 reg = <0x0c>;
602
603                 vdd-supply = <&vhvio>;
604
605                 interrupt-parent = <&gpio6>;
606                 interrupts = <15 IRQ_TYPE_EDGE_RISING>; /* gpio175 */
607
608                 rotation-matrix = "-1", "0", "0",
609                                   "0", "1", "0",
610                                   "0", "0", "-1";
611
612         };
613
614         lis3dh: accelerometer@18 {
615                 compatible = "st,lis3dh-accel";
616                 reg = <0x18>;
617
618                 vdd-supply = <&vhvio>;
619
620                 interrupt-parent = <&gpio2>;
621                 interrupts = <2 IRQ_TYPE_EDGE_BOTH>; /* gpio34 */
622
623                 rotation-matrix = "0", "-1", "0",
624                                   "1", "0", "0",
625                                   "0", "0", "1";
626         };
627 };
628
629 &mcbsp2 {
630         #sound-dai-cells = <0>;
631         pinctrl-names = "default";
632         pinctrl-0 = <&mcbsp2_pins>;
633         status = "okay";
634
635         mcbsp2_port: port {
636                 cpu_dai2: endpoint {
637                         dai-format = "i2s";
638                         remote-endpoint = <&cpcap_audio_codec0>;
639                         frame-master = <&cpcap_audio_codec0>;
640                         bitclock-master = <&cpcap_audio_codec0>;
641                 };
642         };
643 };
644
645 &mcbsp3 {
646         #sound-dai-cells = <0>;
647         pinctrl-names = "default";
648         pinctrl-0 = <&mcbsp3_pins>;
649         status = "okay";
650
651         mcbsp3_port: port {
652                 cpu_dai3: endpoint {
653                         dai-format = "dsp_a";
654                         frame-master = <&cpcap_audio_codec1>;
655                         bitclock-master = <&cpcap_audio_codec1>;
656                         remote-endpoint = <&cpcap_audio_codec1>;
657                 };
658         };
659 };
660
661 &cpcap_audio_codec0 {
662         remote-endpoint = <&cpu_dai2>;
663 };
664
665 &cpcap_audio_codec1 {
666         remote-endpoint = <&cpu_dai3>;
667 };