1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2012 ST-Ericsson AB
6 #include <dt-bindings/interrupt-controller/irq.h>
10 compatible = "gpio-keys";
13 vdd-supply = <&ab8500_ldo_aux1_reg>;
14 pinctrl-names = "default";
15 pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>;
18 /* Proximity sensor */
19 gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
20 linux,code = <11>; /* SW_FRONT_PROXIMITY */
21 label = "SFH7741 Proximity Sensor";
25 gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
26 linux,code = <0>; /* SW_LID */
27 label = "HED54XXU11 Hall Effect Sensor";
33 stmpe1601: stmpe1601@40 {
34 compatible = "st,stmpe1601";
36 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
37 interrupt-parent = <&gpio6>;
39 vcc-supply = <&db8500_vsmps2_reg>;
40 vio-supply = <&db8500_vsmps2_reg>;
41 pinctrl-names = "default";
42 pinctrl-0 = <&stmpe_stuib_mode>;
45 st,autosleep-timeout = <1024>;
48 compatible = "st,stmpe-keypad";
50 debounce-interval = <64>;
54 linux,keymap = <0x205006b
76 /* Sensors mounted on this board variant */
80 compatible = "st,lis331dl-accel";
81 st,drdy-int-pin = <1>;
83 vdd-supply = <&ab8500_ldo_aux1_reg>;
84 vddio-supply = <&db8500_vsmps2_reg>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&accel_stuib_mode>;
87 interrupt-parent = <&gpio2>;
88 interrupts = <18 IRQ_TYPE_EDGE_RISING>,
89 <19 IRQ_TYPE_EDGE_RISING>;
93 compatible = "asahi-kasei,ak8974";
95 vdd-supply = <&ab8500_ldo_aux1_reg>;
96 vddio-supply = <&db8500_vsmps2_reg>;
97 pinctrl-names = "default";
98 pinctrl-0 = <&magneto_stuib_mode>;
99 interrupt-parent = <&gpio1>;
100 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
106 compatible = "rohm,bu21013_tp";
108 avdd-supply = <&ab8500_ldo_aux1_reg>;
110 rohm,touch-max-x = <384>;
111 rohm,touch-max-y = <704>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&touch_rohm_mode>;
118 compatible = "rohm,bu21013_tp";
120 avdd-supply = <&ab8500_ldo_aux1_reg>;
122 rohm,touch-max-x = <384>;
123 rohm,touch-max-y = <704>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&touch_rohm_mode>;
131 /* Pull up this GPIO pin */
133 stmpe_stuib_mode: stmpe_stuib {
135 ste,pins = "GPIO218_AH11";
136 ste,config = <&gpio_in_pu>;
141 prox_stuib_mode: prox_stuib {
143 pins = "GPIO217_AH12";
144 ste,config = <&gpio_in_pu>;
149 hall_stuib_mode: stuib_tvk {
151 pins = "GPIO145_C13";
152 ste,config = <&gpio_in_pu>;
157 accel_stuib_mode: accel_stuib {
158 /* Accelerometer interrupt lines 1 & 2 */
160 pins = "GPIO82_C1", "GPIO83_D3";
161 ste,config = <&gpio_in_pu>;
166 magneto_stuib_mode: magneto_stuib {
167 /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */
170 ste,config = <&gpio_in_pu>;
174 ste,config = <&gpio_in_pd>;
179 touch_rohm_mode: touch_rohm {
181 * ROHM touch screen uses GPIO 143 for
182 * RST1, GPIO 146 for RST2 and
183 * GPIO 67 for interrupts. Pull-up
184 * the IRQ line and drive both
188 pins = "GPIO143_D12", "GPIO146_D13";
189 ste,config = <&gpio_out_lo>;
193 ste,config = <&gpio_in_pu>;
204 compatible = "samsung,s6d16d0";
206 vdd1-supply = <&ab8500_ldo_aux1_reg>;
207 reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;