Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4440320ybi; Mon, 15 Jul 2019 08:58:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyg74atENsa4dlLRpsM9Id23ZFN+XmRTyi7fwc2NdIamqD/YNTVeoul72nRQIuoVsBnx+qb X-Received: by 2002:a65:62c4:: with SMTP id m4mr27009904pgv.243.1563206295837; Mon, 15 Jul 2019 08:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563206295; cv=none; d=google.com; s=arc-20160816; b=yzJX5JJcdfgfX0Owh9TUYMAmocSsD3SWVOSM4pbu5YklZFwy+Wg4beV2BWqpsJ4Q6R czTBKz1bX9teLObhVPa7SdBzUmZe9mlnvpbAWiHEmyw9UeWiQ6MaXH5ZTr7mxI5CTtlJ vsjHUg/yLPcVejLFOnqtb3gGwIiKB73NpQjQNqt5809/zCmoP17tptZRjK2EGVhM529Z o96FgrTGxjx5X2bNXS2sXykKTL5QNJRgAVA42WJKYXm3EjNVhuP02XCVdOo2FwuGx5S/ 6QS63PM374I6d41wBC7GgRl5/WE2ZJpHd4wnYgcgZQwM05I59X+vGWU7MXHbpkCfgddO BZWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=iaAnwYBfD9CJqtfD9c5oWXMnzS94YZ4lVNad/UAKpp0=; b=YQMmp6Aw3nxm35Ex+7Bbek08ketPoosUP+nKaa4zxYYZkERmGTbu9DlwK9KALBSHgM p0eXKmdW+GaQt7F/nJt1ka7j2Yro1VxJZ+Rsvk20LYQsCm2OV0YK/ZwE9m4K7TWtduiy 1mQIKUGvZQk8uUJ84xJB9w/KF692fdjPFzlOCAhLbW0GUA+s/bQjDcanllRlpBh8uoWl 0Mr8mGUpkuqN1/wRGZbzLwHHF76l/GtXeBixnnkooPIkLbLeIeig5bql1rTsbU2BnTzI wlTvdrQUMgrVYeY7jJtDEPtKHaxGMrrnTUpVpyf7eRmUzB7XK2C/TaBJpdxv/Z/Nh1Ia 2AEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wQwbuCsp; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si16906553ply.10.2019.07.15.08.57.56; Mon, 15 Jul 2019 08:58:15 -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=@ti.com header.s=ti-com-17Q1 header.b=wQwbuCsp; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731015AbfGOP5f (ORCPT + 99 others); Mon, 15 Jul 2019 11:57:35 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43666 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730650AbfGOP5e (ORCPT ); Mon, 15 Jul 2019 11:57:34 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6FFvQjb101883; Mon, 15 Jul 2019 10:57:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1563206246; bh=iaAnwYBfD9CJqtfD9c5oWXMnzS94YZ4lVNad/UAKpp0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wQwbuCspxcfDBD/VlhypLMmK2hCPf/6u0ylpCa2o3x+o8cVnxnAl3HB9yla8cK6j+ F6KPUbagPPDPtr3ccveYQvl1CcaoTjyk7oZpbsuLziakFt2stch26WTdUGYSOVJzmb pqN6of/Y8fRk3NAQs0Hb0+9EzIvi7hSv26AapFzI= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6FFvQxr084917 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Jul 2019 10:57:26 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 15 Jul 2019 10:57:25 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 15 Jul 2019 10:57:26 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6FFvPnC011125; Mon, 15 Jul 2019 10:57:25 -0500 From: Jean-Jacques Hiblot To: , , , , CC: , , , , Jean-Jacques Hiblot Subject: [PATCH v2 1/2] dt-bindings: leds: document the "power-supply" property Date: Mon, 15 Jul 2019 17:56:56 +0200 Message-ID: <20190715155657.22976-2-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190715155657.22976-1-jjhiblot@ti.com> References: <20190715155657.22976-1-jjhiblot@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most of the LEDs are powered by a voltage/current regulator. Describing it 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 70876ac11367..539e124b1457 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. + - 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 @@ -106,6 +111,7 @@ gpio-leds { label = "Status"; linux,default-trigger = "heartbeat"; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + power-supply = <&led_regulator>; }; usb { -- 2.17.1