Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4562388ybg; Mon, 21 Oct 2019 10:50:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlsLAfs4Hbh1vzjs/litGJ5HOsyBEr4HNlBdns7jjrO1OGOxGU7wHTYXT0XMxUSt6/zHVm X-Received: by 2002:a17:906:585a:: with SMTP id h26mr11686981ejs.329.1571680216007; Mon, 21 Oct 2019 10:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571680215; cv=none; d=google.com; s=arc-20160816; b=yKkqUz4KkEfZduVjRbTeVCUVB0LmrM4uuWFg9jpgxYnu9vVIAIJZ8xDZM/zswnFmxJ XEydcGVGdxm3/7KVXAbsb8dalo5BozXT8gNa+8inoGEbrsWQDwodox4xObCnciFjBS8D r6wxzcq5QgN6mC0yAqE8VSBGrBzV/3y75nS/qom6HiUOwJI2OXSp5pFvuEd03DR9VHBH JqxE6T4bow4GgV979fFEr54oIXsVGYF0Tb3liWBb8xQDAoXgh8qspHcvrgdV4F3g2/nq f58YEcFfg3xQy6K3hGAu2xV+QBa3uTt/IkKxem1u8rpO+2VVxLdxUN3mccuQP+7gphYB daIQ== 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=BIhYVTQWymD4mY31+ZJn/sbNnTMn160ESSh3gpWtn5Y=; b=B//iVsh3n4FbDcKs+oQvtxDgSLpJoTBFLFSR/FAPIVdAojU8VbpcgX2iFn/05uNd56 yv1I53X8PwBpg+ET8a40AbKWNH/Dx5Fs5TPvzoKmgLDsH2uJHCMiO2BdBTpB9p1K1wjN IXiy7GBzCDbdNMA0WR5w40+SGRITyQLku+ZFsvK/udPf+jeYO1tJQwDveGjNeIM0UdRu DfW+cC5tHDTvHk+2d5HaCqjS62uWDmW95lDIW81tGVsb6gQP+kuCueeWplXel9a4+Sxx /DOZIl/sqxsqs4TllSrBBY2yOYklNJjnpdmFLpuBDqMNJnDtGcjXE0xHW1zsZ5kURodu Hjyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=m52aS8bF; 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 14si5007372eja.294.2019.10.21.10.49.52; Mon, 21 Oct 2019 10:50: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=m52aS8bF; 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 S1729878AbfJURsl (ORCPT + 99 others); Mon, 21 Oct 2019 13:48:41 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:45506 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbfJURsk (ORCPT ); Mon, 21 Oct 2019 13:48:40 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9LHmYfx106826; Mon, 21 Oct 2019 12:48:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571680114; bh=BIhYVTQWymD4mY31+ZJn/sbNnTMn160ESSh3gpWtn5Y=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=m52aS8bFak5L9jNVz3ugYup3CO4bzxZHoHurehVUKD+hHaunDHVCOtx23YOr/KEL5 0dKWKV22SWB3RJjNJbmduJrZQwMxFCqXAsmwVQCA4hVXns0vMr1TbS/wIezsLty1Ww BYK2/A27riGk9EhwQnTLSA1jfV0WKWYZzmURaW+0= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9LHmIW1047774 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Oct 2019 12:48:19 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 21 Oct 2019 12:48:08 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) 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, 21 Oct 2019 12:48:08 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9LHmGFk111774; Mon, 21 Oct 2019 12:48:17 -0500 From: Jean-Jacques Hiblot To: , CC: , , , , Subject: [PATCH v7 1/2] dt-bindings: leds: document the "power-supply" property Date: Mon, 21 Oct 2019 19:47:50 +0200 Message-ID: <20191021174751.4421-2-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191021174751.4421-1-jjhiblot@ti.com> References: <20191021174751.4421-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. Cc: devicetree@vger.kernel.org To: robh+dt@kernel.org To: mark.rutland@arm.com Signed-off-by: Jean-Jacques Hiblot --- Documentation/devicetree/bindings/leds/common.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 6d44f0c38487..dacaf863d687 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -96,6 +96,19 @@ 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. + +- power-off-delays-ms: This property specifies the delay between the time a LED + is turned off and the time the regulator is turned off. + It can be used to limit the overhead of the regulator + handling if the LED is toggling fast. + ex: if power-off-delays-ms is set to 500 ms, the + regulator will not be turned off until the LED is turned + off for more than 500ms. + - 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 @@ -143,6 +156,7 @@ led-controller@0 { function = LED_FUNCTION_STATUS; linux,default-trigger = "heartbeat"; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + power-supply = <&led_regulator>; }; led1 { -- 2.17.1