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.
8 #include <dt-bindings/input/input.h>
9 #include "omap443x.dtsi"
10 #include "motorola-cpcap-mapphone.dtsi"
13 model = "Motorola Droid 4 XT894";
14 compatible = "motorola,droid4", "ti,omap4430", "ti,omap4";
26 * We seem to have only 1021 MB accessible, 1021 - 1022 is locked,
27 * then 1023 - 1024 seems to contain mbm.
30 device_type = "memory";
31 reg = <0x80000000 0x3fd00000>; /* 1021 MB */
34 /* Poweroff GPIO probably connected to CPCAP */
36 compatible = "gpio-poweroff";
37 pinctrl-0 = <&poweroff_gpio>;
38 pinctrl-names = "default";
39 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; /* gpio50 */
43 compatible = "hdmi-connector";
44 pinctrl-0 = <&hdmi_hpd_gpio>;
45 pinctrl-names = "default";
49 hpd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; /* gpio63 */
52 hdmi_connector_in: endpoint {
53 remote-endpoint = <&hdmi_out>;
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.
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 */
73 /* HS USB Host PHY on PORT 1 */
74 hsusb1_phy: hsusb1_phy {
75 compatible = "usb-nop-xceiv";
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 */
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>;
102 compatible = "gpio-keys";
105 label = "Volume Down";
106 gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; /* gpio154 */
107 linux,code = <KEY_VOLUMEDOWN>;
112 label = "Keypad Slide";
113 gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>; /* gpio122 */
114 linux,input-type = <EV_SW>;
115 linux,code = <SW_KEYPAD_SLIDE>;
122 compatible = "audio-graph-card";
123 label = "Droid 4 Audio";
125 simple-graph-card,widgets =
126 "Speaker", "Earpiece",
127 "Speaker", "Loudspeaker",
128 "Headphone", "Headphone Jack",
129 "Microphone", "Internal Mic";
131 simple-graph-card,routing =
133 "Loudspeaker", "SPKR",
134 "Headphone Jack", "HSL",
135 "Headphone Jack", "HSR",
136 "MICR", "Internal Mic";
138 dais = <&mcbsp2_port>, <&mcbsp3_port>;
147 pwm8: dmtimer-pwm-8 {
148 pinctrl-names = "default";
149 pinctrl-0 = <&vibrator_direction_pin>;
151 compatible = "ti,omap-dmtimer-pwm";
153 ti,timers = <&timer8>;
154 ti,clock-source = <0x01>;
157 pwm9: dmtimer-pwm-9 {
158 pinctrl-names = "default";
159 pinctrl-0 = <&vibrator_enable_pin>;
161 compatible = "ti,omap-dmtimer-pwm";
163 ti,timers = <&timer9>;
164 ti,clock-source = <0x01>;
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>;
178 vdd-supply = <&vcsi>;
181 dsi1_out_ep: endpoint {
182 remote-endpoint = <&lcd0_in>;
183 lanes = <0 1 2 3 4 5>;
188 compatible = "panel-dsi-cm";
190 vddi-supply = <&lcd_regulator>;
191 reset-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; /* gpio101 */
195 backlight = <&lcd_backlight>;
198 clock-frequency = <0>; /* Calculated by dsi */
213 pixelclk-active = <1>;
218 remote-endpoint = <&dsi1_out_ep>;
226 pinctrl-0 = <&dss_hdmi_pins>;
227 pinctrl-names = "default";
228 vdda-supply = <&vdac>;
232 remote-endpoint = <&hdmi_connector_in>;
233 lanes = <1 0 3 2 5 4 7 6>;
240 compatible = "ti,tmp105";
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";
253 keypad,num-rows = <8>;
254 keypad,num-columns = <8>;
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)
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)
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)
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)
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)
321 /* Side buttons, KEY_VOLUMEDOWN and KEY_PWER are on CPCAP? */
322 MATRIX_KEY(5, 0, KEY_VOLUMEUP)
327 vmmc-supply = <&vwlan2>;
329 cd-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; /* gpio176 */
333 vmmc-supply = <&vsdio>;
339 vmmc-supply = <&wl12xx_vmmc>;
340 interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
341 &omap4_pmx_core 0xde>;
347 #address-cells = <1>;
350 compatible = "ti,wl1285", "ti,wl1283";
352 interrupt-parent = <&gpio4>;
353 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; /* gpio100 */
354 ref-clock-frequency = <26000000>;
355 tcxo-clock-frequency = <26000000>;
361 compatible = "ti,lm3532";
364 enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
366 lcd_backlight: backlight {
367 compatible = "ti,lm3532-backlight";
370 led-sources = <0 1 2>;
372 ramp-down-msec = <0>;
380 compatible = "atmel,maxtouch";
382 pinctrl-names = "default";
383 pinctrl-0 = <&touchscreen_pins>;
385 reset-gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; /* gpio173 */
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";
395 compatible = "isil,isl29030";
398 pinctrl-names = "default";
399 pinctrl-0 = <&als_proximity_pins>;
401 interrupt-parent = <&gpio6>;
402 interrupts = <17 IRQ_TYPE_LEVEL_LOW>; /* gpio177 */
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)
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)
424 /* gpmc_ncs0.gpio_50 */
425 poweroff_gpio: pinmux_poweroff_pins {
426 pinctrl-single,pins = <
427 OMAP4_IOPAD(0x074, PIN_OUTPUT_PULLUP | MUX_MODE3)
431 /* kpd_row0.gpio_178 */
432 tmp105_irq: pinmux_tmp105_irq {
433 pinctrl-single,pins = <
434 OMAP4_IOPAD(0x18e, PIN_INPUT_PULLUP | MUX_MODE3)
438 usb_gpio_mux_sel1: pinmux_usb_gpio_mux_sel1_pins {
440 pinctrl-single,pins = <
441 OMAP4_IOPAD(0x088, PIN_OUTPUT | MUX_MODE3)
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)
452 als_proximity_pins: pinmux_als_proximity_pins {
453 pinctrl-single,pins = <
454 OMAP4_IOPAD(0x18c, PIN_INPUT_PULLUP | MUX_MODE3)
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)
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)
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)
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 */
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 */
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 */
546 usb_gpio_mux_sel2: pinmux_usb_gpio_mux_sel2_pins {
548 pinctrl-single,pins = <
549 OMAP4_IOPAD(0x040, PIN_OUTPUT_PULLDOWN | MUX_MODE3)
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) */
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) */
567 interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH
568 &omap4_pmx_core 0x17c>;
572 pinctrl-names = "default";
573 pinctrl-0 = <&uart4_pins>;
576 compatible = "ti,wl1285-st";
577 enable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; /* gpio 174 */
578 max-speed = <3686400>;
583 phys = <&hsusb1_phy>;
587 port1-mode = "ohci-phy-4pin-dpdm";
588 port2-mode = "ehci-tll";
591 /* Internal UTMI+ PHY used for OTG, CPCAP ULPI PHY for detection and charger */
593 interface-type = <1>;
599 ak8975: magnetometer@c {
600 compatible = "asahi-kasei,ak8975";
603 vdd-supply = <&vhvio>;
605 interrupt-parent = <&gpio6>;
606 interrupts = <15 IRQ_TYPE_EDGE_RISING>; /* gpio175 */
608 rotation-matrix = "-1", "0", "0",
614 lis3dh: accelerometer@18 {
615 compatible = "st,lis3dh-accel";
618 vdd-supply = <&vhvio>;
620 interrupt-parent = <&gpio2>;
621 interrupts = <2 IRQ_TYPE_EDGE_BOTH>; /* gpio34 */
623 rotation-matrix = "0", "-1", "0",
630 #sound-dai-cells = <0>;
631 pinctrl-names = "default";
632 pinctrl-0 = <&mcbsp2_pins>;
638 remote-endpoint = <&cpcap_audio_codec0>;
639 frame-master = <&cpcap_audio_codec0>;
640 bitclock-master = <&cpcap_audio_codec0>;
646 #sound-dai-cells = <0>;
647 pinctrl-names = "default";
648 pinctrl-0 = <&mcbsp3_pins>;
653 dai-format = "dsp_a";
654 frame-master = <&cpcap_audio_codec1>;
655 bitclock-master = <&cpcap_audio_codec1>;
656 remote-endpoint = <&cpcap_audio_codec1>;
661 &cpcap_audio_codec0 {
662 remote-endpoint = <&cpu_dai2>;
665 &cpcap_audio_codec1 {
666 remote-endpoint = <&cpu_dai3>;