mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio: adc: ti-ads112c14: add gpio support
@ 2026-11-06 22:00 David Lechner (TI)
  2026-11-06 22:00 ` [PATCH v3 1/2] iio: adc: ti-ads112c14: parameterize GPIO register field macros David Lechner (TI)
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Lechner (TI) @ 2026-11-06 22:00 UTC (permalink / raw)
  To: Jonathan Cameron, Nuno Sá,
	Andy Shevchenko, Linus Walleij, Bartosz Golaszewski
  Cc: linux-iio, linux-kernel, linux-gpio, Chris Hall, Patrick Edwards,
	Kurt Borja, David Lechner (TI),
	Bartosz Golaszewski

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@baylibre.com>
---
Changes in v3:
- Rebased on iio/togreg.
- Use device_property_match_string() for fault interrupt check.
- Use device_property_present() for gpio-controller check.
- Picked up Reviewed-by on patch 1.
- Link to v2: https://patch.msgid.link/20261009-iio-adc-ti-ads112c14-gpio-v2-0-3231a795fa63@baylibre.com

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@baylibre.com

---
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: 1390ca4953a7400ca932cb49635f02c727f885a6
base-tree: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
change-id: 20260925-iio-adc-ti-ads112c14-gpio-197bb4c70411

Best regards,
--  
David Lechner (TI) <dlechner@baylibre.com>


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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 22:00 [PATCH v3 0/2] iio: adc: ti-ads112c14: add gpio support David Lechner (TI)
2026-11-06 22:00 ` [PATCH v3 1/2] iio: adc: ti-ads112c14: parameterize GPIO register field macros David Lechner (TI)
2026-11-06 22:00 ` [PATCH v3 2/2] iio: adc: ti-ads112c14: add gpio support David Lechner (TI)
2026-11-09  9:29   ` Bartosz Golaszewski
2026-11-14 22:45 ` [PATCH v3 0/2] " Jonathan Cameron

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

all inboxes | Powered by JetHome®