mbox series

[v2,0/2] Input: cypress-sf - Add support for Cypress Streetfighter touchkeys

Message ID 235fu6MnvzCoMBgP3Wkhz2ZmKOIG2ZYDBzYNBEJlbk@cp4-web-036.plabs.ch (mailing list archive)
Headers show
Series Input: cypress-sf - Add support for Cypress Streetfighter touchkeys | expand

Message

Yassine Oudjana May 4, 2021, 7:20 p.m. UTC
This patchset adds support for the Cypress StreetFighter touchkey device.
This driver is based on the driver from the vendor kernel for the Xiaomi
Mi Note 2[1][2], which is also the device where this was tested.

[1] https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/scorpio-m-oss/drivers/input/touchscreen/cyttsp_button.c
[2] https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/scorpio-m-oss/arch/arm/boot/dts/qcom/scorpio-msm8996-mtp.dtsi#L300-L322

Changes in v2:
 - Changed version variables in probe to int to allow storing error codes.
 - Fixed some issues in dt binding.

Yassine Oudjana (2):
  Input: cypress-sf - Add Cypress StreetFighter touchkey driver
  dt-bindings: input: Add binding for cypress-sf

 .../devicetree/bindings/input/cypress-sf.yaml |  61 +++++
 drivers/input/keyboard/Kconfig                |  10 +
 drivers/input/keyboard/Makefile               |   1 +
 drivers/input/keyboard/cypress-sf.c           | 219 ++++++++++++++++++
 4 files changed, 291 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/cypress-sf.yaml
 create mode 100644 drivers/input/keyboard/cypress-sf.c