From: Lee Jones <lee.jones@linaro.org>
To: Gabriel Fernandez <gabriel.fernandez.st@gmail.com>
Cc: linux-kernel@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Olivier Clergeaud <olivier.clergeaud@st.com>,
Gabriel Fernandez <gabriel.fernandez@st.com>,
Gabriel Fernandez <gabriel.fernandez@stericsson.com>
Subject: Re: [PATCH 2/4] ARM: u8540: Add device tree support for lp5521 leds
Date: Wed, 29 May 2013 16:52:49 +0100 [thread overview]
Message-ID: <20130529155249.GF3012@gmail.com> (raw)
In-Reply-To: <1369834407-30762-3-git-send-email-gabriel.fernandez.st@gmail.com>
On Wed, 29 May 2013, Gabriel Fernandez wrote:
> From: Gabriel Fernandez <gabriel.fernandez@st.com>
>
> This patch adds DT probing of lp5521 leds for u8540.
>
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
> ---
> arch/arm/boot/dts/ccu8540-uib-v3.dts | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/arch/arm/boot/dts/ccu8540-uib-v3.dts b/arch/arm/boot/dts/ccu8540-uib-v3.dts
> index 4b4982e..422a292 100644
> --- a/arch/arm/boot/dts/ccu8540-uib-v3.dts
> +++ b/arch/arm/boot/dts/ccu8540-uib-v3.dts
> @@ -14,3 +14,25 @@
> / {
> model = "ST-Ericsson U8540 platform with device tree UIB v3";
> };
> +
> +&i2c2 {
I'm really not a fan of this syntax.
I only see it lending itself to more abstraction and obfuscation.
> +
> + lp5521@32 {
> + compatible = "national,lp5521";
> + reg = <0x32>;
> + label = "lp5521_pri";
> + clock-mode = /bits/ 8 <2>;
> + chan0 {
> + led-cur = /bits/ 8 <0x2f>;
> + max-cur = /bits/ 8 <0x5f>;
> + };
> + chan1 {
> + led-cur = /bits/ 8 <0x2f>;
> + max-cur = /bits/ 8 <0x5f>;
> + };
> + chan2 {
> + led-cur = /bits/ 8 <0x2f>;
> + max-cur = /bits/ 8 <0x5f>;
> + };
> + };
> +};
More odd tabbing above.
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2013-05-29 15:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 13:33 [PATCH 0/4] Introduce ccu8540 uib-v3 Gabriel Fernandez
2013-05-29 13:33 ` [PATCH 1/4] ARM: ux540: Add ccu8540-uib-v3 Device Tree Machine Gabriel Fernandez
2013-05-29 15:50 ` Lee Jones
2013-05-30 13:20 ` Gabriel Fernandez
2013-06-04 8:57 ` Linus Walleij
2013-05-29 13:33 ` [PATCH 2/4] ARM: u8540: Add device tree support for lp5521 leds Gabriel Fernandez
2013-05-29 15:52 ` Lee Jones [this message]
2013-05-29 13:33 ` [PATCH 3/4] ARM: u8540: Add device tree support for bh1780 Gabriel Fernandez
2013-05-29 15:54 ` Lee Jones
2013-05-29 13:33 ` [PATCH 4/4] ARM: u8540: Add DT probing for SFH7741 Proximity Sensor Gabriel Fernandez
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=20130529155249.GF3012@gmail.com \
--to=lee.jones@linaro.org \
--cc=gabriel.fernandez.st@gmail.com \
--cc=gabriel.fernandez@st.com \
--cc=gabriel.fernandez@stericsson.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olivier.clergeaud@st.com \
/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.