Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9798561ybi; Wed, 24 Jul 2019 10:08:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGsAXTvyvXsNJ3OInOsP38DxT3+sFpq5wgBGSbSJUK0/e0zzOu+BfOm/MU9LcPgyEfIl4h X-Received: by 2002:a62:fb18:: with SMTP id x24mr12027266pfm.231.1563988083968; Wed, 24 Jul 2019 10:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563988083; cv=none; d=google.com; s=arc-20160816; b=HiH1AkxT0GfCh9/5Z4xzjx7mbJqbMSvaC5gcoHR3Vdo+pgUoMVO8jeGjfIznNMVoj2 jkT6aQrQZnkfjMDvCM+KOv1OUOJgPI5x24fQ48SzlRxMtMynBzGEXXxqovkBZek8Zthm Av5Yw2UQkW77nklJa8rnw0mqiuzDHRh4q+A2khg8kXMjFF9qWGcnhYxe5jsfVNhDPCiK QhWnR+MSxswgmN7tKFdd+INwlxMgqLLiiytXDNjw18T0pPgc9ZI/vJCXL2NGS0sIev5S yYFz0XHPfqG2PH0dZduGemL+h2XtqNybECzJsd3Gn/qd8y+QwTi8R+tvcNvK7vbf+BYu ZjKg== 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=NaGPAivB1MBv9O5lVWBShae32bWUUsQkrf58j6a6XWY=; b=eg/ClEvU58MLXyQslllJyMSuph4lZ/HCC1AY74lF+ot5uzOxzGK9BFWOq0Nmefrw3g xiJbIUlia/pMNR1+NHOK9aMe8Lq8gjkO9ZXtZmkeQkexJEWG+c5AnWUd+FSj9/ZkhWcb S53L5aI0WWd+lahZHXF95w/6zBfyeyo3eGZJqxMz+egc1fsj3Q9Mq2OpISzewGFWOzH4 AsGP5xsuODBZx4vOHNmC67bixnXBiSbciFVLJS+CsolIH023FPrpKBLmK0WN8hcnHQM9 4aA01iZFBHudVrWnzn8AD2wPxSx3+x8vaQbWBnpY1Qt9Ad9j0CP5rD1vefvdS0g0qRsE mxtA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si3678168pgm.163.2019.07.24.10.07.49; Wed, 24 Jul 2019 10:08:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387709AbfGXQsA (ORCPT + 99 others); Wed, 24 Jul 2019 12:48:00 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:39117 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbfGXQr7 (ORCPT ); Wed, 24 Jul 2019 12:47:59 -0400 Received: by mail-io1-f67.google.com with SMTP id f4so91034448ioh.6; Wed, 24 Jul 2019 09:47:59 -0700 (PDT) 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=NaGPAivB1MBv9O5lVWBShae32bWUUsQkrf58j6a6XWY=; b=gX1m7rA7wbPHnvd7/XqCaN/dXfTsUeaBwMPQaLAd5IyKnv/v1tZ0La18S3JU0EkNSi Tk7NaZuk6gE7gfDJezU8b21I0vA13APrC5fSNAnh3mU2cG8I4zalK/5YQj2dXi96gEpV U90ggHDLs3drk5nD/dSk2bvvcZ+9lMUEzui/ipA2jwvDTR+BngV+A+g3zxgO56Qm+YFN zflPBHGWVt08mgJwsNuPocWFbJwUs/IuNIGTzjkSvFZ4ncZIqxxlR8r9wVSpTMszcXm4 y7F5KO5A7BNjC+T60kFiyQeDbZdeEqq6xxc/1lLudvJ5y92+xg3QerrLrwQBQfjykgCZ t0iA== X-Gm-Message-State: APjAAAUVAiJCFX9YED5FxG/0ontDsffq+BTJGL3/nUqYJ+Rof5JVbUGD YFCD8aUfjTRJ3RIA6GPEFg== X-Received: by 2002:a5e:8f08:: with SMTP id c8mr77188637iok.52.1563986878841; Wed, 24 Jul 2019 09:47:58 -0700 (PDT) Received: from localhost ([64.188.179.254]) by smtp.gmail.com with ESMTPSA id m20sm44390636ioh.4.2019.07.24.09.47.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 09:47:58 -0700 (PDT) Date: Wed, 24 Jul 2019 10:47:57 -0600 From: Rob Herring To: Jean-Jacques Hiblot Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, mark.rutland@arm.com, daniel.thompson@linaro.org, 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: <20190724164757.GA3723@bogus> References: <20190708103547.23528-1-jjhiblot@ti.com> <20190708103547.23528-3-jjhiblot@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190708103547.23528-3-jjhiblot@ti.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Perhaps what makes sense here is an regulator-led binding. > + > - 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 >