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 0x4>;
26 linux,code = <11>; /* SW_FRONT_PROXIMITY */
27 label = "SFH7741 Proximity Sensor";
31 gpios = <&gpio4 17 0x4>;
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
82 compatible = "rohm,bu21013_tp";
84 avdd-supply = <&ab8500_ldo_aux1_reg>;
86 rohm,touch-max-x = <384>;
87 rohm,touch-max-y = <704>;
92 compatible = "rohm,bu21013_tp";
94 avdd-supply = <&ab8500_ldo_aux1_reg>;
96 rohm,touch-max-x = <384>;
97 rohm,touch-max-y = <704>;
104 prox_stuib_mode: prox_stuib {
106 ste,pins = "GPIO217_AH12";
107 ste,config = <&gpio_in_pu>;
112 hall_stuib_mode: stuib_tvk {
114 ste,pins = "GPIO145_C13";
115 ste,config = <&gpio_in_pu>;