linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/7] iio: adc: stm32-adc: add internal channels support
@ 2021-10-11 15:57 Olivier Moysan
  2021-10-11 15:57 ` [PATCH v4 1/7] dt-bindings: iio: stm32-adc: add generic channel binding Olivier Moysan
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Olivier Moysan @ 2021-10-11 15:57 UTC (permalink / raw)
  To: Alexandre Torgue, Fabrice Gasnier, Jonathan Cameron,
	Lars-Peter Clausen, Maxime Coquelin, Olivier Moysan, Rob Herring
  Cc: devicetree, linux-arm-kernel, linux-iio, linux-kernel, linux-stm32

This patchset adds support of ADC2 internal channels VDDCORE, VREFINT and VBAT
on STM32MP15x SoCs. The generic IIO channel bindings is also introduced here
to provide this feature. The legacy channel binding is kept for backward compatibility.

Changes in v2:
- Add 'deprecated' to channels legacy properties in ADC bindings
- Add set/clr service for common registers, to make code more generic in
  internal channels enable/disable services.
- Expose vrefint channel as a processed channel to return
  the actual value of vrefp.
- Minor code improvements

Changes in v3:
- fix vrefint sampling time check.

Changes in v4:
- fix binding
- add dedicated spin lock for common register
- manage probe_defer on nvmem read

Olivier Moysan (7):
  dt-bindings: iio: stm32-adc: add generic channel binding
  dt-bindings: iio: stm32-adc: add nvmem support for vrefint internal
    channel
  iio: adc: stm32-adc: split channel init into several routines
  iio: adc: stm32-adc: add support of generic channels binding
  iio: adc: stm32-adc: add support of internal channels
  iio: adc: stm32-adc: add vrefint calibration support
  iio: adc: stm32-adc: use generic binding for sample-time

 .../bindings/iio/adc/st,stm32-adc.yaml        | 108 ++++-
 drivers/iio/adc/stm32-adc-core.c              |   1 +
 drivers/iio/adc/stm32-adc-core.h              |  10 +
 drivers/iio/adc/stm32-adc.c                   | 422 ++++++++++++++++--
 4 files changed, 486 insertions(+), 55 deletions(-)

-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-10-12  9:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-11 15:57 [PATCH v4 0/7] iio: adc: stm32-adc: add internal channels support Olivier Moysan
2021-10-11 15:57 ` [PATCH v4 1/7] dt-bindings: iio: stm32-adc: add generic channel binding Olivier Moysan
2021-10-11 23:13   ` Rob Herring
2021-10-11 15:57 ` [PATCH v4 2/7] dt-bindings: iio: stm32-adc: add nvmem support for vrefint internal channel Olivier Moysan
2021-10-11 15:57 ` [PATCH v4 3/7] iio: adc: stm32-adc: split channel init into several routines Olivier Moysan
2021-10-11 15:57 ` [PATCH v4 4/7] iio: adc: stm32-adc: add support of generic channels binding Olivier Moysan
2021-10-11 15:57 ` [PATCH v4 5/7] iio: adc: stm32-adc: add support of internal channels Olivier Moysan
2021-10-12  9:42   ` [Linux-stm32] " Fabrice Gasnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).