Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1395354ybi; Wed, 3 Jul 2019 15:06:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdYXK2R35L0cMRw3uJ0pXl+sWUBMi3X97BlcNwdCAjewbRevn8KqIo6S1nkLczYmVPkPCL X-Received: by 2002:a63:d410:: with SMTP id a16mr38362576pgh.122.1562191580874; Wed, 03 Jul 2019 15:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562191580; cv=none; d=google.com; s=arc-20160816; b=LYbBDjDrDdpRobV8gQXTo9AE029vh/qVof8/k3iJdNqLrrFyhymmndZht1Mj/JxcEX B1sijWFvPI/9Bk3OSDNgPiEB4MvKlmDq75pQ3lHCNuwCN27ixlPS0YDftA2TlKZvZ0sr UwAuJ+m17h36Oc0jr4A1CyZ3/wCseM3c0ggd+WL0G8uRQmtVhMPzKI/PSyOBXCZdXHmC uRrQXMWaO5qHVxTvKYzkKclrL7gHuBeHr8T/O9bG95ug3OpHA8qv+NThmsln4cj+lPkU Ch60EB7URGRo8mKXQn18wVQB9cc41anaFEsdsgNZudYTs+izq2/qkKwh3FMalNWEgsCO 9drQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QvC/YZrj1LF9AlrNUaUJFqnBByy0nYo5tPq2/zKK7aI=; b=pkvfHThBHiAwtkVzZrHxhL62TDnR3JHAzcqI1ml6RcU1B6TVLoV/1nPTmcpWpSUHad jHyIz59ROdX90/DBnaXqW5PZA0TSZ78QI6sn4HD0v4mx08BCRe1oVfXT+Mt5a+HUWS29 FOQxPoTwaFW6ozVXorhwGya7WeSu8PtYohSJ2PQgrDxuNQ9XA7d8FnOCSmLOTzSPMaDz atiHjzylkcKoGyZOCbl25tG6m8T6euLKnV01U5In9gSZxyt+4fnEfahFybTKy2hNcdik bUNQvKSBk3O3uT0gyPVsinUqGkmrFOH5CLH9ZTGW/91B+rm1v/hA3oTY8pZ2GprXue8F IqEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c36si3645960pgl.287.2019.07.03.15.06.05; Wed, 03 Jul 2019 15:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727222AbfGCWFa (ORCPT + 99 others); Wed, 3 Jul 2019 18:05:30 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:38371 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727056AbfGCWFa (ORCPT ); Wed, 3 Jul 2019 18:05:30 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 35F328060B; Thu, 4 Jul 2019 00:05:16 +0200 (CEST) Date: Thu, 4 Jul 2019 00:05:26 +0200 From: Pavel Machek To: David Laight Cc: 'Linus Walleij' , Jacek Anaszewski , Linux LED Subsystem , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Rob Herring , Dmitry Torokhov , Guenter Roeck , Dan Murphy , Baolin Wang , Daniel Mack , Oleh Kravchenko , Sakari Ailus , Simon Shields Subject: Various LED complexities was Re: [PATCH v5 05/26] leds: core: Add support for composing LED class device names Message-ID: <20190703220526.GB876@amd> References: <20190609190803.14815-1-jacek.anaszewski@gmail.com> <20190609190803.14815-6-jacek.anaszewski@gmail.com> <643e3b10fe9d45b59ed063ffc6d578ff@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vGgW1X5XWziG23Ko" Content-Disposition: inline In-Reply-To: <643e3b10fe9d45b59ed063ffc6d578ff@AcuMS.aculab.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vGgW1X5XWziG23Ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2019-06-28 13:30:30, David Laight wrote: > From: Linus Walleij > > Sent: 28 June 2019 09:46 > ... > > A problem with LEDs is that it invites bikeshedding because it is too > > relateable. >=20 > Bikeshedding leds :-) >=20 > It also isn't at all clear how to handle bi-colour and tri-colour leds. > ISTR the usual interface lets you set the brightness, but more often > leds are single brightness but multi-colour. > Eg the ethernet 'speed' led which is (usually) off/orange/green. >=20 > Changing the brightness either means changing the current or using PWM. > Both really require more hardware support than changing colours. >=20 > I've done some led driving (for a front panel) from a PLD (small FPGA). > As well as the obvious things I did: > - dim: 1/8th on at 80Hz. > - flash: 1/8th on at 4Hz. > - orange: 50-50 red-green at 80Hz on an RGB led. >=20 > There was also the 'ethernet activity' led which could either be driven > by the hardware, or forced on/off/flash by the driver. > If driven by the hardware, the software could read the current state. >=20 > None of this really fitted the Linux leds interface. Well, we are working on some of those :-). But lets discuss that in separate threads. In particular we are working on triggers and RGB LEDs. bi-color LEDs seem to handled as two separate LEDs. Not much expected to change there. =09 Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --vGgW1X5XWziG23Ko Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0dJqYACgkQMOfwapXb+vK3+gCgip2UEFe6NwueZy1C3k5AeG/n otAAnjpPCwHWvYp6ku5OriKI1CkGFCYr =31SK -----END PGP SIGNATURE----- --vGgW1X5XWziG23Ko--