1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* linux/platform_data/ad7879.h */
4 /* Touchscreen characteristics vary between boards and models. The
5 * platform_data for the device's "struct device" holds this information.
7 * It's OK if the min/max values are zero.
9 struct ad7879_platform_data
{
14 u16 pressure_min
, pressure_max
;
16 bool swap_xy
; /* swap x and y axes */
18 /* [0..255] 0=OFF Starts at 1=550us and goes
19 * all the way to 9.440ms in steps of 35us.
21 u8 pen_down_acc_interval
;
22 /* [0..15] Starts at 0=128us and goes all the
23 * way to 4.096ms in steps of 128us.
25 u8 first_conversion_delay
;
26 /* [0..3] 0 = 2us, 1 = 4us, 2 = 8us, 3 = 16us */
28 /* [0..3] Average X middle samples 0 = 2, 1 = 4, 2 = 8, 3 = 16 */
30 /* [0..3] Perform X measurements 0 = OFF,
31 * 1 = 4, 2 = 8, 3 = 16 (median > averaging)
34 /* 1 = AUX/VBAT/GPIO export GPIO to gpiolib
35 * requires CONFIG_GPIOLIB
38 /* identifies the first GPIO number handled by this chip;
39 * or, if negative, requests dynamic ID allocation.