[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdYjq9XqKM4imYsaa_HBopS7uFnbb6gf=hRZHGC4baafAg@mail.gmail.com>
Date: Mon, 26 Oct 2015 14:41:38 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Maxime Coquelin <mcoquelin.stm32@...il.com>
Cc: Mark Rutland <mark.rutland@....com>,
Rob Herring <robh+dt@...nel.org>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
Arnd Bergmann <arnd@...db.de>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Andreas Färber <afaerber@...e.de>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
Daniel Thompson <daniel.thompson@...aro.org>,
Bruno Herrera <bruherrera@...il.com>
Subject: Re: [PATCH v2 8/9] ARM: dts: Add leds support to STM32F429 Discovery board
On Sat, Oct 17, 2015 at 7:23 PM, Maxime Coquelin
<mcoquelin.stm32@...il.com> wrote:
> Signed-off-by: Maxime Coquelin <mcoquelin.stm32@...il.com>
(...)
> + leds {
> + compatible = "gpio-leds";
> + red {
> + gpios = <&gpiog 14 0>;
> + };
> + green {
> + gpios = <&gpiog 13 0>;
> + };
I suggest you add labels to these LEDs.
label = "red-LED"
label = "green-LED"
This make things so much easier in sysfs.
Usually people also want to add a default linux,trigger to these,
like linux,default-trigger = "heartbeat"; but whatever you prefer.
Acked-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists