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
12 #include <dt-bindings/interrupt-controller/irq.h>
16 compatible = "gpio-keys";
19 vdd-supply = <&ab8500_ldo_aux1_reg>;
20 pinctrl-names = "default";
21 pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>;
24 /* Proximity sensor */
25 gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
26 linux,code = <11>; /* SW_FRONT_PROXIMITY */
27 label = "SFH7741 Proximity Sensor";
31 gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
32 linux,code = <0>; /* SW_LID */
33 label = "HED54XXU11 Hall Effect Sensor";
39 stmpe1601: stmpe1601@40 {
40 compatible = "st,stmpe1601";
42 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
43 interrupt-parent = <&gpio6>;
45 vcc-supply = <&db8500_vsmps2_reg>;
46 vio-supply = <&db8500_vsmps2_reg>;
49 st,autosleep-timeout = <1024>;
52 compatible = "st,stmpe-keypad";
54 debounce-interval = <64>;
58 linux,keymap = <0x205006b
80 /* Sensors mounted on this board variant */
84 compatible = "st,lis331dl-accel";
85 st,drdy-int-pin = <1>;
87 vdd-supply = <&ab8500_ldo_aux1_reg>;
88 vddio-supply = <&db8500_vsmps2_reg>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&accel_stuib_mode>;
91 interrupt-parent = <&gpio2>;
92 interrupts = <18 IRQ_TYPE_EDGE_RISING>,
93 <19 IRQ_TYPE_EDGE_RISING>;
97 compatible = "asahi-kasei,ak8974";
99 vdd-supply = <&ab8500_ldo_aux1_reg>;
100 vddio-supply = <&db8500_vsmps2_reg>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&magneto_stuib_mode>;
103 interrupt-parent = <&gpio1>;
104 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
110 compatible = "rohm,bu21013_tp";
112 avdd-supply = <&ab8500_ldo_aux1_reg>;
114 rohm,touch-max-x = <384>;
115 rohm,touch-max-y = <704>;
117 pinctrl-names = "default";
118 pinctrl-0 = <&touch_rohm_mode>;
122 compatible = "rohm,bu21013_tp";
124 avdd-supply = <&ab8500_ldo_aux1_reg>;
126 rohm,touch-max-x = <384>;
127 rohm,touch-max-y = <704>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&touch_rohm_mode>;
136 prox_stuib_mode: prox_stuib {
138 pins = "GPIO217_AH12";
139 ste,config = <&gpio_in_pu>;
144 hall_stuib_mode: stuib_tvk {
146 pins = "GPIO145_C13";
147 ste,config = <&gpio_in_pu>;
152 accel_stuib_mode: accel_stuib {
153 /* Accelerometer interrupt lines 1 & 2 */
155 pins = "GPIO82_C1", "GPIO83_D3";
156 ste,config = <&gpio_in_pu>;
161 magneto_stuib_mode: magneto_stuib {
162 /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */
165 ste,config = <&gpio_in_pu>;
169 ste,config = <&gpio_in_pd>;
174 touch_rohm_mode: touch_rohm {
176 * ROHM touch screen uses GPIO 143 for
177 * RST1, GPIO 146 for RST2 and
178 * GPIO 67 for interrupts. Pull-up
179 * the IRQ line and drive both
183 pins = "GPIO143_D12", "GPIO146_D13";
184 ste,config = <&gpio_out_lo>;
188 ste,config = <&gpio_in_pu>;