From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761695AbcIWR3U (ORCPT ); Fri, 23 Sep 2016 13:29:20 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:35646 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754046AbcIWR3R (ORCPT ); Fri, 23 Sep 2016 13:29:17 -0400 Date: Fri, 23 Sep 2016 12:29:15 -0500 From: Rob Herring To: Florian Vaussard Cc: devicetree@vger.kernel.org, Richard Purdie , Jacek Anaszewski , Mark Rutland , Pavel Machek , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Florian Vaussard Subject: Re: [PATCH v3 1/2] leds: ncp5623: Add device tree binding documentation Message-ID: <20160923172915.GA21731@rob-hp-laptop> References: <1474025672-5040-1-git-send-email-florian.vaussard@heig-vd.ch> <1474025672-5040-2-git-send-email-florian.vaussard@heig-vd.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1474025672-5040-2-git-send-email-florian.vaussard@heig-vd.ch> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 16, 2016 at 01:34:31PM +0200, Florian Vaussard wrote: > Add device tree binding documentation for On Semiconductor NCP5623 I2C > LED driver. The driver can independently control the PWM of the 3 > channels with 32 levels of intensity. > > The current delivered by the current source can also be controlled. To > do so, the led-max-microamp property is used by each LED sub-node. The > maximum value is then found and used as a limit to compute the final > intensity of the current source. If a LED happens to have a lower limit, > the PWM is then used to limit the current to the requested value. > > In order to control the current source, it is also necessary to know > the current on the Iref pin, hence the onnn,led-iref-microamp property. > It is usually set using an external bias resistor, following > Iref = Vref/Rbias with Vref=0.6V. > > Signed-off-by: Florian Vaussard > --- > .../devicetree/bindings/leds/leds-ncp5623.txt | 60 ++++++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/leds-ncp5623.txt Acked-by: Rob Herring