Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / arch / arm / boot / dts / motorola-mapphone-common.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2 /dts-v1/;
3
4 #include <dt-bindings/input/input.h>
5 #include "omap443x.dtsi"
6 #include "motorola-cpcap-mapphone.dtsi"
7
8 / {
9         chosen {
10                 stdout-path = &uart3;
11         };
12
13         aliases {
14                 display0 = &lcd0;
15                 display1 = &hdmi0;
16         };
17
18         /*
19          * We seem to have only 1021 MB accessible, 1021 - 1022 is locked,
20          * then 1023 - 1024 seems to contain mbm.
21          */
22         memory {
23                 device_type = "memory";
24                 reg = <0x80000000 0x3fd00000>;  /* 1021 MB */
25         };
26
27         /* Poweroff GPIO probably connected to CPCAP */
28         gpio-poweroff {
29                 compatible = "gpio-poweroff";
30                 pinctrl-0 = <&poweroff_gpio>;
31                 pinctrl-names = "default";
32                 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;    /* gpio50 */
33         };
34
35         hdmi0: connector {
36                 compatible = "hdmi-connector";
37                 pinctrl-0 = <&hdmi_hpd_gpio>;
38                 pinctrl-names = "default";
39                 label = "hdmi";
40                 type = "d";
41
42                 hpd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;       /* gpio63 */
43
44                 port {
45                         hdmi_connector_in: endpoint {
46                                 remote-endpoint = <&hdmi_out>;
47                         };
48                 };
49         };
50
51         /*
52          * HDMI 5V regulator probably sourced from battery. Let's keep
53          * keep this as always enabled for HDMI to work until we've
54          * figured what the encoder chip is.
55          */
56         hdmi_regulator: regulator-hdmi {
57                 compatible = "regulator-fixed";
58                 regulator-name = "hdmi";
59                 regulator-min-microvolt = <5000000>;
60                 regulator-max-microvolt = <5000000>;
61                 gpio = <&gpio2 27 GPIO_ACTIVE_HIGH>;    /* gpio59 */
62                 enable-active-high;
63                 regulator-always-on;
64         };
65
66         /* FS USB Host PHY on port 1 for mdm6600 */
67         fsusb1_phy: usb-phy@1 {
68                 compatible = "motorola,mapphone-mdm6600";
69                 pinctrl-0 = <&usb_mdm6600_pins>;
70                 pinctrl-names = "default";
71                 enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;     /* gpio_95 */
72                 power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;     /* gpio_54 */
73                 reset-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>;     /* gpio_49 */
74                 /* mode: gpio_148 gpio_149 */
75                 motorola,mode-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>,
76                                       <&gpio5 21 GPIO_ACTIVE_HIGH>;
77                 /* cmd: gpio_103 gpio_104 gpio_142 */
78                 motorola,cmd-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>,
79                                      <&gpio4 8 GPIO_ACTIVE_HIGH>,
80                                      <&gpio5 14 GPIO_ACTIVE_HIGH>;
81                 /* status: gpio_52 gpio_53 gpio_55 */
82                 motorola,status-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>,
83                                         <&gpio2 21 GPIO_ACTIVE_HIGH>,
84                                         <&gpio2 23 GPIO_ACTIVE_HIGH>;
85                 #phy-cells = <0>;
86         };
87
88         /* HS USB host TLL nop-phy on port 2 for w3glte */
89         hsusb2_phy: usb-phy@2 {
90                 compatible = "usb-nop-xceiv";
91                 #phy-cells = <0>;
92         };
93
94         /* LCD regulator from sw5 source */
95         lcd_regulator: regulator-lcd {
96                 compatible = "regulator-fixed";
97                 regulator-name = "lcd";
98                 regulator-min-microvolt = <5050000>;
99                 regulator-max-microvolt = <5050000>;
100                 gpio = <&gpio4 0 GPIO_ACTIVE_HIGH>;     /* gpio96 */
101                 enable-active-high;
102                 vin-supply = <&sw5>;
103         };
104
105         /* This is probably coming straight from the battery.. */
106         wl12xx_vmmc: regulator-wl12xx {
107                 compatible = "regulator-fixed";
108                 regulator-name = "vwl1271";
109                 regulator-min-microvolt = <1650000>;
110                 regulator-max-microvolt = <1650000>;
111                 gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>;    /* gpio94 */
112                 startup-delay-us = <70000>;
113                 enable-active-high;
114         };
115
116         soundcard {
117                 compatible = "audio-graph-card";
118                 label = "Mapphone Audio";
119
120                 widgets =
121                         "Speaker", "Earpiece",
122                         "Speaker", "Loudspeaker",
123                         "Headphone", "Headphone Jack",
124                         "Microphone", "Internal Mic";
125
126                 routing =
127                         "Earpiece", "EP",
128                         "Loudspeaker", "SPKR",
129                         "Headphone Jack", "HSL",
130                         "Headphone Jack", "HSR",
131                         "MICR", "Internal Mic";
132
133                 dais = <&mcbsp2_port>, <&mcbsp3_port>;
134         };
135
136         pwm8: dmtimer-pwm-8 {
137                 pinctrl-names = "default";
138                 pinctrl-0 = <&vibrator_direction_pin>;
139
140                 compatible = "ti,omap-dmtimer-pwm";
141                 #pwm-cells = <3>;
142                 ti,timers = <&timer8>;
143                 ti,clock-source = <0x01>;
144         };
145
146         pwm9: dmtimer-pwm-9 {
147                 pinctrl-names = "default";
148                 pinctrl-0 = <&vibrator_enable_pin>;
149
150                 compatible = "ti,omap-dmtimer-pwm";
151                 #pwm-cells = <3>;
152                 ti,timers = <&timer9>;
153                 ti,clock-source = <0x01>;
154         };
155
156         vibrator {
157                 compatible = "pwm-vibrator";
158                 pwms = <&pwm9 0 10000000 0>, <&pwm8 0 10000000 0>;
159                 pwm-names = "enable", "direction";
160                 direction-duty-cycle-ns = <10000000>;
161         };
162
163         backlight: backlight {
164                 compatible = "led-backlight";
165
166                 leds = <&backlight_led>;
167                 brightness-levels = <31 63 95 127 159 191 223 255>;
168                 default-brightness-level = <6>;
169         };
170 };
171
172 &dss {
173         status = "okay";
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: panel@0 {
188                 compatible = "motorola,droid4-panel", "panel-dsi-cm";
189                 reg = <0>;
190                 label = "lcd0";
191                 vddi-supply = <&lcd_regulator>;
192                 reset-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>;      /* gpio101 */
193
194                 backlight = <&backlight>;
195
196                 width-mm = <50>;
197                 height-mm = <89>;
198                 rotation = <90>;
199
200                 panel-timing {
201                         clock-frequency = <0>;          /* Calculated by dsi */
202
203                         hback-porch = <2>;
204                         hactive = <540>;
205                         hfront-porch = <0>;
206                         hsync-len = <2>;
207
208                         vback-porch = <1>;
209                         vactive = <960>;
210                         vfront-porch = <0>;
211                         vsync-len = <1>;
212
213                         hsync-active = <0>;
214                         vsync-active = <0>;
215                         de-active = <1>;
216                         pixelclk-active = <1>;
217                 };
218
219                 port {
220                         lcd0_in: endpoint {
221                                 remote-endpoint = <&dsi1_out_ep>;
222                         };
223                 };
224         };
225 };
226
227 &hdmi {
228         status = "okay";
229         pinctrl-0 = <&dss_hdmi_pins>;
230         pinctrl-names = "default";
231         vdda-supply = <&vdac>;
232
233         port {
234                 hdmi_out: endpoint {
235                         remote-endpoint = <&hdmi_connector_in>;
236                         lanes = <1 0 3 2 5 4 7 6>;
237                 };
238         };
239 };
240
241 /* Battery NVRAM on 1-wire handled by w1_ds250x driver */
242 &hdqw1w {
243         pinctrl-0 = <&hdq_pins>;
244         pinctrl-names = "default";
245         ti,mode = "1w";
246 };
247
248 &i2c1 {
249         tmp105@48 {
250                 compatible = "ti,tmp105";
251                 reg = <0x48>;
252                 pinctrl-0 = <&tmp105_irq>;
253                 pinctrl-names = "default";
254                 /* kpd_row0.gpio_178 */
255                 interrupts-extended = <&gpio6 18 IRQ_TYPE_EDGE_FALLING
256                                        &omap4_pmx_core 0x14e>;
257                 interrupt-names = "irq", "wakeup";
258                 wakeup-source;
259         };
260 };
261
262 &mmc1 {
263         vmmc-supply = <&vwlan2>;
264         bus-width = <4>;
265         cd-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; /* gpio176 */
266 };
267
268 &mmc2 {
269         vmmc-supply = <&vsdio>;
270         bus-width = <8>;
271         ti,non-removable;
272 };
273
274 &mmc3 {
275         pinctrl-names = "default";
276         pinctrl-0 = <&mmc3_pins>;
277         vmmc-supply = <&wl12xx_vmmc>;
278         /* uart2_tx.sdmmc3_dat1 pad as wakeirq */
279         interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
280                                &omap4_pmx_core 0xde>;
281         interrupt-names = "irq", "wakeup";
282         non-removable;
283         bus-width = <4>;
284         cap-power-off-card;
285         keep-power-in-suspend;
286
287         #address-cells = <1>;
288         #size-cells = <0>;
289         wlcore: wlcore@2 {
290                 compatible = "ti,wl1285", "ti,wl1283";
291                 reg = <2>;
292                 /* gpio_100 with gpmc_wait2 pad as wakeirq */
293                 interrupts-extended = <&gpio4 4 IRQ_TYPE_LEVEL_HIGH>,
294                                       <&omap4_pmx_core 0x4e>;
295                 interrupt-names = "irq", "wakeup";
296                 ref-clock-frequency = <26000000>;
297                 tcxo-clock-frequency = <26000000>;
298         };
299 };
300
301 &i2c2 {
302         touchscreen@4a {
303                 compatible = "atmel,maxtouch";
304                 reg = <0x4a>;
305                 pinctrl-names = "default";
306                 pinctrl-0 = <&touchscreen_pins>;
307
308                 reset-gpios = <&gpio6 13 GPIO_ACTIVE_LOW>; /* gpio173 */
309
310                 /* gpio_183 with sys_nirq2 pad as wakeup */
311                 interrupts-extended = <&gpio6 23 IRQ_TYPE_LEVEL_LOW>,
312                                       <&omap4_pmx_core 0x160>;
313                 interrupt-names = "irq", "wakeup";
314                 wakeup-source;
315         };
316
317         isl29030@44 {
318                 compatible = "isil,isl29030";
319                 reg = <0x44>;
320
321                 pinctrl-names = "default";
322                 pinctrl-0 = <&als_proximity_pins>;
323
324                 interrupt-parent = <&gpio6>;
325                 interrupts = <17 IRQ_TYPE_LEVEL_LOW>; /* gpio177 */
326         };
327 };
328
329 &omap4_pmx_core {
330
331         /* hdmi_hpd.gpio_63 */
332         hdmi_hpd_gpio: pinmux_hdmi_hpd_pins {
333                 pinctrl-single,pins = <
334                 OMAP4_IOPAD(0x098, PIN_INPUT | MUX_MODE3)
335                 >;
336         };
337
338         hdq_pins: pinmux_hdq_pins {
339                 pinctrl-single,pins = <
340                 /* 0x4a100120 hdq_sio.hdq_sio aa27 */
341                 OMAP4_IOPAD(0x120, PIN_INPUT | MUX_MODE0)
342                 >;
343         };
344
345         /* hdmi_cec.hdmi_cec, hdmi_scl.hdmi_scl, hdmi_sda.hdmi_sda */
346         dss_hdmi_pins: pinmux_dss_hdmi_pins {
347                 pinctrl-single,pins = <
348                 OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0)
349                 OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0)
350                 OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0)
351                 >;
352         };
353
354         /*
355          * Android uses PIN_OFF_INPUT_PULLDOWN | PIN_INPUT_PULLUP | MUX_MODE3
356          * for gpio_100, but the internal pull makes wlan flakey on some
357          * devices. Off mode value should be tested if we have off mode working
358          * later on.
359          */
360         mmc3_pins: pinmux_mmc3_pins {
361                 pinctrl-single,pins = <
362                 /* 0x4a10008e gpmc_wait2.gpio_100 d23 */
363                 OMAP4_IOPAD(0x08e, PIN_INPUT | MUX_MODE3)
364
365                 /* 0x4a100102 abe_mcbsp1_dx.sdmmc3_dat2 ab25 */
366                 OMAP4_IOPAD(0x102, PIN_INPUT_PULLUP | MUX_MODE1)
367
368                 /* 0x4a100104 abe_mcbsp1_fsx.sdmmc3_dat3 ac27 */
369                 OMAP4_IOPAD(0x104, PIN_INPUT_PULLUP | MUX_MODE1)
370
371                 /* 0x4a100118 uart2_cts.sdmmc3_clk ab26 */
372                 OMAP4_IOPAD(0x118, PIN_INPUT | MUX_MODE1)
373
374                 /* 0x4a10011a uart2_rts.sdmmc3_cmd ab27 */
375                 OMAP4_IOPAD(0x11a, PIN_INPUT_PULLUP | MUX_MODE1)
376
377                 /* 0x4a10011c uart2_rx.sdmmc3_dat0 aa25 */
378                 OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE1)
379
380                 /* 0x4a10011e uart2_tx.sdmmc3_dat1 aa26 */
381                 OMAP4_IOPAD(0x11e, PIN_INPUT_PULLUP | MUX_MODE1)
382                 >;
383         };
384
385         /* gpmc_ncs0.gpio_50 */
386         poweroff_gpio: pinmux_poweroff_pins {
387                 pinctrl-single,pins = <
388                 OMAP4_IOPAD(0x074, PIN_OUTPUT_PULLUP | MUX_MODE3)
389                 >;
390         };
391
392         /* kpd_row0.gpio_178 */
393         tmp105_irq: pinmux_tmp105_irq {
394                 pinctrl-single,pins = <
395                 OMAP4_IOPAD(0x18e, PIN_INPUT_PULLUP | MUX_MODE3)
396                 >;
397         };
398
399         usb_gpio_mux_sel1: pinmux_usb_gpio_mux_sel1_pins {
400                 /* gpio_60 */
401                 pinctrl-single,pins = <
402                 OMAP4_IOPAD(0x088, PIN_OUTPUT | MUX_MODE3)
403                 >;
404         };
405
406         touchscreen_pins: pinmux_touchscreen_pins {
407                 pinctrl-single,pins = <
408                 OMAP4_IOPAD(0x180, PIN_OUTPUT | MUX_MODE3)
409                 OMAP4_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE3)
410                 >;
411         };
412
413         als_proximity_pins: pinmux_als_proximity_pins {
414                 pinctrl-single,pins = <
415                 OMAP4_IOPAD(0x18c, PIN_INPUT_PULLUP | MUX_MODE3)
416                 >;
417         };
418
419         usb_mdm6600_pins: pinmux_usb_mdm6600_pins {
420                 pinctrl-single,pins = <
421                 /* enable 0x4a1000d8 usbb1_ulpitll_dat7.gpio_95 ag16 */
422                 OMAP4_IOPAD(0x0d8, PIN_INPUT | MUX_MODE3)
423
424                 /* power 0x4a10007c gpmc_nwp.gpio_54 c25 */
425                 OMAP4_IOPAD(0x07c, PIN_OUTPUT | MUX_MODE3)
426
427                 /* reset 0x4a100072 gpmc_a25.gpio_49 d20 */
428                 OMAP4_IOPAD(0x072, PIN_OUTPUT | MUX_MODE3)
429
430                 /* mode0/bpwake 0x4a10014e sdmmc5_dat1.gpio_148 af4 */
431                 OMAP4_IOPAD(0x14e, PIN_OUTPUT | MUX_MODE3)
432
433                 /* mode1/apwake 0x4a100150 sdmmc5_dat2.gpio_149 ag3 */
434                 OMAP4_IOPAD(0x150, PIN_OFF_OUTPUT_LOW | PIN_INPUT | MUX_MODE3)
435
436                 /* status0 0x4a10007e gpmc_clk.gpio_55 b22 */
437                 OMAP4_IOPAD(0x07e, PIN_INPUT | MUX_MODE3)
438
439                 /* status1 0x4a10007a gpmc_ncs3.gpio_53 c22 */
440                 OMAP4_IOPAD(0x07a, PIN_INPUT | MUX_MODE3)
441
442                 /* status2 0x4a100078 gpmc_ncs2.gpio_52 d21 */
443                 OMAP4_IOPAD(0x078, PIN_INPUT | MUX_MODE3)
444
445                 /* cmd0 0x4a100094 gpmc_ncs6.gpio_103 c24 */
446                 OMAP4_IOPAD(0x094, PIN_OUTPUT | MUX_MODE3)
447
448                 /* cmd1 0x4a100096 gpmc_ncs7.gpio_104 d24 */
449                 OMAP4_IOPAD(0x096, PIN_OUTPUT | MUX_MODE3)
450
451                 /* cmd2 0x4a100142 uart3_rts_sd.gpio_142 f28 */
452                 OMAP4_IOPAD(0x142, PIN_OUTPUT | MUX_MODE3)
453                 >;
454         };
455
456         usb_ulpi_pins: pinmux_usb_ulpi_pins {
457                 pinctrl-single,pins = <
458                 OMAP4_IOPAD(0x196, MUX_MODE7)
459                 OMAP4_IOPAD(0x198, MUX_MODE7)
460                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE0)
461                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0)
462                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE0)
463                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE0)
464                 OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE0)
465                 OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE0)
466                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE0)
467                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE0)
468                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE0)
469                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE0)
470                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE0)
471                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE0)
472                 >;
473         };
474
475         /* usb0_otg_dp and usb0_otg_dm */
476         usb_utmi_pins: pinmux_usb_utmi_pins {
477                 pinctrl-single,pins = <
478                 OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0)
479                 OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0)
480                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
481                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
482                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
483                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
484                 OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE7)
485                 OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE7)
486                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
487                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
488                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
489                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
490                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
491                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
492                 >;
493         };
494
495         /*
496          * Note that the v3.0.8 stock userspace dynamically remuxes uart1
497          * rts pin probably for PM purposes to PIN_INPUT_PULLUP | MUX_MODE7
498          * when not used. If needed, we can add rts pin remux later based
499          * on power measurements.
500          */
501         uart1_pins: pinmux_uart1_pins {
502                 pinctrl-single,pins = <
503                 /* 0x4a10013c mcspi1_cs2.uart1_cts ag23 */
504                 OMAP4_IOPAD(0x13c, PIN_INPUT_PULLUP | MUX_MODE1)
505
506                 /* 0x4a10013e mcspi1_cs3.uart1_rts ah23 */
507                 OMAP4_IOPAD(0x13e, MUX_MODE1)
508
509                 /* 0x4a100140 uart3_cts_rctx.uart1_tx f27 */
510                 OMAP4_IOPAD(0x140, PIN_OUTPUT | MUX_MODE1)
511
512                 /* 0x4a1001ca dpm_emu14.uart1_rx aa3 */
513                 OMAP4_IOPAD(0x1ca, PIN_INPUT_PULLUP | MUX_MODE2)
514                 >;
515         };
516
517         /* uart3_tx_irtx and uart3_rx_irrx */
518         uart3_pins: pinmux_uart3_pins {
519                 pinctrl-single,pins = <
520                 OMAP4_IOPAD(0x196, MUX_MODE7)
521                 OMAP4_IOPAD(0x198, MUX_MODE7)
522                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
523                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
524                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
525                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
526                 OMAP4_IOPAD(0x1ba, MUX_MODE2)
527                 OMAP4_IOPAD(0x1bc, PIN_INPUT | MUX_MODE2)
528                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
529                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
530                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
531                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
532                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
533                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
534                 >;
535         };
536
537         uart4_pins: pinmux_uart4_pins {
538                 pinctrl-single,pins = <
539                 OMAP4_IOPAD(0x15c, PIN_INPUT | MUX_MODE0)               /* uart4_rx */
540                 OMAP4_IOPAD(0x15e, PIN_OUTPUT | MUX_MODE0)              /* uart4_tx */
541                 OMAP4_IOPAD(0x110, PIN_INPUT_PULLUP | MUX_MODE5)        /* uart4_cts */
542                 OMAP4_IOPAD(0x112, PIN_OUTPUT_PULLUP | MUX_MODE5)       /* uart4_rts */
543                 >;
544         };
545
546         mcbsp2_pins: pinmux_mcbsp2_pins {
547                 pinctrl-single,pins = <
548                 OMAP4_IOPAD(0x0f6, PIN_INPUT | MUX_MODE0)       /* abe_mcbsp2_clkx */
549                 OMAP4_IOPAD(0x0f8, PIN_INPUT | MUX_MODE0)       /* abe_mcbsp2_dr */
550                 OMAP4_IOPAD(0x0fa, PIN_OUTPUT | MUX_MODE0)      /* abe_mcbsp2_dx */
551                 OMAP4_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0)       /* abe_mcbsp2_fsx */
552                 >;
553         };
554
555         mcbsp3_pins: pinmux_mcbsp3_pins {
556                 pinctrl-single,pins = <
557                 OMAP4_IOPAD(0x106, PIN_INPUT | MUX_MODE1)       /* abe_mcbsp3_dr */
558                 OMAP4_IOPAD(0x108, PIN_OUTPUT | MUX_MODE1)      /* abe_mcbsp3_dx */
559                 OMAP4_IOPAD(0x10a, PIN_INPUT | MUX_MODE1)       /* abe_mcbsp3_clkx */
560                 OMAP4_IOPAD(0x10c, PIN_INPUT | MUX_MODE1)       /* abe_mcbsp3_fsx */
561                 >;
562         };
563
564         vibrator_direction_pin: pinmux_vibrator_direction_pin {
565                 pinctrl-single,pins = <
566                 OMAP4_IOPAD(0x1ce, PIN_OUTPUT | MUX_MODE1)      /* dmtimer8_pwm_evt (gpio_27) */
567                 >;
568         };
569
570         vibrator_enable_pin: pinmux_vibrator_enable_pin {
571                 pinctrl-single,pins = <
572                 OMAP4_IOPAD(0X1d0, PIN_OUTPUT | MUX_MODE1)      /* dmtimer9_pwm_evt (gpio_28) */
573                 >;
574         };
575 };
576
577 &omap4_pmx_wkup {
578         usb_gpio_mux_sel2: pinmux_usb_gpio_mux_sel2_pins {
579                 /* gpio_wk0 */
580                 pinctrl-single,pins = <
581                 OMAP4_IOPAD(0x040, PIN_OUTPUT_PULLDOWN | MUX_MODE3)
582                 >;
583         };
584 };
585
586 /* RNG is used by secure mode and not accessible */
587 &rng_target {
588         status = "disabled";
589 };
590
591 /* Configure pwm clock source for timers 8 & 9 */
592 &timer8 {
593         assigned-clocks = <&abe_clkctrl OMAP4_TIMER8_CLKCTRL 24>;
594         assigned-clock-parents = <&sys_clkin_ck>;
595 };
596
597 &timer9 {
598         assigned-clocks = <&l4_per_clkctrl OMAP4_TIMER9_CLKCTRL 24>;
599         assigned-clock-parents = <&sys_clkin_ck>;
600 };
601
602 /*
603  * The uart1 port is wired to mdm6600 with rts and cts. The modem uses gpio_149
604  * for wake-up events for both the USB PHY and the UART. We can use gpio_149
605  * pad as the shared wakeirq for the UART rather than the RX or CTS pad as we
606  * have gpio_149 trigger before the UART transfer starts.
607  */
608 &uart1 {
609         pinctrl-names = "default";
610         pinctrl-0 = <&uart1_pins>;
611         interrupts-extended = <&wakeupgen GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH
612                                &omap4_pmx_core 0x110>;
613         uart-has-rtscts;
614         current-speed = <115200>;
615 };
616
617 &uart3 {
618         interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH
619                                &omap4_pmx_core 0x17c>;
620 };
621
622 &uart4 {
623         pinctrl-names = "default";
624         pinctrl-0 = <&uart4_pins>;
625
626         bluetooth {
627                 compatible = "ti,wl1285-st";
628                 enable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; /* gpio 174 */
629                 max-speed = <3686400>;
630         };
631 };
632
633 &usbhsohci {
634         phys = <&fsusb1_phy>;
635         phy-names = "usb";
636 };
637
638 &usbhsehci {
639         phys = <&hsusb2_phy>;
640 };
641
642 &usbhshost {
643         port1-mode = "ohci-phy-4pin-dpdm";
644         port2-mode = "ehci-tll";
645 };
646
647 /* Internal UTMI+ PHY used for OTG, CPCAP ULPI PHY for detection and charger */
648 &usb_otg_hs {
649         interface-type = <1>;
650         mode = <3>;
651
652         /*
653          * Max 300 mA steps based on similar PMIC MC13783UG.pdf "Table 10-4.
654          * VBUS Regulator Main Characteristics". Binding uses 2 mA units.
655          */
656         power = <150>;
657 };
658
659 &i2c4 {
660         ak8975: magnetometer@c {
661                 compatible = "asahi-kasei,ak8975";
662                 reg = <0x0c>;
663
664                 vdd-supply = <&vhvio>;
665
666                 interrupt-parent = <&gpio6>;
667                 interrupts = <15 IRQ_TYPE_EDGE_RISING>; /* gpio175 */
668
669                 rotation-matrix = "-1", "0", "0",
670                                   "0", "1", "0",
671                                   "0", "0", "-1";
672
673         };
674 };
675
676 &mcbsp2 {
677         #sound-dai-cells = <0>;
678         pinctrl-names = "default";
679         pinctrl-0 = <&mcbsp2_pins>;
680         status = "okay";
681
682         mcbsp2_port: port {
683                 cpu_dai2: endpoint {
684                         dai-format = "i2s";
685                         remote-endpoint = <&cpcap_audio_codec0>;
686                         frame-master = <&cpcap_audio_codec0>;
687                         bitclock-master = <&cpcap_audio_codec0>;
688                 };
689         };
690 };
691
692 &mcbsp3 {
693         #sound-dai-cells = <0>;
694         pinctrl-names = "default";
695         pinctrl-0 = <&mcbsp3_pins>;
696         status = "okay";
697
698         mcbsp3_port: port {
699                 cpu_dai3: endpoint {
700                         dai-format = "dsp_a";
701                         frame-master = <&cpcap_audio_codec1>;
702                         bitclock-master = <&cpcap_audio_codec1>;
703                         remote-endpoint = <&cpcap_audio_codec1>;
704                 };
705         };
706 };
707
708 &cpcap_audio_codec0 {
709         remote-endpoint = <&cpu_dai2>;
710 };
711
712 &cpcap_audio_codec1 {
713         remote-endpoint = <&cpu_dai3>;
714 };