From: afaerber@suse.de (Andreas Färber)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/6] ARM: dts: sun9i: Add GPIO LEDs for A80 Optimus board
Date: Tue, 28 Oct 2014 22:19:34 +0100 [thread overview]
Message-ID: <54500866.7060909@suse.de> (raw)
In-Reply-To: <20141028201605.GA9255@lukather>
Hi,
Am 28.10.2014 um 21:16 schrieb Maxime Ripard:
> Hi Chen-Yu,
>
> On Tue, Oct 28, 2014 at 05:50:41PM +0800, Chen-Yu Tsai wrote:
>> The A80 Optimus board has 3 usable LEDs that are controlled via GPIO.
>>
>> This patch adds support for 2 of them which are driver by GPIOs in the
>> main pin controller. The remaining one uses GPIO from the R_PIO
>> controller, which we don't support yet.
>>
>> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
>> ---
>> arch/arm/boot/dts/sun9i-a80-optimus.dts | 25 +++++++++++++++++++++++++
>> 1 file changed, 25 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts
>> index 25fe775..91eda76 100644
>> --- a/arch/arm/boot/dts/sun9i-a80-optimus.dts
>> +++ b/arch/arm/boot/dts/sun9i-a80-optimus.dts
>> @@ -64,6 +64,13 @@
>> /* Enable internal pull-up */
>> allwinner,pull = <1>;
>> };
>> +
>> + led_pins_optimus: led_pins at 0 {
Here too, led-pins at 0 would be more in line with DT conventions.
>> + allwinner,pins = "PH0", "PH1";
>> + allwinner,function = "gpio_out";
>> + allwinner,drive = <0>;
>> + allwinner,pull = <0>;
>> + };
>> };
>>
>> uart0: serial at 07000000 {
>> @@ -78,4 +85,22 @@
>> status = "okay";
>> };
>> };
>> +
>> + leds {
>> + compatible = "gpio-leds";
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&led_pins_optimus>;
>> +
>> + led2 {
>> + label = "a80_optimus:led2:usr";
>
> We're usually using a dash instead of an underscore as a separator.
I wonder, why a80_? The board is labeled "Allwinner Tech Optimus Board",
and the Cubietruck LEDs are not prefixed with a20_ either.
>> + gpios = <&pio 7 0 0>;
>> + };
>> +
>> + /* led3 is on PM15, in R_PIO */
>
> You were saying that there is three LEDs, why start the numbering at
> 2?
They are labeled "LED2", "LED4", "LED3" right-to-left.
Additionally there's a "PWR" LED, maybe that counts as number 1...
>> +
>> + led4 {
>> + label = "a80_optimus:led4:usr";
>> + gpios = <&pio 7 1 0>;
>> + };
>> + };
>> };
>
> The rest of your patchset is fine for me, we just need to get the
> pinctrl driver merged first :)
Cheers,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141028/b4a122d3/attachment.sig>
next prev parent reply other threads:[~2014-10-28 21:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 9:50 [PATCH 0/6] ARM: sun9i: Enable extra uarts, leds and i2c controllers Chen-Yu Tsai
2014-10-28 9:50 ` [PATCH 1/6] ARM: dts: sun9i: Add i2c controller nodes to a80 dtsi Chen-Yu Tsai
2014-10-28 9:50 ` [PATCH 2/6] ARM: dts: sun9i: Add i2c3 pinmux setting for A80 SoC Chen-Yu Tsai
2014-10-28 9:50 ` [PATCH 3/6] ARM: dts: sun9i: Enable i2c3 on A80 Optimus board Chen-Yu Tsai
2014-10-28 9:50 ` [PATCH 4/6] ARM: dts: sun9i: Add GPIO LEDs for " Chen-Yu Tsai
2014-10-28 11:04 ` [linux-sunxi] " Koen Kooi
2014-10-28 20:27 ` Maxime Ripard
2014-10-29 1:54 ` Chen-Yu Tsai
2014-10-28 20:16 ` Maxime Ripard
2014-10-28 21:19 ` Andreas Färber [this message]
2014-10-29 2:02 ` Chen-Yu Tsai
2014-10-30 15:53 ` Maxime Ripard
2014-10-29 1:50 ` Chen-Yu Tsai
2014-10-28 9:50 ` [PATCH 5/6] ARM: dts: sun9i: Add uart4 pinmux setting for A80 SoC Chen-Yu Tsai
2014-10-28 9:50 ` [PATCH 6/6] ARM: dts: sun9i: Enable uart4 for A80 Optimus board Chen-Yu Tsai
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=54500866.7060909@suse.de \
--to=afaerber@suse.de \
--cc=linux-arm-kernel@lists.infradead.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).