2 * Copyright 2012 ST-Ericsson AB
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
11 * Device Tree for the TVK1281618 UIB
14 #include <dt-bindings/interrupt-controller/irq.h>
18 compatible = "gpio-keys";
21 vdd-supply = <&ab8500_ldo_aux1_reg>;
22 pinctrl-names = "default";
23 pinctrl-0 = <&prox_tvk_mode>, <&hall_tvk_mode>;
26 /* Proximity sensor */
27 gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
28 linux,code = <11>; /* SW_FRONT_PROXIMITY */
29 label = "SFH7741 Proximity Sensor";
33 gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
34 linux,code = <0>; /* SW_LID */
35 label = "HED54XXU11 Hall Effect Sensor";
42 compatible = "toshiba,tc35893";
44 interrupt-parent = <&gpio6>;
45 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
46 pinctrl-names = "default";
47 pinctrl-0 = <&tc35893_tvk_mode>;
50 #interrupt-cells = <1>;
53 compatible = "toshiba,tc3589x-gpio";
57 #interrupt-cells = <2>;
62 compatible = "toshiba,tc3589x-keypad";
64 debounce-delay-ms = <4>;
65 keypad,num-columns = <8>;
66 keypad,num-rows = <8>;
69 linux,keymap = <0x0301006b
90 /* Sensors mounted on this board variant */
94 compatible = "st,lsm303dlh-accel";
95 st,drdy-int-pin = <1>;
98 vdd-supply = <&ab8500_ldo_aux1_reg>;
99 vddio-supply = <&db8500_vsmps2_reg>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&accel_tvk_mode>;
102 interrupt-parent = <&gpio2>;
103 interrupts = <18 IRQ_TYPE_EDGE_FALLING>,
104 <19 IRQ_TYPE_EDGE_FALLING>;
108 * This magnetometer is packaged with
109 * the accelerometer, and has a DRDY line,
110 * however it is not connected on this
111 * board so it can not generate interrupts.
113 compatible = "st,lsm303dlh-magn";
115 vdd-supply = <&ab8500_ldo_aux1_reg>;
116 vddio-supply = <&db8500_vsmps2_reg>;
120 compatible = "st,lis331dl-accel";
121 st,drdy-int-pin = <1>;
124 vdd-supply = <&ab8500_ldo_aux1_reg>;
125 vddio-supply = <&db8500_vsmps2_reg>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&accel_tvk_mode>;
128 interrupt-parent = <&gpio2>;
129 interrupts = <18 IRQ_TYPE_EDGE_FALLING>,
130 <19 IRQ_TYPE_EDGE_FALLING>;
134 compatible = "asahi-kasei,ak8974";
136 vdd-supply = <&ab8500_ldo_aux1_reg>;
137 vddio-supply = <&db8500_vsmps2_reg>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&gyro_magn_tvk_mode>;
140 interrupt-parent = <&gpio1>;
141 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
145 compatible = "st,l3g4200d-gyro";
146 st,drdy-int-pin = <2>;
148 vdd-supply = <&ab8500_ldo_aux1_reg>;
149 vddio-supply = <&db8500_vsmps2_reg>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&gyro_magn_tvk_mode>;
152 interrupt-parent = <&gpio1>;
153 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
156 /* Barometer/pressure sensor */
157 compatible = "st,lps001wp-press";
159 vdd-supply = <&ab8500_ldo_aux1_reg>;
160 vddio-supply = <&db8500_vsmps2_reg>;
166 /* Synaptics RMI4 TM1217 touchscreen */
167 compatible = "syna,rmi4-i2c";
168 #address-cells = <1>;
171 vdd-supply = <&ab8500_ldo_aux1_reg>;
172 vddio-supply = <&db8500_vsmps2_reg>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&synaptics_tvk_mode>;
175 interrupt-parent = <&gpio2>;
176 interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
184 touchscreen-inverted-x;
185 syna,sensor-type = <1>;
191 /* Pull up this GPIO pin */
193 tc35893_tvk_mode: tc35893_tvk {
195 pins = "GPIO218_AH11";
196 ste,config = <&gpio_in_pu>;
201 prox_tvk_mode: prox_tvk {
203 pins = "GPIO217_AH12";
204 ste,config = <&gpio_in_pu>;
209 hall_tvk_mode: hall_tvk {
211 pins = "GPIO145_C13";
212 ste,config = <&gpio_in_pu>;
217 accel_tvk_mode: accel_tvk {
218 /* Accelerometer interrupt lines 1 & 2 */
220 pins = "GPIO82_C1", "GPIO83_D3";
221 ste,config = <&gpio_in_pu>;
227 * These lines are shared between Gyroscope l3g400dh
228 * and AK8974 magnetometer.
230 gyro_magn_tvk_mode: gyro_magn_tvk {
231 /* GPIO 31 used for INT pull down the line */
234 ste,config = <&gpio_in_pd>;
236 /* GPIO 32 used for DRDY, pull this down */
239 ste,config = <&gpio_in_pd>;
244 synaptics_tvk_mode: synaptics_tvk {
245 /* Touchscreen uses GPIO 84 */
248 ste,config = <&gpio_in_pu>;