OSDN Git Service

HID: i2c-hid-of: Add reset GPIO support to i2c-hid-of
authorHans de Goede <hdegoede@redhat.com>
Thu, 13 Apr 2023 09:36:25 +0000 (11:36 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 13 Apr 2023 14:27:42 +0000 (16:27 +0200)
commit2be404486c05980371b293ea5ff4b3fde70cedae
tree8ca5b37dda2007c9ff801719cee9e7a46a065604
parent728ec8b6eda8f61dfeb2a4154e90c134d307e1de
HID: i2c-hid-of: Add reset GPIO support to i2c-hid-of

Add reset GPIO support to the generic i2c-hid-of driver

This is necessary to make the Wacom digitizer on the Lenovo Yoga Book 1
(yb1-x90f/l) work and this will also allow consolidating the 2 specialized
i2c-hid-of-elan.c and i2c-hid-of-goodix.c drivers into the generic
i2c-hid-of driver.

For now the new "post-reset-deassert-delay-ms" property is only used on
x86/ACPI (non devicetree) devs. IOW it is not used in actual devicetree
files and the same goes for the reset GPIO. The devicetree-bindings
maintainers have requested properties like these to not be added to
the devicetree-bindings, so the new property + GPIO are deliberately
not added to the existing devicetree-bindings.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20230413093625.71146-4-hdegoede@redhat.com
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/i2c-hid/i2c-hid-of.c