platform/x86: add support for devices with Silead touchscreens
Subsystems (2)
PATCH v5 1/1 platform/x86: add support for devices with Silead touchscreens
On ACPI based tablets, the ACPI touchscreen node only contains info on the gpio and the irq, and is missing any info on the axis. This info is expected to be built into the tablet model specific version of the driver shipped with the os-image for the device.
Add support for getting the missing info from a table built into the driver, using dmi data to identify which entry of the table to use and add info for the CUBE iwork8 Air and Jumper EZpad mini3 tablets on which this code was tested / developed.
---
Changes in v2:
-Put the dmi code in a separate silead_dmi.c file -Use device_add_properties to add the info Changes in v3 (Dmitry Torokhov):
-Move the silead_dmi code to drivers/platform/x86 Changes in v4:
-Minor spelling and code-style fixes based on review from
Andy Shevchenko
Changes in v5:
-Use has_acpi_companion()
-Drop .ident from dmi_id structs, it is not used
--- MAINTAINERS | 8 +++ drivers/platform/x86/Kconfig | 11 +++ drivers/platform/x86/Makefile | 1 + drivers/platform/x86/silead_dmi.c | 136 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 156 insertions(+) create mode 100644 drivers/platform/x86/silead_dmi.c
MAINTAINERS +8 -0
@@ -11261,6 +11261,14 @@ F: drivers/media/usb/siano/ F: drivers/media/usb/siano/ F: drivers/media/mmc/siano/ +SILEAD TOUCHSCREEN DRIVER +M: Hans de Goede <[email protected]> +L: [email protected] +L: [email protected] +S: Maintained +F: drivers/input/touchscreen/silead.c +F: drivers/platform/x86/silead_dmi.c + SIMPLEFB FB DRIVER M: Hans de Goede <[email protected]> L: [email protected]
drivers/platform/x86/Kconfig +11 -0
@@ -1076,4 +1076,15 @@ config MLX_CPLD_PLATFORM This driver handles hot-plug events for the power suppliers, power cables and fans on the wide range Mellanox IB and Ethernet systems. +config SILEAD_DMI + bool "Tablets with Silead touchscreens" + depends on ACPI && DMI && I2C && INPUT + ---help--- + Certain ACPI based tablets with Silead touchscreens do not have + enough data in ACPI tables for the touchscreen driver to handle + the touchscreen properly, as OEMs expected the data to be baked + into the tablet model specific version of the driver shipped + with the OS-image for the device. This option supplies the missing + information. Enable this for x86 tablets with Silead touchscreens. + endif # X86_PLATFORM_DEVICES
drivers/platform/x86/Makefile +1 -0
@@ -76,3 +76,4 @@ obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o \ obj-$(CONFIG_INTEL_PMC_CORE) += intel_pmc_core.o obj-$(CONFIG_MLX_PLATFORM) += mlx-platform.o obj-$(CONFIG_MLX_CPLD_PLATFORM) += mlxcpld-hotplug.o +obj-$(CONFIG_SILEAD_DMI) += silead_dmi.o
drivers/platform/x86/silead_dmi.c new file +136 -0
136 lines not on this page · raw message
Signature · 1 line
2.9.3