Merge branch 'work.poll2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.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
122 &dss {
123         status = "okay";
124 };
125
126 &gpio6 {
127         touchscreen_reset {
128                 gpio-hog;
129                 gpios = <13 0>;
130                 output-high;
131                 line-name = "touchscreen-reset";
132         };
133
134         pwm8: dmtimer-pwm-8 {
135                 pinctrl-names = "default";
136                 pinctrl-0 = <&vibrator_direction_pin>;
137
138                 compatible = "ti,omap-dmtimer-pwm";
139                 #pwm-cells = <3>;
140                 ti,timers = <&timer8>;
141                 ti,clock-source = <0x01>;
142         };
143
144         pwm9: dmtimer-pwm-9 {
145                 pinctrl-names = "default";
146                 pinctrl-0 = <&vibrator_enable_pin>;
147
148                 compatible = "ti,omap-dmtimer-pwm";
149                 #pwm-cells = <3>;
150                 ti,timers = <&timer9>;
151                 ti,clock-source = <0x01>;
152         };
153
154         vibrator {
155                 compatible = "pwm-vibrator";
156                 pwms = <&pwm9 0 10000000 0>, <&pwm8 0 10000000 0>;
157                 pwm-names = "enable", "direction";
158                 direction-duty-cycle-ns = <10000000>;
159         };
160
161 };
162
163 &dsi1 {
164         status = "okay";
165         vdd-supply = <&vcsi>;
166
167         port {
168                 dsi1_out_ep: endpoint {
169                         remote-endpoint = <&lcd0_in>;
170                         lanes = <0 1 2 3 4 5>;
171                 };
172         };
173
174         lcd0: display {
175                 compatible = "panel-dsi-cm";
176                 label = "lcd0";
177                 vddi-supply = <&lcd_regulator>;
178                 reset-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>;      /* gpio101 */
179
180                 width-mm = <50>;
181                 height-mm = <89>;
182                 backlight = <&lcd_backlight>;
183
184                 panel-timing {
185                         clock-frequency = <0>;          /* Calculated by dsi */
186
187                         hback-porch = <2>;
188                         hactive = <540>;
189                         hfront-porch = <0>;
190                         hsync-len = <2>;
191
192                         vback-porch = <1>;
193                         vactive = <960>;
194                         vfront-porch = <0>;
195                         vsync-len = <1>;
196
197                         hsync-active = <0>;
198                         vsync-active = <0>;
199                         de-active = <1>;
200                         pixelclk-active = <1>;
201                 };
202
203                 port {
204                         lcd0_in: endpoint {
205                                 remote-endpoint = <&dsi1_out_ep>;
206                         };
207                 };
208         };
209 };
210
211 &hdmi {
212         status = "okay";
213         pinctrl-0 = <&dss_hdmi_pins>;
214         pinctrl-names = "default";
215         vdda-supply = <&vdac>;
216
217         port {
218                 hdmi_out: endpoint {
219                         remote-endpoint = <&hdmi_connector_in>;
220                         lanes = <1 0 3 2 5 4 7 6>;
221                 };
222         };
223 };
224
225 &i2c1 {
226         tmp105@48 {
227                 compatible = "ti,tmp105";
228                 reg = <0x48>;
229                 pinctrl-0 = <&tmp105_irq>;
230                 pinctrl-names = "default";
231                 /* kpd_row0.gpio_178 */
232                 interrupts-extended = <&gpio6 18 IRQ_TYPE_EDGE_FALLING
233                                        &omap4_pmx_core 0x14e>;
234                 interrupt-names = "irq", "wakeup";
235                 wakeup-source;
236         };
237 };
238
239 &keypad {
240         keypad,num-rows = <8>;
241         keypad,num-columns = <8>;
242         linux,keymap = <
243
244         /* Row 1 */
245         MATRIX_KEY(0, 2, KEY_1)
246         MATRIX_KEY(0, 6, KEY_2)
247         MATRIX_KEY(2, 3, KEY_3)
248         MATRIX_KEY(0, 7, KEY_4)
249         MATRIX_KEY(0, 4, KEY_5)
250         MATRIX_KEY(5, 5, KEY_6)
251         MATRIX_KEY(0, 1, KEY_7)
252         MATRIX_KEY(0, 5, KEY_8)
253         MATRIX_KEY(0, 0, KEY_9)
254         MATRIX_KEY(1, 6, KEY_0)
255
256         /* Row 2 */
257         MATRIX_KEY(3, 4, KEY_APOSTROPHE)
258         MATRIX_KEY(7, 6, KEY_Q)
259         MATRIX_KEY(7, 7, KEY_W)
260         MATRIX_KEY(7, 2, KEY_E)
261         MATRIX_KEY(1, 0, KEY_R)
262         MATRIX_KEY(4, 4, KEY_T)
263         MATRIX_KEY(1, 2, KEY_Y)
264         MATRIX_KEY(6, 7, KEY_U)
265         MATRIX_KEY(2, 2, KEY_I)
266         MATRIX_KEY(5, 6, KEY_O)
267         MATRIX_KEY(3, 7, KEY_P)
268         MATRIX_KEY(6, 5, KEY_BACKSPACE)
269
270         /* Row 3 */
271         MATRIX_KEY(5, 4, KEY_TAB)
272         MATRIX_KEY(5, 7, KEY_A)
273         MATRIX_KEY(2, 7, KEY_S)
274         MATRIX_KEY(7, 0, KEY_D)
275         MATRIX_KEY(2, 6, KEY_F)
276         MATRIX_KEY(6, 2, KEY_G)
277         MATRIX_KEY(6, 6, KEY_H)
278         MATRIX_KEY(1, 4, KEY_J)
279         MATRIX_KEY(3, 1, KEY_K)
280         MATRIX_KEY(2, 1, KEY_L)
281         MATRIX_KEY(4, 6, KEY_ENTER)
282
283         /* Row 4 */
284         MATRIX_KEY(3, 6, KEY_LEFTSHIFT)         /* KEY_CAPSLOCK */
285         MATRIX_KEY(6, 1, KEY_Z)
286         MATRIX_KEY(7, 4, KEY_X)
287         MATRIX_KEY(5, 1, KEY_C)
288         MATRIX_KEY(1, 7, KEY_V)
289         MATRIX_KEY(2, 4, KEY_B)
290         MATRIX_KEY(4, 1, KEY_N)
291         MATRIX_KEY(1, 1, KEY_M)
292         MATRIX_KEY(3, 5, KEY_COMMA)
293         MATRIX_KEY(5, 2, KEY_DOT)
294         MATRIX_KEY(6, 3, KEY_UP)
295         MATRIX_KEY(7, 3, KEY_OK)
296
297         /* Row 5 */
298         MATRIX_KEY(2, 5, KEY_LEFTCTRL)          /* KEY_LEFTSHIFT */
299         MATRIX_KEY(4, 5, KEY_LEFTALT)           /* SYM */
300         MATRIX_KEY(6, 0, KEY_MINUS)
301         MATRIX_KEY(4, 7, KEY_EQUAL)
302         MATRIX_KEY(1, 5, KEY_SPACE)
303         MATRIX_KEY(3, 2, KEY_SLASH)
304         MATRIX_KEY(4, 3, KEY_LEFT)
305         MATRIX_KEY(5, 3, KEY_DOWN)
306         MATRIX_KEY(3, 3, KEY_RIGHT)
307
308         /* Side buttons, KEY_VOLUMEDOWN and KEY_PWER are on CPCAP? */
309         MATRIX_KEY(5, 0, KEY_VOLUMEUP)
310         >;
311 };
312
313 &mmc1 {
314         vmmc-supply = <&vwlan2>;
315         bus-width = <4>;
316         cd-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; /* gpio176 */
317 };
318
319 &mmc2 {
320         vmmc-supply = <&vsdio>;
321         bus-width = <8>;
322         non-removable;
323 };
324
325 &mmc3 {
326         vmmc-supply = <&wl12xx_vmmc>;
327         interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
328                                &omap4_pmx_core 0xde>;
329
330         non-removable;
331         bus-width = <4>;
332         cap-power-off-card;
333
334         #address-cells = <1>;
335         #size-cells = <0>;
336         wlcore: wlcore@2 {
337                 compatible = "ti,wl1285", "ti,wl1283";
338                 reg = <2>;
339                 interrupt-parent = <&gpio4>;
340                 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; /* gpio100 */
341                 ref-clock-frequency = <26000000>;
342                 tcxo-clock-frequency = <26000000>;
343         };
344 };
345
346 &i2c1 {
347         lm3532@38 {
348                 compatible = "ti,lm3532";
349                 reg = <0x38>;
350
351                 enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
352
353                 lcd_backlight: backlight {
354                         compatible = "ti,lm3532-backlight";
355
356                         lcd {
357                                 led-sources = <0 1 2>;
358                                 ramp-up-msec = <1>;
359                                 ramp-down-msec = <0>;
360                         };
361                 };
362         };
363 };
364
365 /*
366  * REVISIT: Add gpio173 reset pin handling to the driver, see gpio-hog above.
367  * If the GPIO reset is used, we probably need to have /lib/firmware/maxtouch.fw
368  * available. See "mxt-app" and "droid4-touchscreen-firmware" tools for more
369  * information.
370  */
371 &i2c2 {
372         tsp@4a {
373                 compatible = "atmel,maxtouch";
374                 reg = <0x4a>;
375                 pinctrl-names = "default";
376                 pinctrl-0 = <&touchscreen_pins>;
377
378                 /* gpio_183 with sys_nirq2 pad as wakeup */
379                 interrupts-extended = <&gpio6 23 IRQ_TYPE_EDGE_FALLING
380                                        &omap4_pmx_core 0x160>;
381                 interrupt-names = "irq", "wakeup";
382                 wakeup-source;
383         };
384
385         isl29030@44 {
386                 compatible = "isil,isl29030";
387                 reg = <0x44>;
388
389                 pinctrl-names = "default";
390                 pinctrl-0 = <&als_proximity_pins>;
391
392                 interrupt-parent = <&gpio6>;
393                 interrupts = <17 IRQ_TYPE_LEVEL_LOW>; /* gpio177 */
394         };
395 };
396
397 &omap4_pmx_core {
398
399         /* hdmi_hpd.gpio_63 */
400         hdmi_hpd_gpio: pinmux_hdmi_hpd_pins {
401                 pinctrl-single,pins = <
402                 OMAP4_IOPAD(0x098, PIN_INPUT | MUX_MODE3)
403                 >;
404         };
405
406         /* hdmi_cec.hdmi_cec, hdmi_scl.hdmi_scl, hdmi_sda.hdmi_sda */
407         dss_hdmi_pins: pinmux_dss_hdmi_pins {
408                 pinctrl-single,pins = <
409                 OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0)
410                 OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0)
411                 OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0)
412                 >;
413         };
414
415         /* gpmc_ncs0.gpio_50 */
416         poweroff_gpio: pinmux_poweroff_pins {
417                 pinctrl-single,pins = <
418                 OMAP4_IOPAD(0x074, PIN_OUTPUT_PULLUP | MUX_MODE3)
419                 >;
420         };
421
422         /* kpd_row0.gpio_178 */
423         tmp105_irq: pinmux_tmp105_irq {
424                 pinctrl-single,pins = <
425                 OMAP4_IOPAD(0x18e, PIN_INPUT_PULLUP | MUX_MODE3)
426                 >;
427         };
428
429         usb_gpio_mux_sel1: pinmux_usb_gpio_mux_sel1_pins {
430                 /* gpio_60 */
431                 pinctrl-single,pins = <
432                 OMAP4_IOPAD(0x088, PIN_OUTPUT | MUX_MODE3)
433                 >;
434         };
435
436         touchscreen_pins: pinmux_touchscreen_pins {
437                 pinctrl-single,pins = <
438                 OMAP4_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE3)
439                 >;
440         };
441
442         als_proximity_pins: pinmux_als_proximity_pins {
443                 pinctrl-single,pins = <
444                 OMAP4_IOPAD(0x18c, PIN_INPUT_PULLUP | MUX_MODE3)
445                 >;
446         };
447
448         usb_ulpi_pins: pinmux_usb_ulpi_pins {
449                 pinctrl-single,pins = <
450                 OMAP4_IOPAD(0x196, MUX_MODE7)
451                 OMAP4_IOPAD(0x198, MUX_MODE7)
452                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE0)
453                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0)
454                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE0)
455                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE0)
456                 OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE0)
457                 OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE0)
458                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE0)
459                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE0)
460                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE0)
461                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE0)
462                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE0)
463                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE0)
464                 >;
465         };
466
467         /* usb0_otg_dp and usb0_otg_dm */
468         usb_utmi_pins: pinmux_usb_utmi_pins {
469                 pinctrl-single,pins = <
470                 OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0)
471                 OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0)
472                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
473                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
474                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
475                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
476                 OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE7)
477                 OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE7)
478                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
479                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
480                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
481                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
482                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
483                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
484                 >;
485         };
486
487         /* uart3_tx_irtx and uart3_rx_irrx */
488         uart3_pins: pinmux_uart3_pins {
489                 pinctrl-single,pins = <
490                 OMAP4_IOPAD(0x196, MUX_MODE7)
491                 OMAP4_IOPAD(0x198, MUX_MODE7)
492                 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
493                 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
494                 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
495                 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
496                 OMAP4_IOPAD(0x1ba, MUX_MODE2)
497                 OMAP4_IOPAD(0x1bc, PIN_INPUT | MUX_MODE2)
498                 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
499                 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
500                 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
501                 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
502                 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
503                 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
504                 >;
505         };
506
507         uart4_pins: pinmux_uart4_pins {
508                 pinctrl-single,pins = <
509                 OMAP4_IOPAD(0x15c, PIN_INPUT | MUX_MODE0)               /* uart4_rx */
510                 OMAP4_IOPAD(0x15e, PIN_OUTPUT | MUX_MODE0)              /* uart4_tx */
511                 OMAP4_IOPAD(0x110, PIN_INPUT_PULLUP | MUX_MODE5)        /* uart4_cts */
512                 OMAP4_IOPAD(0x112, PIN_OUTPUT_PULLUP | MUX_MODE5)       /* uart4_rts */
513                 >;
514         };
515 };
516
517 &omap4_pmx_wkup {
518         usb_gpio_mux_sel2: pinmux_usb_gpio_mux_sel2_pins {
519                 /* gpio_wk0 */
520                 pinctrl-single,pins = <
521                 OMAP4_IOPAD(0x040, PIN_OUTPUT_PULLDOWN | MUX_MODE3)
522                 >;
523         };
524
525         vibrator_direction_pin: pinmux_vibrator_direction_pin {
526                 pinctrl-single,pins = <
527                 OMAP4_IOPAD(0x1ce, PIN_OUTPUT | MUX_MODE1)      /* dmtimer8_pwm_evt (gpio_27) */
528                 >;
529         };
530
531         vibrator_enable_pin: pinmux_vibrator_enable_pin {
532                 pinctrl-single,pins = <
533                 OMAP4_IOPAD(0X1d0, PIN_OUTPUT | MUX_MODE1)      /* dmtimer9_pwm_evt (gpio_28) */
534                 >;
535         };
536 };
537
538 &uart3 {
539         interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH
540                                &omap4_pmx_core 0x17c>;
541 };
542
543 &uart4 {
544         pinctrl-names = "default";
545         pinctrl-0 = <&uart4_pins>;
546
547         bluetooth {
548                 compatible = "ti,wl1285-st";
549                 enable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; /* gpio 174 */
550                 max-speed = <3686400>;
551         };
552 };
553
554 &usbhsehci {
555         phys = <&hsusb1_phy>;
556 };
557
558 &usbhshost {
559         port1-mode = "ohci-phy-4pin-dpdm";
560         port2-mode = "ehci-tll";
561 };
562
563 /* Internal UTMI+ PHY used for OTG, CPCAP ULPI PHY for detection and charger */
564 &usb_otg_hs {
565         interface-type = <1>;
566         mode = <3>;
567         power = <50>;
568 };
569
570 &i2c4 {
571         ak8975: magnetometer@c {
572                 compatible = "asahi-kasei,ak8975";
573                 reg = <0x0c>;
574
575                 vdd-supply = <&vhvio>;
576
577                 interrupt-parent = <&gpio6>;
578                 interrupts = <15 IRQ_TYPE_EDGE_RISING>; /* gpio175 */
579
580                 rotation-matrix = "-1", "0", "0",
581                                   "0", "1", "0",
582                                   "0", "0", "-1";
583
584         };
585
586         lis3dh: accelerometer@18 {
587                 compatible = "st,lis3dh-accel";
588                 reg = <0x18>;
589
590                 vdd-supply = <&vhvio>;
591
592                 interrupt-parent = <&gpio2>;
593                 interrupts = <2 IRQ_TYPE_EDGE_BOTH>; /* gpio34 */
594
595                 rotation-matrix = "0", "-1", "0",
596                                   "1", "0", "0",
597                                   "0", "0", "1";
598         };
599 };