Skip to content

iio:adc:ad7476: Regulator support and binding doc

Jonathan Cameron linux-devicetree linux-iio 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 5 repliesSuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches4 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio:adc:ad7476: Handle the different regulators used by various parts.drivers/iio/adc/ad7476.c+103 -151 reply
2/2dt-bindings:iio:adc:adi,ad7476: Add missing binding documentDocumentation/devicetree/bindings/iio/adc/adi,ad7476.yaml+174 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRob HerringLars-Peter Clausen
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] iio:adc:ad7476: Regulator support and binding doc

From: Jonathan Cameron <[email protected]>

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.

v4 fixes case of errors on the devm_regulator_get_optional() that are about something different than -ENODEV which signifies the regulator isn't specified.

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

 .../bindings/iio/adc/adi,ad7476.yaml          | 174 ++++++++++++++++++
 drivers/iio/adc/ad7476.c                      | 118 ++++++++++--
 2 files changed, 277 insertions(+), 15 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml
Signature · 1 line
2.31.1