From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941914AbcHET6X (ORCPT ); Fri, 5 Aug 2016 15:58:23 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55919 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2993780AbcHET6N (ORCPT ); Fri, 5 Aug 2016 15:58:13 -0400 Date: Fri, 5 Aug 2016 21:58:09 +0200 From: Pavel Machek To: David Lechner Cc: Marcel Holtmann , linux-leds@vger.kernel.org, Richard Purdie , Jacek Anaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joel Becker Subject: Re: [RFC] User-defined leds Message-ID: <20160805195809.GA28410@amd> References: <57965C15.1070705@lechnology.com> <20160805195130.GA26694@amd> <8db4e308-ae2f-ee8a-d570-cd751c4f0269@lechnology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8db4e308-ae2f-ee8a-d570-cd751c4f0269@lechnology.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2016-08-05 14:54:33, David Lechner wrote: > On 08/05/2016 02:51 PM, Pavel Machek wrote: > > > >Could the device tree be used to bind LED driver to otherwise unused > >gpio? > > There is already a leds-gpio driver that does this. > > https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/leds-gpio.txt Yeah, I know, that's why I suggested it :-). What might be missing: simple way to attach leds-gpio driver to hardware on non-devicetree machines, and perhaps teaching leds-gpio special gpio value "no gpio" meaning ... that hardware is not actually updated. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html