From: Alexandre Torgue <alexandre.torgue@st.com>
To: Fabrice GASNIER <fabrice.gasnier@st.com>,
"mcoquelin.stm32@gmail.com" <mcoquelin.stm32@gmail.com>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/3] ARM: dts: stm32: enable ADC on stm32f429i-eval board
Date: Mon, 9 Jan 2017 15:48:42 +0100 [thread overview]
Message-ID: <56abb501-7920-9b8a-2a82-35d43f40dc12@st.com> (raw)
In-Reply-To: <1480687022-12851-4-git-send-email-fabrice.gasnier@st.com>
Hi Fabrice
On 12/02/2016 02:57 PM, Fabrice GASNIER wrote:
> Enable analog to digital converter on stm32f429i-eval board.
> It has on-board potentimeter wired to ADC3 in8 analog pin and
> uses fixed regulator to provide reference voltage.
>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
> ---
> arch/arm/boot/dts/stm32429i-eval.dts | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts
> index 13c7cd2..6be0a24 100644
> --- a/arch/arm/boot/dts/stm32429i-eval.dts
> +++ b/arch/arm/boot/dts/stm32429i-eval.dts
> @@ -65,6 +65,20 @@
> serial0 = &usart1;
> };
>
> + regulators {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + reg_vref: regulator@0 {
> + compatible = "regulator-fixed";
> + reg = <0>;
> + regulator-name = "vref";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + };
> + };
> +
> leds {
> compatible = "gpio-leds";
> green {
> @@ -123,3 +137,14 @@
> pinctrl-names = "default";
> status = "okay";
> };
> +
> +&adc {
> + pinctrl-names = "default";
> + pinctrl-0 = <&adc3_in8_pin>;
> + vref-supply = <®_vref>;
> + status = "okay";
> + adc3: adc@200 {
> + st,adc-channels = <8>;
> + status = "okay";
> + };
> +};
>
After node reordering:
Applied on stm32-dt-for-v4.11
Thanks
Alex
prev parent reply other threads:[~2017-01-09 14:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-02 13:56 [PATCH 0/3] Enable ADC on STM32 Fabrice Gasnier
2016-12-02 13:57 ` [PATCH 1/3] ARM: configs: stm32: enable ADC driver Fabrice Gasnier
2017-01-09 14:46 ` Alexandre Torgue
2016-12-02 13:57 ` [PATCH 2/3] ARM: dts: stm32: Add ADC support to stm32f429 Fabrice Gasnier
2017-01-09 14:46 ` Alexandre Torgue
2016-12-02 13:57 ` [PATCH 3/3] ARM: dts: stm32: enable ADC on stm32f429i-eval board Fabrice Gasnier
2017-01-09 14:48 ` Alexandre Torgue [this message]
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=56abb501-7920-9b8a-2a82-35d43f40dc12@st.com \
--to=alexandre.torgue@st.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrice.gasnier@st.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).