From: Fabrice Gasnier <fabrice.gasnier@st.com>
To: Rob Herring <robh@kernel.org>
Cc: <jic23@kernel.org>, <linux@armlinux.org.uk>,
<linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<mark.rutland@arm.com>, <benjamin.gaignard@linaro.org>,
<lars@metafoo.de>, <alexandre.torgue@st.com>,
<linux-iio@vger.kernel.org>, <pmeerw@pmeerw.net>,
<mcoquelin.stm32@gmail.com>, <knaack.h@gmx.de>,
<benjamin.gaignard@st.com>
Subject: Re: [PATCH 1/5] dt-bindings: iio: stm32-adc: add support for STM32H7
Date: Tue, 23 May 2017 17:54:30 +0200 [thread overview]
Message-ID: <1e614174-dde5-f91f-f9bf-e265708290dd@st.com> (raw)
In-Reply-To: <20170523150730.735kyrb5kuheqtyi@rob-hp-laptop>
On 05/23/2017 05:07 PM, Rob Herring wrote:
> On Fri, May 19, 2017 at 02:45:24PM +0200, Fabrice Gasnier wrote:
>> Document support for STM32H7 Analog to Digital Converter.
>> Main difference is regarding compatible, clock definitions and new
>> features like differential channels support:
>> STM32H7 ADC block has two clock inputs, common clock for all ADCs.
>> One 'bus' clock for registers access, and one optional 'adc' clock
>> for analog circuitry (bus clock may be used for conversions).
>>
>> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
>> ---
>> .../devicetree/bindings/iio/adc/st,stm32-adc.txt | 20 ++++++++++++++------
>> 1 file changed, 14 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
>> index e35f9f1..9519d2e 100644
>> --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
>> +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
>> @@ -21,11 +21,17 @@ own configurable sequence and trigger:
>> Contents of a stm32 adc root node:
>> -----------------------------------
>> Required properties:
>> -- compatible: Should be "st,stm32f4-adc-core".
>> +- compatible: Should be one of "st,stm32f4-adc-core" or "st,stm32h7-adc-core".
> Reformat this to 1 per line.
Hi Rob,
I'll fix it in v2
>
>> - reg: Offset and length of the ADC block register set.
>> - interrupts: Must contain the interrupt for ADC block.
>> -- clocks: Clock for the analog circuitry (common to all ADCs).
>> -- clock-names: Must be "adc".
>> +- clocks: Core can use up to two clocks, depending on part used:
>> + - "adc" clock: for the analog circuitry, common to all ADCs.
>> + It's required on stm32f4.
>> + It's optional on stm32h7, bus clock will be used by default if not set.
> The clocks listed should be all connections present, not policy as to
> what clock you want to use for conversions.
Shall I only mention it's optional on stm32h7 ?
(e.g. remove "bus clock will...")
>
>> + - "bus" clock: for registers access, common to all ADCs.
>> + It's unused on stm32f4.
> s/unused/not present/
I'll fix it in v2
>
>> + It's required on stm32h7.
>> +- clock-names: Must be "adc" and/or "bus" depending on part used.
>> - interrupt-controller: Identifies the controller node as interrupt-parent
>> - vref-supply: Phandle to the vref input analog reference voltage.
>> - #interrupt-cells = <1>;
>> @@ -42,14 +48,16 @@ An ADC block node should contain at least one subnode, representing an
>> ADC instance available on the machine.
>>
>> Required properties:
>> -- compatible: Should be "st,stm32f4-adc".
>> +- compatible: Should be one of "st,stm32f4-adc" or "st,stm32h7-adc".
> One per line.
I'll fix it in v2
>
>> - reg: Offset of ADC instance in ADC block (e.g. may be 0x0, 0x100, 0x200).
>> -- clocks: Input clock private to this ADC instance.
>> +- clocks: Input clock private to this ADC instance. It's required only on
>> + stm32f4, that has per instance clock input for registers access.
> Does the h7 simply have the same parent connected to all ADC instances
> or really doesn't have a per instance clock? For the former case, you
> should still have a clock, but just all be the same parent.
It's the second case. There's no per instance clock.
Do you want me to rephrase a little ?
e.g. like it's required on stm32f4 and not present on stm32h7 ?
Please advise,
Thanks for reviewing,
Fabrice
>
>> - interrupt-parent: Phandle to the parent interrupt controller.
>> - interrupts: IRQ Line for the ADC (e.g. may be 0 for adc@0, 1 for adc@100 or
>> 2 for adc@200).
>> - st,adc-channels: List of single-ended channels muxed for this ADC.
>> - It can have up to 16 channels, numbered from 0 to 15 (resp. for in0..in15).
>> + 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).
>> - #io-channel-cells = <1>: See the IIO bindings section "IIO consumers" in
>> Documentation/devicetree/bindings/iio/iio-bindings.txt
>>
>> --
>> 1.9.1
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2017-05-23 15:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-19 12:45 [PATCH 0/5] iio: add support for STM32H7 ADC Fabrice Gasnier
2017-05-19 12:45 ` [PATCH 1/5] dt-bindings: iio: stm32-adc: add support for STM32H7 Fabrice Gasnier
2017-05-23 15:07 ` Rob Herring
2017-05-23 15:54 ` Fabrice Gasnier [this message]
2017-05-19 12:45 ` [PATCH 2/5] iio: adc: stm32: make core adc clock optional by default Fabrice Gasnier
2017-05-19 12:45 ` [PATCH 3/5] iio: adc: stm32: introduce compatible data cfg Fabrice Gasnier
2017-05-19 12:45 ` [PATCH 4/5] iio: adc: stm32: make per instance bus clock optional Fabrice Gasnier
2017-05-19 12:45 ` [PATCH 5/5] iio: adc: stm32: add support for STM32H7 Fabrice Gasnier
2017-05-20 17:42 ` Jonathan Cameron
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=1e614174-dde5-f91f-f9bf-e265708290dd@st.com \
--to=fabrice.gasnier@st.com \
--cc=alexandre.torgue@st.com \
--cc=benjamin.gaignard@linaro.org \
--cc=benjamin.gaignard@st.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--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@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®