Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Input: s6sy761 - add SPI support for the S6SY791
@ 2026-11-28 13:51 Lukas Timmermann
  2026-11-28 13:51 ` [PATCH v2 1/7] dt-bindings: input: touchscreen: samsung,s6sy761: Add S6SY791 and reset GPIO Lukas Timmermann
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Lukas Timmermann @ 2026-11-28 13:51 UTC (permalink / raw)
  To: Lukas Timmermann, Dmitry Torokhov, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Andi Shyti, Peter Griffin,
	André Draszik, Tudor Ambarus, Alim Akhtar
  Cc: linux-input, devicetree, linux-kernel, linux-arm-kernel,
	linux-samsung-soc

This series adds SPI support to S6SY761 touch controllers, specifically
S6SY791 devices. Also included are the necessary adjustments in the DTS
for the Google Pixel 6 Pro (raven) which uses the aforementioned SPI
version. As the mentioned board has a reset line wired, I also added that
functionality to the bindings and driver. To implement SPI versions
cleanly, the driver was split into core and bus transfer modules like
seen in other drivers.

This series was successfully tested with a Google Pixel 6 Pro. The I2C
transfer part was untested because I don't have a device with an
S6SY761 controller.

Known issue: on gs101 the touchscreen probe at boot fails with -EIO
because the very first SPI transfer is not understood by the controller
(the reply is all zeros); rebinding the driver works. This looks like
spi-s3c64xx applying CPOL/CPHA only in transfer_one(), after chip
select has been asserted, but I have not verified this further. It is
not addressed by this series.

Patches 1-4 and 7 are meant for the input tree, patches 5-6 for the
Samsung SoC tree. The DTS patches depend on the binding in patch 1.

---
Changes in v2:
- Reworked dt-bindings to require properties for SPI variants
- Fixed I²C variants having SPI properties allowed
- Don't wait for devices without reset gpio to come out of reset
  anymore
- Remove includes of linux/mod_devicetable.h
- Cleaned up array initialization around of_ids
- Link to v1: https://patch.msgid.link/20261011-lat3st-google-raven-touch-upstream-v1-0-2a9f55159b9e@timmermann.space

To: Lukas Timmermann <foss@timmermann.space>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Andi Shyti <andi.shyti@kernel.org>
To: Peter Griffin <peter.griffin@linaro.org>
To: André Draszik <andre.draszik@linaro.org>
To: Tudor Ambarus <tudor.ambarus@linaro.org>
To: Alim Akhtar <alim.akhtar@samsung.com>
Cc: linux-input@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org

---
Lukas Timmermann (7):
      dt-bindings: input: touchscreen: samsung,s6sy761: Add S6SY791 and reset GPIO
      Input: s6sy761 - split into core and I2C modules
      Input: s6sy761 - add reset GPIO support
      Input: s6sy761 - add SPI support for S6SY791
      arm64: dts: exynos: gs101-pixel-common: add labels for touchscreen supplies
      arm64: dts: exynos: gs101-raven: add S6SY791 touchscreen
      MAINTAINERS: add entry for Samsung S6SY761 touchscreen driver

 .../input/touchscreen/samsung,s6sy761.yaml         |  51 ++++-
 MAINTAINERS                                        |   7 +
 .../boot/dts/exynos/google/gs101-pixel-common.dtsi |   4 +-
 arch/arm64/boot/dts/exynos/google/gs101-raven.dts  |  50 +++++
 drivers/input/touchscreen/Kconfig                  |  20 +-
 drivers/input/touchscreen/Makefile                 |   4 +-
 .../touchscreen/{s6sy761.c => s6sy761_core.c}      | 228 ++++++++++-----------
 drivers/input/touchscreen/s6sy761_core.h           |  34 +++
 drivers/input/touchscreen/s6sy761_i2c.c            | 111 ++++++++++
 drivers/input/touchscreen/s6sy761_spi.c            | 171 ++++++++++++++++
 10 files changed, 548 insertions(+), 132 deletions(-)
---
base-commit: 56beabeaf17aaf9acc6afc6d6d21ea28d8f67797
change-id: 20261011-lat3st-google-raven-touch-upstream-f19acd121f2c

Best regards,
--  
Lukas Timmermann <foss@timmermann.space>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-11-28 14:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 13:51 [PATCH v2 0/7] Input: s6sy761 - add SPI support for the S6SY791 Lukas Timmermann
2026-11-28 13:51 ` [PATCH v2 1/7] dt-bindings: input: touchscreen: samsung,s6sy761: Add S6SY791 and reset GPIO Lukas Timmermann
2026-11-28 13:51 ` [PATCH v2 2/7] Input: s6sy761 - split into core and I2C modules Lukas Timmermann
2026-11-28 13:51 ` [PATCH v2 3/7] Input: s6sy761 - add reset GPIO support Lukas Timmermann
2026-11-28 13:59   ` sashiko-bot
2026-11-28 13:51 ` [PATCH v2 4/7] Input: s6sy761 - add SPI support for S6SY791 Lukas Timmermann
2026-11-28 14:03   ` sashiko-bot
2026-11-28 13:51 ` [PATCH v2 5/7] arm64: dts: exynos: gs101-pixel-common: add labels for touchscreen supplies Lukas Timmermann
2026-11-28 13:51 ` [PATCH v2 6/7] arm64: dts: exynos: gs101-raven: add S6SY791 touchscreen Lukas Timmermann
2026-11-28 14:02   ` sashiko-bot
2026-11-28 13:51 ` [PATCH v2 7/7] MAINTAINERS: add entry for Samsung S6SY761 touchscreen driver Lukas Timmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox