[PATCH v1 0/2] iio: proximity: add Imagis ISG5320A (Samsung Galaxy XCover5)

From: Adil Hüsrev Tepe

Date: Mon Nov 16 2026 - 02:41:16 EST


This series adds an IIO driver and its binding for the Imagis ISG5320A
capacitive SAR/grip proximity sensor, as fitted on the Samsung Galaxy
XCover5 (Exynos850).

1 dt-bindings: add imagis,isg5320a
2 the IIO proximity driver

The driver exposes one IIO_PROXIMITY channel (the B-channel signal minus
its baseline) and a rising/falling threshold event. Tested on an XCover5:
it probes, registers the IIO device and reads a stable baseline value.

Based on v7.4-rc1.

Tool usage
----------
Derived from the Samsung vendor driver during XCover5 mainline bring-up
with an AI coding assistant (Claude Code, Anthropic), which drafted the
mainline IIO driver and the binding. I reviewed every line and tested
probe and read-back on hardware. Review comments are welcome and I will
answer them myself.

Adil Hüsrev Tepe (2):
dt-bindings: iio: proximity: add Imagis ISG5320A
iio: proximity: add Imagis ISG5320A SAR sensor driver

.../iio/proximity/imagis,isg5320a.yaml | 56 ++
drivers/iio/proximity/Kconfig | 11 +
drivers/iio/proximity/Makefile | 1 +
drivers/iio/proximity/isg5320a.c | 857 ++++++++++++++++++
4 files changed, 925 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/proximity/imagis,isg5320a.yaml
create mode 100644 drivers/iio/proximity/isg5320a.c

--
2.53.0