From: Jonathan Cameron <jic23@kernel.org>
To: Fabrice Gasnier <fabrice.gasnier@st.com>
Cc: <robh+dt@kernel.org>, <linux@armlinux.org.uk>,
<mark.rutland@arm.com>, <mcoquelin.stm32@gmail.com>,
<alexandre.torgue@st.com>, <lars@metafoo.de>, <knaack.h@gmx.de>,
<pmeerw@pmeerw.net>, <linux-iio@vger.kernel.org>,
<devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <benjamin.gaignard@linaro.org>,
<benjamin.gaignard@st.com>
Subject: Re: [PATCH 1/3] dt-bindings: iio: adc: stm32: add support for diff channels
Date: Sat, 21 Oct 2017 18:54:01 +0100 [thread overview]
Message-ID: <20171021185401.529f2eb2@archlinux> (raw)
In-Reply-To: <1508246145-19417-2-git-send-email-fabrice.gasnier@st.com>
On Tue, 17 Oct 2017 15:15:43 +0200
Fabrice Gasnier <fabrice.gasnier@st.com> wrote:
> STM32H7 ADC channels may be configured either as single-ended or
> differential.
> Add 'st,adc-diff-channels' property to support differential channels.
> Differential channels are defined as a pair of positive and negative
> inputs: vinp & vinn.
>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Hmm. Fair enough. Sometimes we support both types of channels
and leave it to userspace, but in many cases that makes little sense
- particularly if like I think is going on here, we aren't combining channels
that can be separately read but rather the negative pin is simply unused
when we are in single channel mode... (did I understand that right?)
Jonathan
> ---
> Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> index 48bfcaa3..c3c8de1 100644
> --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> @@ -62,6 +62,12 @@ Required properties:
> - st,adc-channels: List of single-ended channels muxed for this ADC.
> It can have up to 16 channels on stm32f4 or 20 channels on stm32h7, numbered
> from 0 to 15 or 19 (resp. for in0..in15 or in0..in19).
> +- st,adc-diff-channels: List of differential channels muxed for this ADC.
> + Depending on part used, some channels can be configured as differential
> + instead of single-ended (e.g. stm32h7). List here positive and negative
> + inputs pairs as <vinp vinn>, <vinp vinn>,... vinp and vinn are numbered
> + from 0 to 19 on stm32h7)
> + Note: At least one of "st,adc-channels" or "st,adc-diff-channels" is required.
> - #io-channel-cells = <1>: See the IIO bindings section "IIO consumers" in
> Documentation/devicetree/bindings/iio/iio-bindings.txt
>
WARNING: multiple messages have this Message-ID (diff)
From: jic23@kernel.org (Jonathan Cameron)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] dt-bindings: iio: adc: stm32: add support for diff channels
Date: Sat, 21 Oct 2017 18:54:01 +0100 [thread overview]
Message-ID: <20171021185401.529f2eb2@archlinux> (raw)
In-Reply-To: <1508246145-19417-2-git-send-email-fabrice.gasnier@st.com>
On Tue, 17 Oct 2017 15:15:43 +0200
Fabrice Gasnier <fabrice.gasnier@st.com> wrote:
> STM32H7 ADC channels may be configured either as single-ended or
> differential.
> Add 'st,adc-diff-channels' property to support differential channels.
> Differential channels are defined as a pair of positive and negative
> inputs: vinp & vinn.
>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Hmm. Fair enough. Sometimes we support both types of channels
and leave it to userspace, but in many cases that makes little sense
- particularly if like I think is going on here, we aren't combining channels
that can be separately read but rather the negative pin is simply unused
when we are in single channel mode... (did I understand that right?)
Jonathan
> ---
> Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> index 48bfcaa3..c3c8de1 100644
> --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> @@ -62,6 +62,12 @@ Required properties:
> - st,adc-channels: List of single-ended channels muxed for this ADC.
> It can have up to 16 channels on stm32f4 or 20 channels on stm32h7, numbered
> from 0 to 15 or 19 (resp. for in0..in15 or in0..in19).
> +- st,adc-diff-channels: List of differential channels muxed for this ADC.
> + Depending on part used, some channels can be configured as differential
> + instead of single-ended (e.g. stm32h7). List here positive and negative
> + inputs pairs as <vinp vinn>, <vinp vinn>,... vinp and vinn are numbered
> + from 0 to 19 on stm32h7)
> + Note: At least one of "st,adc-channels" or "st,adc-diff-channels" is required.
> - #io-channel-cells = <1>: See the IIO bindings section "IIO consumers" in
> Documentation/devicetree/bindings/iio/iio-bindings.txt
>
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <jic23@kernel.org>
To: Fabrice Gasnier <fabrice.gasnier@st.com>
Cc: robh+dt@kernel.org, linux@armlinux.org.uk, mark.rutland@arm.com,
mcoquelin.stm32@gmail.com, alexandre.torgue@st.com,
lars@metafoo.de, knaack.h@gmx.de, pmeerw@pmeerw.net,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, benjamin.gaignard@linaro.org,
benjamin.gaignard@st.com
Subject: Re: [PATCH 1/3] dt-bindings: iio: adc: stm32: add support for diff channels
Date: Sat, 21 Oct 2017 18:54:01 +0100 [thread overview]
Message-ID: <20171021185401.529f2eb2@archlinux> (raw)
In-Reply-To: <1508246145-19417-2-git-send-email-fabrice.gasnier@st.com>
On Tue, 17 Oct 2017 15:15:43 +0200
Fabrice Gasnier <fabrice.gasnier@st.com> wrote:
> STM32H7 ADC channels may be configured either as single-ended or
> differential.
> Add 'st,adc-diff-channels' property to support differential channels.
> Differential channels are defined as a pair of positive and negative
> inputs: vinp & vinn.
>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Hmm. Fair enough. Sometimes we support both types of channels
and leave it to userspace, but in many cases that makes little sense
- particularly if like I think is going on here, we aren't combining channels
that can be separately read but rather the negative pin is simply unused
when we are in single channel mode... (did I understand that right?)
Jonathan
> ---
> Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> index 48bfcaa3..c3c8de1 100644
> --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> @@ -62,6 +62,12 @@ Required properties:
> - st,adc-channels: List of single-ended channels muxed for this ADC.
> It can have up to 16 channels on stm32f4 or 20 channels on stm32h7, numbered
> from 0 to 15 or 19 (resp. for in0..in15 or in0..in19).
> +- st,adc-diff-channels: List of differential channels muxed for this ADC.
> + Depending on part used, some channels can be configured as differential
> + instead of single-ended (e.g. stm32h7). List here positive and negative
> + inputs pairs as <vinp vinn>, <vinp vinn>,... vinp and vinn are numbered
> + from 0 to 19 on stm32h7)
> + Note: At least one of "st,adc-channels" or "st,adc-diff-channels" is required.
> - #io-channel-cells = <1>: See the IIO bindings section "IIO consumers" in
> Documentation/devicetree/bindings/iio/iio-bindings.txt
>
next prev parent reply other threads:[~2017-10-21 17:54 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-17 13:15 [PATCH 0/3] iio: adc: stm32: Add support for differential channels Fabrice Gasnier
2017-10-17 13:15 ` Fabrice Gasnier
2017-10-17 13:15 ` Fabrice Gasnier
2017-10-17 13:15 ` [PATCH 1/3] dt-bindings: iio: adc: stm32: add support for diff channels Fabrice Gasnier
2017-10-17 13:15 ` Fabrice Gasnier
2017-10-17 13:15 ` Fabrice Gasnier
2017-10-21 17:54 ` Jonathan Cameron [this message]
2017-10-21 17:54 ` Jonathan Cameron
2017-10-21 17:54 ` Jonathan Cameron
2017-10-21 17:55 ` Jonathan Cameron
2017-10-21 17:55 ` Jonathan Cameron
2017-10-21 17:55 ` Jonathan Cameron
2017-10-21 19:23 ` Jonathan Cameron
2017-10-21 19:23 ` Jonathan Cameron
2017-10-21 19:23 ` Jonathan Cameron
2017-10-23 8:06 ` Fabrice Gasnier
2017-10-23 8:06 ` Fabrice Gasnier
2017-10-23 8:06 ` Fabrice Gasnier
2017-10-23 13:09 ` Jonathan Cameron
2017-10-23 13:09 ` Jonathan Cameron
2017-10-23 13:09 ` Jonathan Cameron
2017-10-24 16:41 ` Rob Herring
2017-10-24 16:41 ` Rob Herring
2017-10-24 16:41 ` Rob Herring
2017-10-24 18:42 ` Jonathan Cameron
2017-10-24 18:42 ` Jonathan Cameron
2017-10-24 18:42 ` Jonathan Cameron
2017-10-25 8:05 ` Fabrice Gasnier
2017-10-25 8:05 ` Fabrice Gasnier
2017-10-25 8:05 ` Fabrice Gasnier
2017-10-17 13:15 ` [PATCH 2/3] iio: adc: stm32: remove const channel names definition Fabrice Gasnier
2017-10-17 13:15 ` Fabrice Gasnier
2017-10-17 13:15 ` Fabrice Gasnier
2017-10-21 17:59 ` Jonathan Cameron
2017-10-21 17:59 ` Jonathan Cameron
2017-10-21 17:59 ` Jonathan Cameron
2017-10-17 13:15 ` [PATCH 3/3] iio: adc: stm32: add support for differential channels Fabrice Gasnier
2017-10-17 13:15 ` Fabrice Gasnier
2017-10-17 13:15 ` Fabrice Gasnier
2017-10-21 19:25 ` Jonathan Cameron
2017-10-21 19:25 ` Jonathan Cameron
2017-10-21 19:25 ` Jonathan Cameron
2017-10-23 8:09 ` Fabrice Gasnier
2017-10-23 8:09 ` Fabrice Gasnier
2017-10-23 8:09 ` Fabrice Gasnier
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=20171021185401.529f2eb2@archlinux \
--to=jic23@kernel.org \
--cc=alexandre.torgue@st.com \
--cc=benjamin.gaignard@linaro.org \
--cc=benjamin.gaignard@st.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrice.gasnier@st.com \
--cc=knaack.h@gmx.de \
--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@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=pmeerw@pmeerw.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.