Re: How to name multiple LEDs of the same type and color

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

> I wonder what would be the correct way to deal with a set of LEDs with the same color/function combination, e.g.
>

(Please wrap at 72).

> 	leds {
> 		compatible = "gpio-leds";
> 
> 		link1 {
> 			function = LED_FUNCTION_RSSI;
> 			color = <LED_COLOR_ID_GREEN>;
> 			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
> 		};
> 
> 		link2 {
> 			function = LED_FUNCTION_RSSI;
> 			color = <LED_COLOR_ID_GREEN>;
> 			gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
> 		};
> 
> 		link3 {
> 			function = LED_FUNCTION_RSSI;
> 			color = <LED_COLOR_ID_GREEN>;
> 			gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
> 		};
> 	};

Well, this is not really three LEDs. This is more like... LED meter
composed of three LEDs. And we don't have good support for that.

But I guess we'll need it one day. There were some previous attempts:
https://lwn.net/Articles/802967/

Do you plan to control RSSI LEDs from kernel?

Best regards,
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux