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>;
103 * These interrupts cannot be used: the other component
104 * ST-Micro L3D4200D gyro that is connected to the same lines
105 * cannot set its DRDY line to open drain, so it cannot be
106 * shared with other peripherals. The should be defined for
107 * the falling edge if they could be wired together.
109 * interrupts-extended =
110 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
111 * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>;
116 compatible = "st,lsm303dlh-magn";
118 vdd-supply = <&ab8500_ldo_aux1_reg>;
119 vddio-supply = <&db8500_vsmps2_reg>;
121 * These interrupts cannot be used: the other component
122 * ST-Micro L3D4200D gyro that is connected to the same lines
123 * cannot set its DRDY line to open drain, so it cannot be
124 * shared with other peripherals. The should be defined for
125 * the falling edge if they could be wired together.
127 * interrupts-extended =
128 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
129 * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>;
134 compatible = "st,lis331dl-accel";
135 st,drdy-int-pin = <1>;
137 vdd-supply = <&ab8500_ldo_aux1_reg>;
138 vddio-supply = <&db8500_vsmps2_reg>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&accel_tvk_mode>;
141 interrupt-parent = <&gpio2>;
142 /* INT2 would need to be open drain */
143 interrupts = <18 IRQ_TYPE_EDGE_RISING>,
144 <19 IRQ_TYPE_EDGE_RISING>;
148 compatible = "asahi-kasei,ak8974";
150 avdd-supply = <&ab8500_ldo_aux1_reg>;
151 dvdd-supply = <&db8500_vsmps2_reg>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&gyro_magn_tvk_mode>;
155 * These interrupts cannot be used: the other component
156 * ST-Micro L3D4200D gyro that is connected to the same lines
157 * cannot set its DRDY line to open drain, so it cannot be
158 * shared with other peripherals. The should be defined for
159 * the falling edge if they could be wired together.
161 * interrupts-extended =
162 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
163 * <&gpio0 31 IRQ_TYPE_EDGE_FALLING>;
168 compatible = "st,l3g4200d-gyro";
169 st,drdy-int-pin = <2>;
171 vdd-supply = <&ab8500_ldo_aux1_reg>;
172 vddio-supply = <&db8500_vsmps2_reg>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&gyro_magn_tvk_mode>;
175 interrupts-extended =
176 <&gpio1 0 IRQ_TYPE_EDGE_RISING>,
177 <&gpio0 31 IRQ_TYPE_EDGE_RISING>;
180 /* Barometer/pressure sensor */
181 compatible = "st,lps001wp-press";
183 vdd-supply = <&ab8500_ldo_aux1_reg>;
184 vddio-supply = <&db8500_vsmps2_reg>;
190 /* Synaptics RMI4 TM1217 touchscreen */
191 compatible = "syna,rmi4-i2c";
192 #address-cells = <1>;
195 vdd-supply = <&ab8500_ldo_aux1_reg>;
196 vddio-supply = <&db8500_vsmps2_reg>;
197 pinctrl-names = "default";
198 pinctrl-0 = <&synaptics_tvk_mode>;
199 interrupt-parent = <&gpio2>;
200 interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
208 touchscreen-inverted-x;
209 syna,sensor-type = <1>;
215 /* Pull up this GPIO pin */
217 tc35893_tvk_mode: tc35893_tvk {
219 pins = "GPIO218_AH11";
220 ste,config = <&gpio_in_pu>;
225 prox_tvk_mode: prox_tvk {
227 pins = "GPIO217_AH12";
228 ste,config = <&gpio_in_pu>;
233 hall_tvk_mode: hall_tvk {
235 pins = "GPIO145_C13";
236 ste,config = <&gpio_in_pu>;
241 accel_tvk_mode: accel_tvk {
242 /* Accelerometer interrupt lines 1 & 2 */
244 pins = "GPIO82_C1", "GPIO83_D3";
245 ste,config = <&gpio_in_pd>;
251 * These lines are shared between Gyroscope l3g400dh
252 * and AK8974 magnetometer.
254 gyro_magn_tvk_mode: gyro_magn_tvk {
255 /* GPIO 31 used for INT pull down the line */
258 ste,config = <&gpio_in_pd>;
260 /* GPIO 32 used for DRDY, pull this down */
263 ste,config = <&gpio_in_pd>;
268 synaptics_tvk_mode: synaptics_tvk {
269 /* Touchscreen uses GPIO 84 */
272 ste,config = <&gpio_in_pu>;