Skip to content

Commit 471a92f

Browse files
WhatAmISupposedToPutHeredtor
authored andcommitted
Input: apple_z2 - add a driver for Apple Z2 touchscreens
Adds a driver for Apple touchscreens using the Z2 protocol. Signed-off-by: Janne Grunau <j@jannau.net> Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com> Link: https://lore.kernel.org/r/20250217-z2-v6-2-c2115d6e5a8f@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent ed872ce commit 471a92f

File tree

3 files changed

+491
-0
lines changed

3 files changed

+491
-0
lines changed

drivers/input/touchscreen/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,19 @@ config TOUCHSCREEN_ADC
103103
To compile this driver as a module, choose M here: the
104104
module will be called resistive-adc-touch.ko.
105105

106+
config TOUCHSCREEN_APPLE_Z2
107+
tristate "Apple Z2 touchscreens"
108+
default ARCH_APPLE
109+
depends on SPI
110+
help
111+
Say Y here if you have an Apple device with
112+
a touchscreen or a touchbar.
113+
114+
If unsure, say N.
115+
116+
To compile this driver as a module, choose M here: the
117+
module will be called apple_z2.
118+
106119
config TOUCHSCREEN_AR1021_I2C
107120
tristate "Microchip AR1020/1021 i2c touchscreen"
108121
depends on I2C && OF

drivers/input/touchscreen/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ obj-$(CONFIG_TOUCHSCREEN_AD7879_I2C) += ad7879-i2c.o
1515
obj-$(CONFIG_TOUCHSCREEN_AD7879_SPI) += ad7879-spi.o
1616
obj-$(CONFIG_TOUCHSCREEN_ADC) += resistive-adc-touch.o
1717
obj-$(CONFIG_TOUCHSCREEN_ADS7846) += ads7846.o
18+
obj-$(CONFIG_TOUCHSCREEN_APPLE_Z2) += apple_z2.o
1819
obj-$(CONFIG_TOUCHSCREEN_AR1021_I2C) += ar1021_i2c.o
1920
obj-$(CONFIG_TOUCHSCREEN_ATMEL_MXT) += atmel_mxt_ts.o
2021
obj-$(CONFIG_TOUCHSCREEN_AUO_PIXCIR) += auo-pixcir-ts.o

0 commit comments

Comments
 (0)