From: Jonathan Cameron <jic23@kernel.org>
To: Lukas Wunner <lukas@wunner.de>
Cc: Hartmut Knaack <knaack.h@gmx.de>,
Lars-Peter Clausen <lars@metafoo.de>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
Mathias Duckeck <m.duckeck@kunbus.de>,
Phil Elwell <phil@raspberrypi.org>,
Oskar Andero <oskar.andero@gmail.com>,
Andrea Galbusera <gizero@gmail.com>,
Akinobu Mita <akinobu.mita@gmail.com>,
Manfred Schlaegl <manfred.schlaegl@gmx.at>,
Michael Welling <mwelling@ieee.org>,
Soeren Andersen <san@rosetechnology.dk>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>
Subject: Re: [PATCH v2 4/6] dt-bindings: iio: adc: mcp320x: Update for mcp3550/1/3
Date: Sun, 10 Sep 2017 17:16:13 +0100 [thread overview]
Message-ID: <20170910171613.59df4c36@archlinux> (raw)
In-Reply-To: <f5899af5ef548c618ac14950301f6bc8eff6e9ba.1504807204.git.lukas@wunner.de>
On Sat, 9 Sep 2017 20:32:41 +0200
Lukas Wunner <lukas@wunner.de> wrote:
> All chips supported by this driver clock data out on the falling edge
> and latch data in on the rising edge, hence SPI mode (0,0) or (1,1)
> must be used.
>
> Furthermore, none of the chips has an internal reference voltage
> regulator, so an external supply is always required and needs to be
> specified in the device tree lest the IIO "scale" in sysfs cannot be
> calculated.
>
> Document these requirements in the device tree binding, add compatible
> strings for the newly supported mcp3550/1/3 and explain that SPI mode
> (0,0) should be preferred for these chips.
>
> Cc: Mathias Duckeck <m.duckeck@kunbus.de>
> Signed-off-by: Lukas Wunner <lukas@wunner.de>
I'm happy with this, but just want to give Rob / Mark more time to take
a look at it.
Give me a poke if I seem to have forgotten it in a week or so.
Thanks,
Jonathan
> ---
> Changes since v1:
> - Move support for continuous conversion mode to separate patch
> which is marked informational / not for merging. (Rob, Jonathan)
>
> Documentation/devicetree/bindings/iio/adc/mcp320x.txt | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/mcp320x.txt b/Documentation/devicetree/bindings/iio/adc/mcp320x.txt
> index bcd3ac8e6e0c..7d64753df949 100644
> --- a/Documentation/devicetree/bindings/iio/adc/mcp320x.txt
> +++ b/Documentation/devicetree/bindings/iio/adc/mcp320x.txt
> @@ -29,15 +29,29 @@ Required properties:
> "microchip,mcp3204"
> "microchip,mcp3208"
> "microchip,mcp3301"
> + "microchip,mcp3550-50"
> + "microchip,mcp3550-60"
> + "microchip,mcp3551"
> + "microchip,mcp3553"
>
> NOTE: The use of the compatibles with no vendor prefix
> is deprecated and only listed because old DT use them.
>
> + - spi-cpha, spi-cpol (boolean):
> + Either SPI mode (0,0) or (1,1) must be used, so specify
> + none or both of spi-cpha, spi-cpol. The MCP3550/1/3
> + is more efficient in mode (1,1) as only 3 instead of
> + 4 bytes need to be read from the ADC, but not all SPI
> + masters support it.
> +
> + - vref-supply: Phandle to the external reference voltage supply.
> +
> Examples:
> spi_controller {
> mcp3x0x@0 {
> compatible = "mcp3002";
> reg = <0>;
> spi-max-frequency = <1000000>;
> + vref-supply = <&vref_reg>;
> };
> };
next prev parent reply other threads:[~2017-09-10 16:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-09 18:32 [PATCH v2 0/6] IIO driver for MCP3550/1/3 Lukas Wunner
2017-09-09 18:32 ` [PATCH v2 6/6 INFORMATIONAL/RFT] iio: adc: mcp320x: Support continuous conversion mode Lukas Wunner
2017-09-09 18:32 ` [PATCH v2 5/6] iio: adc: mcp320x: Add support for mcp3550/1/3 Lukas Wunner
2017-09-10 16:15 ` Jonathan Cameron
2017-10-04 19:50 ` Lukas Wunner
2017-10-04 20:53 ` Jonathan Cameron
2017-10-08 10:30 ` Jonathan Cameron
2017-10-09 7:54 ` Lukas Wunner
2017-10-09 19:55 ` Jonathan Cameron
2017-09-09 18:32 ` [PATCH v2 2/6] iio: adc: mcp320x: Drop unnecessary of_device_id attributes Lukas Wunner
2017-09-10 16:10 ` Jonathan Cameron
2017-09-09 18:32 ` [PATCH v2 1/6] iio: adc: mcp320x: Speed up readout of single-channel ADCs Lukas Wunner
2017-09-10 16:08 ` Jonathan Cameron
2017-09-09 18:32 ` [PATCH v2 3/6] iio: adc: mcp320x: Document struct mcp320x Lukas Wunner
2017-09-10 16:12 ` Jonathan Cameron
2017-09-09 18:32 ` [PATCH v2 4/6] dt-bindings: iio: adc: mcp320x: Update for mcp3550/1/3 Lukas Wunner
2017-09-10 16:16 ` Jonathan Cameron [this message]
2017-09-18 20:27 ` Rob Herring
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=20170910171613.59df4c36@archlinux \
--to=jic23@kernel.org \
--cc=akinobu.mita@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=gizero@gmail.com \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=m.duckeck@kunbus.de \
--cc=manfred.schlaegl@gmx.at \
--cc=mark.rutland@arm.com \
--cc=mwelling@ieee.org \
--cc=oskar.andero@gmail.com \
--cc=phil@raspberrypi.org \
--cc=pmeerw@pmeerw.net \
--cc=robh+dt@kernel.org \
--cc=san@rosetechnology.dk \
/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