Thread (30 messages) 30 messages, 5 authors, 2015-12-11

[PATCH v2 8/9] ARM: dts: Add leds support to STM32F429 Discovery board

From: Linus Walleij <hidden>
Date: 2015-10-26 13:41:43
Also in: linux-devicetree, linux-gpio, lkml

On Sat, Oct 17, 2015 at 7:23 PM, Maxime Coquelin
[off-list ref] wrote:
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.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 <redacted>

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help