Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11999206ybi; Fri, 26 Jul 2019 03:07:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOvwl8MW+vuFgZIu9/B3ukTsSgtHHaUCw4Cft5w1b6gPjw1k1DGZrWWSIOkPte86BRcgzN X-Received: by 2002:a63:204b:: with SMTP id r11mr50851865pgm.121.1564135628808; Fri, 26 Jul 2019 03:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564135628; cv=none; d=google.com; s=arc-20160816; b=UL+C7pO8EaZPgRkdU+qye7tm81ad0f8M8EAh/BkdvQs2JgdS7kpJ5RIWTokydYSOag B9JLvNfq2EKJZ/oYaUCCQfuhyp72ezDXT3YgK5oNPn9m9rYoX3e/Uc3JBmezWx9RPSSq o4cT4Yg7dAZdR1/J1NhRoT59rl4Vb/d/43KjhN3daefJR/34am9nlvrucs0f4tMoUTam 1QIvM56f6GkovdetbVRF1IOrvKxVmh7RSHKPvI6/IvBLBenHr9LB6SYe6eivF8sbnpVS BlOPFYIsN1Byy38GCCHQJzDVVBvr/6Q4jrTxU0AtKqko1T5TaaJ42KNKdsb3/vs8FOaj 3dKw== 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:dkim-signature; bh=3Hjrv9ZYKJu8+kghKGHOb5+hoAyVj3/mf5z92bGiL1s=; b=oNwIxBXUuci7OaNL6x4GE8nDDMry6Y7w1Xp6DJDLYouUAMv/4chWD/VpzjZ27Ba5wO zJBDxqTLYQPFGZwmvBJW5OwQ+UiIH6h8LMZetumgUNM0342XEDSXFLZUd71gTCmkmKhV 0fVqXUMVyWAfOzY3miUIAgQo/rihONuajmbj6GCzH3+MvH50Ot7Taa3Rb1XWZbCy1ByA wV7QiKqW0Tgi4toz8pb3LEWIxsEd8ZpYoShsM5t93CpVWz+5Wc/SihmM/iIDOaPAllfN R3eAfcG1m2NHay+Vp2sx/t05nbLNuYf7GjqUxOZwSTh+FZeEfZWcl8I9H7ncboFEbWVD E26g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lYz/UGbt"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y70si20154887pfg.184.2019.07.26.03.06.52; Fri, 26 Jul 2019 03:07:08 -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; dkim=pass header.i=@linaro.org header.s=google header.b="lYz/UGbt"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726102AbfGZKGM (ORCPT + 99 others); Fri, 26 Jul 2019 06:06:12 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35035 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbfGZKGM (ORCPT ); Fri, 26 Jul 2019 06:06:12 -0400 Received: by mail-wr1-f68.google.com with SMTP id y4so53835804wrm.2 for ; Fri, 26 Jul 2019 03:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3Hjrv9ZYKJu8+kghKGHOb5+hoAyVj3/mf5z92bGiL1s=; b=lYz/UGbt8WDlJYVQroy8L1dI9habJK1BZbzR3fmaHoEoywC9cmqtnAJ9MKT3QtyWQL Ek3HiF6h5r1hgWYb3zXbc7gCi9LSq0ODyWswtsvGxCzmR4tQkwSAFS34t/ZrUi9ntojB 3mxFYDym25DUz8RLbKTCzVicgQdJ1GPDmJI9TRPBKVRBzK166CPdkAf08id7H1Ewoqf8 lkEJuTEftRC235Fols9XsmEjyKvSqVE8pYCJo+VEl0Kdcv//qP/eF8uS86DTiZ3/VAwh qlFJr9FWZiZW6MiA8TlnsWt0KOn6vWuIEg0rMdPHVZM9caXjsAza6akYhLU5BHpiwTsN DHiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3Hjrv9ZYKJu8+kghKGHOb5+hoAyVj3/mf5z92bGiL1s=; b=hx3wGIdXfKllX3PC+gAOc3GooEEtmjKjd/3INQdzQ9BqVP/cCkgyqXw2XmWCmsEhah Ngx1obSQTbIfoB4ydN004hyVEfHVUOfpUbEo18n6FD45Wg93dO8ooeovFR1ZwJGb4tLn lo76Eal2QZVzcZhFtXxmuBscZm+RN/oxoamrZ/aFUekRPcSNS5B/Us5PdcgI9VB5KUq8 yoXeeG/jBJDlvUEafGOTMiKjePz8mNCuiBWpA2xR3mSbceWfVuxx+9O3SozOvRYl7Vnd DEA23GUgc1rIQl03izhcslQ3PaXyB6jgueVLm3LxmK57xcjuYUaWzHm8LVamvgY1FaUv Dv5g== X-Gm-Message-State: APjAAAXDfhRNG35v0OzbGwLZQYfgw/+89y0Ky0jmA72u9/LfUs8SGm82 f7dfN2vic6swjFxWLl2Ekf/U5w== X-Received: by 2002:adf:9486:: with SMTP id 6mr69762173wrr.242.1564135569988; Fri, 26 Jul 2019 03:06:09 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id i6sm46180031wrv.47.2019.07.26.03.06.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 03:06:09 -0700 (PDT) Date: Fri, 26 Jul 2019 11:06:07 +0100 From: Daniel Thompson To: Jean-Jacques Hiblot Cc: Rob Herring , jacek.anaszewski@gmail.com, pavel@ucw.cz, mark.rutland@arm.com, dmurphy@ti.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: leds: document new "power-supply" property Message-ID: <20190726100607.j5bdmuuk33zpwa2r@holly.lan> References: <20190708103547.23528-1-jjhiblot@ti.com> <20190708103547.23528-3-jjhiblot@ti.com> <20190724164757.GA3723@bogus> <753b2c8d-e8fc-ec6e-f372-a84d4452fd33@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <753b2c8d-e8fc-ec6e-f372-a84d4452fd33@ti.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 25, 2019 at 01:08:46PM +0200, Jean-Jacques Hiblot wrote: > Hi Rob, > > On 24/07/2019 18:47, Rob Herring wrote: > > On Mon, Jul 08, 2019 at 12:35:47PM +0200, Jean-Jacques Hiblot wrote: > > > Most of the LEDs are powered by a voltage/current regulator. describing in > > > the device-tree makes it possible for the LED core to enable/disable it > > > when needed. > > > > > > Signed-off-by: Jean-Jacques Hiblot > > > --- > > > Documentation/devicetree/bindings/leds/common.txt | 5 +++++ > > > 1 file changed, 5 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt > > > index 70876ac11367..e093a2b7eb90 100644 > > > --- a/Documentation/devicetree/bindings/leds/common.txt > > > +++ b/Documentation/devicetree/bindings/leds/common.txt > > > @@ -61,6 +61,11 @@ Optional properties for child nodes: > > > - panic-indicator : This property specifies that the LED should be used, > > > if at all possible, as a panic indicator. > > > +- power-supply : A voltage/current regulator used to to power the LED. When a > > > + LED is turned off, the LED core disable its regulator. The > > > + same regulator can power many LED (or other) devices. It is > > > + turned off only when all of its users disabled it. > > Not sure this should be common. It wouldn't apply to cases where we have > > an LED controller parent nor gpio and pwm LEDs and those are most cases. > > It does make sense for GPIO and PWM bindings if the anode of LED is tied to > a regulated voltage and the cathod to the control line. > > The same is true for a certain class of true LED controller that do not > deliver power but act like current sinks. > > JJ > > > > > Perhaps what makes sense here is an regulator-led binding. You didn't comment on this alternative... and I confess I'm not quite sure what Rob means by a regulator-led binding so I can't really comment either. Rob, is there any analogous example for a regulator- binding to compare with? Daniel. > > > > > + > > > - trigger-sources : List of devices which should be used as a source triggering > > > this LED activity. Some LEDs can be related to a specific > > > device and should somehow indicate its state. E.g. USB 2.0 > > > -- > > > 2.17.1 > > >