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>;
43 st,autosleep-timeout = <1024>;
46 compatible = "st,stmpe-keypad";
48 debounce-interval = <64>;
52 linux,keymap = <0x205006b
74 /* Sensors mounted on this board variant */
78 compatible = "st,lis331dl-accel";
79 st,drdy-int-pin = <1>;
81 vdd-supply = <&ab8500_ldo_aux1_reg>;
82 vddio-supply = <&db8500_vsmps2_reg>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&accel_stuib_mode>;
85 interrupt-parent = <&gpio2>;
86 interrupts = <18 IRQ_TYPE_EDGE_RISING>,
87 <19 IRQ_TYPE_EDGE_RISING>;
91 compatible = "asahi-kasei,ak8974";
93 vdd-supply = <&ab8500_ldo_aux1_reg>;
94 vddio-supply = <&db8500_vsmps2_reg>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&magneto_stuib_mode>;
97 interrupt-parent = <&gpio1>;
98 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
104 compatible = "rohm,bu21013_tp";
106 avdd-supply = <&ab8500_ldo_aux1_reg>;
108 rohm,touch-max-x = <384>;
109 rohm,touch-max-y = <704>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&touch_rohm_mode>;
116 compatible = "rohm,bu21013_tp";
118 avdd-supply = <&ab8500_ldo_aux1_reg>;
120 rohm,touch-max-x = <384>;
121 rohm,touch-max-y = <704>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&touch_rohm_mode>;
130 prox_stuib_mode: prox_stuib {
132 pins = "GPIO217_AH12";
133 ste,config = <&gpio_in_pu>;
138 hall_stuib_mode: stuib_tvk {
140 pins = "GPIO145_C13";
141 ste,config = <&gpio_in_pu>;
146 accel_stuib_mode: accel_stuib {
147 /* Accelerometer interrupt lines 1 & 2 */
149 pins = "GPIO82_C1", "GPIO83_D3";
150 ste,config = <&gpio_in_pu>;
155 magneto_stuib_mode: magneto_stuib {
156 /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */
159 ste,config = <&gpio_in_pu>;
163 ste,config = <&gpio_in_pd>;
168 touch_rohm_mode: touch_rohm {
170 * ROHM touch screen uses GPIO 143 for
171 * RST1, GPIO 146 for RST2 and
172 * GPIO 67 for interrupts. Pull-up
173 * the IRQ line and drive both
177 pins = "GPIO143_D12", "GPIO146_D13";
178 ste,config = <&gpio_out_lo>;
182 ste,config = <&gpio_in_pu>;
193 compatible = "samsung,s6d16d0";
195 vdd1-supply = <&ab8500_ldo_aux1_reg>;
196 reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;