From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BF78C43466 for ; Sun, 20 Sep 2020 11:08:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D015F20EDD for ; Sun, 20 Sep 2020 11:08:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbgITLIN (ORCPT ); Sun, 20 Sep 2020 07:08:13 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:42458 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbgITLIN (ORCPT ); Sun, 20 Sep 2020 07:08:13 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id CF1411C0B77; Sun, 20 Sep 2020 13:08:10 +0200 (CEST) Date: Sun, 20 Sep 2020 13:08:10 +0200 From: Pavel Machek To: Adrian Schmutzler Cc: linux-leds@vger.kernel.org Subject: Re: How to name multiple LEDs of the same type and color Message-ID: <20200920110810.GA15219@duo.ucw.cz> References: <00ab01d68eca$d2d4fcc0$787ef640$@adrianschmutzler.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <00ab01d68eca$d2d4fcc0$787ef640$@adrianschmutzler.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > I wonder what would be the correct way to deal with a set of LEDs with th= e same color/function combination, e.g. > (Please wrap at 72). > leds { > compatible =3D "gpio-leds"; >=20 > link1 { > function =3D LED_FUNCTION_RSSI; > color =3D ; > gpios =3D <&gpio 13 GPIO_ACTIVE_LOW>; > }; >=20 > link2 { > function =3D LED_FUNCTION_RSSI; > color =3D ; > gpios =3D <&gpio 14 GPIO_ACTIVE_LOW>; > }; >=20 > link3 { > function =3D LED_FUNCTION_RSSI; > color =3D ; > gpios =3D <&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 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX2c4GgAKCRAw5/Bqldv6 8o55AJ9S2pL7pxTV5pM4IY4luuU84Ste0ACgp1s4y+Ao5w8ZFJUkBBumhWMZ0C8= =NQyc -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--