mbox series

[00/10] dt-bindings: iio: conversion of consumer drivers

Message ID 20201031181242.742301-1-jic23@kernel.org (mailing list archive)
Headers show
Series dt-bindings: iio: conversion of consumer drivers | expand

Message

Jonathan Cameron Oct. 31, 2020, 6:12 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Firstly drop the old text file as the consumer binding (and the other
parts of that file) are under review for inclusion in the dt-schema external
repo.

This only converts consumers that happen to also be IIO drivers.
Others may get done as part of SoC binding conversions or I may do a lot
of them at somepoint.

A few of the examples in existing text files used providers that were
documented in trivial-bindings.yaml which does not allow for
#io-channel-cells. I have pulled those out to their own files as part
of this patch set.

The iio-mux binding is not done as that has some dependencies and will
form part of some future patch set.

There is no explicit dependency in here on any other sets, but some
noise will occur in trivial-bindings.yaml if applied in a different
order to I happen to have them sets locally.

Jonathan Cameron (10):
  dt-bindings:iio:iio-binding.txt Drop file as content now in dt-schema
  dt-bindings:iio:dac:dpot-dac: yaml conversion.
  dt-bindings:iio:potentiometer: give microchip,mcp4531 its own binding
  dt-bindings:iio:adc:envelope-detector: txt to yaml conversion.
  dt-bindings:iio:afe:current-sense-amplifier: txt to yaml conversion.
  dt-bindings:iio:afe:current-sense-shunt: txt to yaml conversion. 
  dt-bindings:iio:adc:maxim,max1027: Pull out to separate binding doc.
  dt-bindings:iio:afe:voltage-divider: txt to yaml conversion
  dt-bindings:iio:light:capella,cm3605: txt to yaml conversion.
  dt-bindings:iio:potentiostat:ti,lmp91000: txt to yaml conversion.

 .../bindings/iio/adc/envelope-detector.txt    |  54 -------
 .../bindings/iio/adc/envelope-detector.yaml   |  87 +++++++++++
 .../bindings/iio/adc/maxim,max1027.yaml       |  64 ++++++++
 .../iio/afe/current-sense-amplifier.txt       |  26 ----
 .../iio/afe/current-sense-amplifier.yaml      |  55 +++++++
 .../bindings/iio/afe/current-sense-shunt.txt  |  41 -----
 .../bindings/iio/afe/current-sense-shunt.yaml |  65 ++++++++
 .../bindings/iio/afe/voltage-divider.txt      |  53 -------
 .../bindings/iio/afe/voltage-divider.yaml     |  88 +++++++++++
 .../devicetree/bindings/iio/dac/dpot-dac.txt  |  41 -----
 .../devicetree/bindings/iio/dac/dpot-dac.yaml |  64 ++++++++
 .../devicetree/bindings/iio/iio-bindings.txt  | 102 -------------
 .../bindings/iio/light/capella,cm3605.yaml    |  78 ++++++++++
 .../devicetree/bindings/iio/light/cm3605.txt  |  41 -----
 .../iio/potentiometer/microchip,mcp4531.yaml  | 116 +++++++++++++++
 .../bindings/iio/potentiostat/lmp91000.txt    |  33 -----
 .../iio/potentiostat/ti,lmp91000.yaml         |  68 +++++++++
 .../devicetree/bindings/trivial-devices.yaml  | 140 ------------------
 18 files changed, 685 insertions(+), 531 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/iio/adc/envelope-detector.txt
 create mode 100644 Documentation/devicetree/bindings/iio/adc/envelope-detector.yaml
 create mode 100644 Documentation/devicetree/bindings/iio/adc/maxim,max1027.yaml
 delete mode 100644 Documentation/devicetree/bindings/iio/afe/current-sense-amplifier.txt
 create mode 100644 Documentation/devicetree/bindings/iio/afe/current-sense-amplifier.yaml
 delete mode 100644 Documentation/devicetree/bindings/iio/afe/current-sense-shunt.txt
 create mode 100644 Documentation/devicetree/bindings/iio/afe/current-sense-shunt.yaml
 delete mode 100644 Documentation/devicetree/bindings/iio/afe/voltage-divider.txt
 create mode 100644 Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml
 delete mode 100644 Documentation/devicetree/bindings/iio/dac/dpot-dac.txt
 create mode 100644 Documentation/devicetree/bindings/iio/dac/dpot-dac.yaml
 delete mode 100644 Documentation/devicetree/bindings/iio/iio-bindings.txt
 create mode 100644 Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml
 delete mode 100644 Documentation/devicetree/bindings/iio/light/cm3605.txt
 create mode 100644 Documentation/devicetree/bindings/iio/potentiometer/microchip,mcp4531.yaml
 delete mode 100644 Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt
 create mode 100644 Documentation/devicetree/bindings/iio/potentiostat/ti,lmp91000.yaml

Comments

Rob Herring (Arm) Nov. 3, 2020, 4:07 p.m. UTC | #1
On Sat, Oct 31, 2020 at 06:12:32PM +0000, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> Firstly drop the old text file as the consumer binding (and the other
> parts of that file) are under review for inclusion in the dt-schema external
> repo.
> 
> This only converts consumers that happen to also be IIO drivers.
> Others may get done as part of SoC binding conversions or I may do a lot
> of them at somepoint.
> 
> A few of the examples in existing text files used providers that were
> documented in trivial-bindings.yaml which does not allow for
> #io-channel-cells. I have pulled those out to their own files as part
> of this patch set.
> 
> The iio-mux binding is not done as that has some dependencies and will
> form part of some future patch set.
> 
> There is no explicit dependency in here on any other sets, but some
> noise will occur in trivial-bindings.yaml if applied in a different
> order to I happen to have them sets locally.
> 
> Jonathan Cameron (10):
>   dt-bindings:iio:iio-binding.txt Drop file as content now in dt-schema
>   dt-bindings:iio:dac:dpot-dac: yaml conversion.
>   dt-bindings:iio:potentiometer: give microchip,mcp4531 its own binding
>   dt-bindings:iio:adc:envelope-detector: txt to yaml conversion.
>   dt-bindings:iio:afe:current-sense-amplifier: txt to yaml conversion.
>   dt-bindings:iio:afe:current-sense-shunt: txt to yaml conversion. 
>   dt-bindings:iio:adc:maxim,max1027: Pull out to separate binding doc.
>   dt-bindings:iio:afe:voltage-divider: txt to yaml conversion
>   dt-bindings:iio:light:capella,cm3605: txt to yaml conversion.
>   dt-bindings:iio:potentiostat:ti,lmp91000: txt to yaml conversion.

With the type references for properties with standard units dropped,

Reviewed-by: Rob Herring <robh@kernel.org>
Jonathan Cameron Nov. 28, 2020, 5:57 p.m. UTC | #2
On Tue, 3 Nov 2020 10:07:56 -0600
Rob Herring <robh@kernel.org> wrote:

> On Sat, Oct 31, 2020 at 06:12:32PM +0000, Jonathan Cameron wrote:
> > From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> > 
> > Firstly drop the old text file as the consumer binding (and the other
> > parts of that file) are under review for inclusion in the dt-schema external
> > repo.
> > 
> > This only converts consumers that happen to also be IIO drivers.
> > Others may get done as part of SoC binding conversions or I may do a lot
> > of them at somepoint.
> > 
> > A few of the examples in existing text files used providers that were
> > documented in trivial-bindings.yaml which does not allow for
> > #io-channel-cells. I have pulled those out to their own files as part
> > of this patch set.
> > 
> > The iio-mux binding is not done as that has some dependencies and will
> > form part of some future patch set.
> > 
> > There is no explicit dependency in here on any other sets, but some
> > noise will occur in trivial-bindings.yaml if applied in a different
> > order to I happen to have them sets locally.
> > 
> > Jonathan Cameron (10):
> >   dt-bindings:iio:iio-binding.txt Drop file as content now in dt-schema
> >   dt-bindings:iio:dac:dpot-dac: yaml conversion.
> >   dt-bindings:iio:potentiometer: give microchip,mcp4531 its own binding
> >   dt-bindings:iio:adc:envelope-detector: txt to yaml conversion.
> >   dt-bindings:iio:afe:current-sense-amplifier: txt to yaml conversion.
> >   dt-bindings:iio:afe:current-sense-shunt: txt to yaml conversion. 
> >   dt-bindings:iio:adc:maxim,max1027: Pull out to separate binding doc.
> >   dt-bindings:iio:afe:voltage-divider: txt to yaml conversion
> >   dt-bindings:iio:light:capella,cm3605: txt to yaml conversion.
> >   dt-bindings:iio:potentiostat:ti,lmp91000: txt to yaml conversion.  
> 
> With the type references for properties with standard units dropped,

Done.

> 
> Reviewed-by: Rob Herring <robh@kernel.org>

Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to do their magic.
Thanks,

Jonathan