linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio:adc:ad7476: Regulator support and binding doc
@ 2021-04-24 17:03 Jonathan Cameron
  2021-04-24 17:03 ` [PATCH v3 1/2] iio:adc:ad7476: Handle the different regulators used by various parts Jonathan Cameron
  2021-04-24 17:03 ` [PATCH v3 2/2] dt-bindings:iio:adc:adi,ad7474: Add missing binding document Jonathan Cameron
  0 siblings, 2 replies; 8+ messages in thread
From: Jonathan Cameron @ 2021-04-24 17:03 UTC (permalink / raw)
  To: linux-iio, Rob Herring; +Cc: Lars-Peter Clausen, devicetree, Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

This driver supports a whole load of devices with a range of different
power supply connections.

Lars-Peter Clausen pointed out v1 did not handle the the ad7091r which
an internal voltage reference, but that can be over-driven on the vref_in /
vref_out pin.  The v2 handles that device properly.  I also realized that
I'd the binding was more restrictive for devices with internal references
than it needed to be (required vcc-supply) so I've relaxed that in
the updated bindings.  Also reorganized the big allOf block in the
binding doc to put all the constraints on reference voltage first.

v3 incorporates Lars' suggestion to set the regulator pointer to null
as a way to indicate that we should definitely use the internal reference.

Jonathan Cameron (2):
  iio:adc:ad7476: Handle the different regulators used by various parts.
  dt-bindings:iio:adc:adi,ad7474: Add missing binding document

 .../bindings/iio/adc/adi,ad7476.yaml          | 174 ++++++++++++++++++
 drivers/iio/adc/ad7476.c                      | 116 ++++++++++--
 2 files changed, 275 insertions(+), 15 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml

-- 
2.31.1


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

end of thread, other threads:[~2021-04-25 16:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-24 17:03 [PATCH v3 0/2] iio:adc:ad7476: Regulator support and binding doc Jonathan Cameron
2021-04-24 17:03 ` [PATCH v3 1/2] iio:adc:ad7476: Handle the different regulators used by various parts Jonathan Cameron
2021-04-24 18:20   ` Lars-Peter Clausen
2021-04-25 15:18     ` Jonathan Cameron
2021-04-25 16:02       ` Jonathan Cameron
2021-04-25 16:07         ` Lars-Peter Clausen
2021-04-24 17:03 ` [PATCH v3 2/2] dt-bindings:iio:adc:adi,ad7474: Add missing binding document Jonathan Cameron
2021-04-24 17:09   ` Jonathan Cameron

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).