[PATCH v2 0/2] iio: adc: ti-ads112c14: add gpio support
From: David Lechner (TI)
Date: Fri Oct 09 2026 - 19:26:25 EST
Add GPIO controller support to the TI ADS112C14 driver. The first patch
is a small cleanup to make the GPIO register field macros usable with a
GPIO offset. The second patch adds the GPIO support.
Signed-off-by: David Lechner (TI) <dlechner@xxxxxxxxxxxx>
---
Changes in v2:
- Split out GPIO register field macro changes into a separate patch.
- Make ads112c14_reserve_ain_pin() return ain and use it in assignments.
- Shorten names of GPIO reservation helper and mask.
- Set reserved bits directly in struct instead of copying from probe.
- Use non-atomic bit ops.
- Drop unneeded bitmap_fill() in init_valid_mask().
- Add GPIOLIB dependency.
- Link to v1: https://patch.msgid.link/20260925-iio-adc-ti-ads112c14-gpio-v1-1-2a2b218ebf3a@xxxxxxxxxxxx
---
David Lechner (TI) (2):
iio: adc: ti-ads112c14: parameterize GPIO register field macros
iio: adc: ti-ads112c14: add gpio support
drivers/iio/adc/Kconfig | 2 +-
drivers/iio/adc/ti-ads112c14.c | 191 ++++++++++++++++++++++++++++++++++++-----
2 files changed, 171 insertions(+), 22 deletions(-)
---
base-commit: a3b3580713f3ac5a32dc2874ee546828977a1d68
change-id: 20260925-iio-adc-ti-ads112c14-gpio-197bb4c70411
Best regards,
--
David Lechner (TI) <dlechner@xxxxxxxxxxxx>