1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2012 ST-Ericsson AB
5 * Device Tree for the TVK1281618 UIB
8 #include <dt-bindings/interrupt-controller/irq.h>
12 compatible = "gpio-keys";
15 vdd-supply = <&ab8500_ldo_aux1_reg>;
16 pinctrl-names = "default";
17 pinctrl-0 = <&prox_tvk_mode>, <&hall_tvk_mode>;
20 /* Proximity sensor */
21 gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
22 linux,code = <11>; /* SW_FRONT_PROXIMITY */
23 label = "SFH7741 Proximity Sensor";
27 gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
28 linux,code = <0>; /* SW_LID */
29 label = "HED54XXU11 Hall Effect Sensor";
36 compatible = "toshiba,tc35893";
38 interrupt-parent = <&gpio6>;
39 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
40 pinctrl-names = "default";
41 pinctrl-0 = <&tc35893_tvk_mode>;
44 #interrupt-cells = <1>;
47 compatible = "toshiba,tc3589x-gpio";
51 #interrupt-cells = <2>;
56 compatible = "toshiba,tc3589x-keypad";
58 debounce-delay-ms = <4>;
59 keypad,num-columns = <8>;
60 keypad,num-rows = <8>;
63 linux,keymap = <0x0301006b
84 /* Sensors mounted on this board variant */
88 compatible = "st,lsm303dlh-accel";
89 st,drdy-int-pin = <1>;
92 vdd-supply = <&ab8500_ldo_aux1_reg>;
93 vddio-supply = <&db8500_vsmps2_reg>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&accel_tvk_mode>;
97 * These interrupts cannot be used: the other component
98 * ST-Micro L3D4200D gyro that is connected to the same lines
99 * cannot set its DRDY line to open drain, so it cannot be
100 * shared with other peripherals. The should be defined for
101 * the falling edge if they could be wired together.
103 * interrupts-extended =
104 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
105 * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>;
110 compatible = "st,lsm303dlh-magn";
112 vdd-supply = <&ab8500_ldo_aux1_reg>;
113 vddio-supply = <&db8500_vsmps2_reg>;
115 * These interrupts cannot be used: the other component
116 * ST-Micro L3D4200D gyro that is connected to the same lines
117 * cannot set its DRDY line to open drain, so it cannot be
118 * shared with other peripherals. The should be defined for
119 * the falling edge if they could be wired together.
121 * interrupts-extended =
122 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
123 * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>;
128 compatible = "st,lis331dl-accel";
129 st,drdy-int-pin = <1>;
131 vdd-supply = <&ab8500_ldo_aux1_reg>;
132 vddio-supply = <&db8500_vsmps2_reg>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&accel_tvk_mode>;
135 interrupt-parent = <&gpio2>;
136 /* INT2 would need to be open drain */
137 interrupts = <18 IRQ_TYPE_EDGE_RISING>,
138 <19 IRQ_TYPE_EDGE_RISING>;
142 compatible = "asahi-kasei,ak8974";
144 avdd-supply = <&ab8500_ldo_aux1_reg>;
145 dvdd-supply = <&db8500_vsmps2_reg>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&gyro_magn_tvk_mode>;
149 * These interrupts cannot be used: the other component
150 * ST-Micro L3D4200D gyro that is connected to the same lines
151 * cannot set its DRDY line to open drain, so it cannot be
152 * shared with other peripherals. The should be defined for
153 * the falling edge if they could be wired together.
155 * interrupts-extended =
156 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
157 * <&gpio0 31 IRQ_TYPE_EDGE_FALLING>;
162 compatible = "st,l3g4200d-gyro";
163 st,drdy-int-pin = <2>;
165 vdd-supply = <&ab8500_ldo_aux1_reg>;
166 vddio-supply = <&db8500_vsmps2_reg>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&gyro_magn_tvk_mode>;
169 interrupts-extended =
170 <&gpio1 0 IRQ_TYPE_EDGE_RISING>,
171 <&gpio0 31 IRQ_TYPE_EDGE_RISING>;
174 /* Barometer/pressure sensor */
175 compatible = "st,lps001wp-press";
177 vdd-supply = <&ab8500_ldo_aux1_reg>;
178 vddio-supply = <&db8500_vsmps2_reg>;
184 /* Synaptics RMI4 TM1217 touchscreen */
185 compatible = "syna,rmi4-i2c";
186 #address-cells = <1>;
189 vdd-supply = <&ab8500_ldo_aux1_reg>;
190 vddio-supply = <&db8500_vsmps2_reg>;
191 pinctrl-names = "default";
192 pinctrl-0 = <&synaptics_tvk_mode>;
193 interrupt-parent = <&gpio2>;
194 interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
202 touchscreen-inverted-x;
203 syna,sensor-type = <1>;
209 /* Pull up this GPIO pin */
211 tc35893_tvk_mode: tc35893_tvk {
213 pins = "GPIO218_AH11";
214 ste,config = <&gpio_in_pu>;
219 prox_tvk_mode: prox_tvk {
221 pins = "GPIO217_AH12";
222 ste,config = <&gpio_in_pu>;
227 hall_tvk_mode: hall_tvk {
229 pins = "GPIO145_C13";
230 ste,config = <&gpio_in_pu>;
235 accel_tvk_mode: accel_tvk {
236 /* Accelerometer interrupt lines 1 & 2 */
238 pins = "GPIO82_C1", "GPIO83_D3";
239 ste,config = <&gpio_in_pd>;
245 * These lines are shared between Gyroscope l3g400dh
246 * and AK8974 magnetometer.
248 gyro_magn_tvk_mode: gyro_magn_tvk {
249 /* GPIO 31 used for INT pull down the line */
252 ste,config = <&gpio_in_pd>;
254 /* GPIO 32 used for DRDY, pull this down */
257 ste,config = <&gpio_in_pd>;
262 synaptics_tvk_mode: synaptics_tvk {
263 /* Touchscreen uses GPIO 84 */
266 ste,config = <&gpio_in_pu>;
277 compatible = "samsung,s6d16d0";
279 vdd1-supply = <&ab8500_ldo_aux1_reg>;
280 reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;