From: Olivier Moysan <olivier.moysan@foss.st.com>
To: Alexandre Torgue <alexandre.torgue@foss.st.com>,
Fabrice Gasnier <fabrice.gasnier@foss.st.com>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Olivier Moysan <olivier.moysan@foss.st.com>,
Rob Herring <robh+dt@kernel.org>
Cc: <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>
Subject: [PATCH v5 0/7] iio: adc: stm32-adc: add internal channels support
Date: Thu, 14 Oct 2021 15:12:21 +0200 [thread overview]
Message-ID: <20211014131228.4692-1-olivier.moysan@foss.st.com> (raw)
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
Changes in v5:
- fix binding example
v5 resent as serie index was wrong on previous post. sorry !
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
next reply other threads:[~2021-10-14 13:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-14 13:12 Olivier Moysan [this message]
2021-10-14 13:12 ` [PATCH v5 1/7] dt-bindings: iio: stm32-adc: add generic channel binding Olivier Moysan
2021-10-18 16:52 ` Rob Herring
2021-10-18 17:54 ` Jonathan Cameron
2021-10-14 13:12 ` [PATCH v5 2/7] dt-bindings: iio: stm32-adc: add nvmem support for vrefint internal channel Olivier Moysan
2021-10-14 13:12 ` [PATCH v5 3/7] iio: adc: stm32-adc: split channel init into several routines Olivier Moysan
2021-10-14 13:12 ` [PATCH v5 4/7] iio: adc: stm32-adc: add support of generic channels binding Olivier Moysan
2021-10-14 13:12 ` [PATCH v5 5/7] iio: adc: stm32-adc: add support of internal channels Olivier Moysan
2021-10-14 13:12 ` [PATCH v5 6/7] iio: adc: stm32-adc: add vrefint calibration support Olivier Moysan
2021-10-14 13:12 ` [PATCH v5 7/7] iio: adc: stm32-adc: use generic binding for sample-time Olivier Moysan
2021-10-17 16:11 ` [PATCH v5 0/7] iio: adc: stm32-adc: add internal channels support Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211014131228.4692-1-olivier.moysan@foss.st.com \
--to=olivier.moysan@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrice.gasnier@foss.st.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).