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 0x4>;
28 linux,code = <11>; /* SW_FRONT_PROXIMITY */
29 label = "SFH7741 Proximity Sensor";
33 gpios = <&gpio4 17 0x4>;
34 linux,code = <0>; /* SW_LID */
35 label = "HED54XXU11 Hall Effect Sensor";
40 /* Add Synaptics touch screen, TC35893 keypad etc here */
43 compatible = "toshiba,tc35893";
45 interrupt-parent = <&gpio6>;
46 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
47 pinctrl-names = "default";
48 pinctrl-0 = <&tc35893_tvk_mode>;
51 #interrupt-cells = <1>;
54 compatible = "toshiba,tc3589x-gpio";
58 #interrupt-cells = <2>;
63 compatible = "toshiba,tc3589x-keypad";
65 debounce-delay-ms = <4>;
66 keypad,num-columns = <8>;
67 keypad,num-rows = <8>;
70 linux,keymap = <0x0301006b
91 /* Sensors mounted on this board variant */
95 compatible = "st,lsm303dlh-accel";
96 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_RISING>,
104 <19 IRQ_TYPE_EDGE_RISING>;
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>;
123 vdd-supply = <&ab8500_ldo_aux1_reg>;
124 vddio-supply = <&db8500_vsmps2_reg>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&accel_tvk_mode>;
127 interrupt-parent = <&gpio2>;
128 interrupts = <18 IRQ_TYPE_EDGE_RISING>,
129 <19 IRQ_TYPE_EDGE_RISING>;
133 compatible = "asahi-kasei,ak8974";
135 vdd-supply = <&ab8500_ldo_aux1_reg>;
136 vddio-supply = <&db8500_vsmps2_reg>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&gyro_magn_tvk_mode>;
139 interrupt-parent = <&gpio1>;
140 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
144 compatible = "st,l3g4200d-gyro";
145 st,drdy-int-pin = <2>;
147 vdd-supply = <&ab8500_ldo_aux1_reg>;
148 vddio-supply = <&db8500_vsmps2_reg>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&gyro_magn_tvk_mode>;
151 interrupt-parent = <&gpio1>;
152 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
155 /* Barometer/pressure sensor */
156 compatible = "st,lps001wp-press";
158 vdd-supply = <&ab8500_ldo_aux1_reg>;
159 vddio-supply = <&db8500_vsmps2_reg>;
163 /* Pull up this GPIO pin */
165 tc35893_tvk_mode: tc35893_tvk {
167 pins = "GPIO218_AH11";
168 ste,config = <&gpio_in_pu>;
173 prox_tvk_mode: prox_tvk {
175 pins = "GPIO217_AH12";
176 ste,config = <&gpio_in_pu>;
181 hall_tvk_mode: hall_tvk {
183 pins = "GPIO145_C13";
184 ste,config = <&gpio_in_pu>;
189 accel_tvk_mode: accel_tvk {
190 /* Accelerometer interrupt lines 1 & 2 */
192 pins = "GPIO82_C1", "GPIO83_D3";
193 ste,config = <&gpio_in_pd>;
199 * These lines are shared between Gyroscope l3g400dh
200 * and AK8974 magnetometer.
202 gyro_magn_tvk_mode: gyro_magn_tvk {
203 /* GPIO 31 used for INT pull down the line */
206 ste,config = <&gpio_in_pd>;
208 /* GPIO 32 used for DRDY, pull this down */
211 ste,config = <&gpio_in_pd>;