[PATCH v4 0/2] iio:proximity:hx9023s: Add TYHX HX9023S sensor driver

From: Yasin Lee
Date: Fri Jun 07 2024 - 07:42:36 EST


From: Yasin Lee <yasin.lee.x@xxxxxxxxx>

v4:
- Removed hardware-irrelevant properties from dt-bindings, retaining only channel configuration
related `channel-positive` and `channel-negative`. Grouped by channel.
Retained `channel-in-use` as it is hardware-related.
- Removed redundant register definitions.
- Reorganized `struct hx9023s_data`, extracting channel-related attributes
into a new `struct hx9023s_ch_data`.
- Optimized bit operation related code.
- Replaced `of_` versions with generic firmware parsing functions.
- Fixed other issues mentioned in the email feedback.

Link: https://lore.kernel.org/linux-iio/20240602152638.2c674930@jic23-huawei/

Yasin Lee (2):
dt-bindings:iio:proximity: Add hx9023s binding
iio:proximity:hx9023s: Add TYHX HX9023S sensor driver

.../bindings/iio/proximity/tyhx,hx9023s.yaml | 103 ++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
drivers/iio/proximity/Kconfig | 14 +
drivers/iio/proximity/Makefile | 1 +
drivers/iio/proximity/hx9023s.c | 1162 +++++++++++++++++
5 files changed, 1282 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/proximity/tyhx,hx9023s.yaml
create mode 100644 drivers/iio/proximity/hx9023s.c

--
2.25.1