Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp923678ybi; Wed, 17 Jul 2019 07:01:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5F3TUekNxPWWuLTLy8Qett6W0r2lRbAJzjBHQqCUnUf10gK3mpmCXkG1vwLsZpMeejcE8 X-Received: by 2002:a17:90a:fa18:: with SMTP id cm24mr43000289pjb.120.1563372104692; Wed, 17 Jul 2019 07:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563372104; cv=none; d=google.com; s=arc-20160816; b=BC7Dl8PlzlHqVj/uPON+Lj1ncBjN6ZY7YfEZYRI89tGUhXseZB2jrCCSuMrYF6chyn VFlwZ5ZkrmWlHoaCzSlDI/yVVIYU6tii5kCEnf49RFhWejCxZ1uK1BuMMLnV5UGxSAC2 7YTjtCdMnfU3BeFm+1areFLLHG4BSy5ZGXq1dtYf9qCx+M1Hun7S8QHM8EnhYKM9xbHc +OVpfY29Bl06lrGM1Jiy31xz+j6JXEZWe6QhsyiFLxVwsGXNlfSKya9xMmlnxjF/JfMR nzRl3yqRurPzUADfr4ruUK/mj51i/4ThXoYhvuDX9KqfUoC8QtHlA8ZN3O/uzLHqqVRY ASIw== 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=0Y6xXaJ5T74aw1vc+qkROI0MjltvEf3IRv84voxlIIU=; b=D/4mB7gDle9fL8fJdsbeoFX/4vavy8yxtJKFwXSJrwW2D1cIH2e+AwjuYQJQYKHUKI vnocxC7noMp2e8GZjg4TK7iprXRRfK1KRRc+aUL4UjITupvQKyyejX886d5JZ6cEJvl9 adjV4ab8cLascZHY28qiLbw4oukCrXFMJX1Zs6OpQDU2cznl16wH/gHGV7Fl4YUIv8Cc A6SW/elUVkjDnzVnLm7LqtCOJr/F6jsMOQmjXnA5v7liE62VJWmKROsxy4PebfXixdUo s1TBLpZKZdKsccXFQU1K/b/rAUeR0wBuDN4+jlRNlkEvgfmzwS7C2Pva4WQbMDGUoU/N wEWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EhIPYTFB; 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 q13si22789258pjb.13.2019.07.17.07.01.27; Wed, 17 Jul 2019 07:01:44 -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=EhIPYTFB; 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 S1727520AbfGQOAE (ORCPT + 99 others); Wed, 17 Jul 2019 10:00:04 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:37374 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbfGQOAC (ORCPT ); Wed, 17 Jul 2019 10:00:02 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6HDxr2a062888; Wed, 17 Jul 2019 08:59:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1563371993; bh=0Y6xXaJ5T74aw1vc+qkROI0MjltvEf3IRv84voxlIIU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=EhIPYTFBHqKEzHLeG36q4nHwOKYWlWpERjnMe7KQG1JqH66di/iT7cElT21z8C7Ol 8DsWQeTjawvgxl01W0KB3oBWYjWJUvDDCvwPF6H8Drijp9gshm5640b+V/pr0gBiPM 6PyZPB7HPv64RZe6fF1yUuKR21CJ7ba/GEBR6HpA= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6HDxruD055065 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Jul 2019 08:59:53 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 17 Jul 2019 08:59:53 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE104.ent.ti.com (10.64.6.25) 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; Wed, 17 Jul 2019 08:59:53 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6HDxqrH016862; Wed, 17 Jul 2019 08:59:53 -0500 From: Jean-Jacques Hiblot To: , , , , CC: , , , , Jean-Jacques Hiblot Subject: [PATCH v3 1/3] dt-bindings: leds: document the "power-supply" property Date: Wed, 17 Jul 2019 15:59:46 +0200 Message-ID: <20190717135948.19340-2-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190717135948.19340-1-jjhiblot@ti.com> References: <20190717135948.19340-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 Sometimes 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 Reviewed-by: Dan Murphy --- Documentation/devicetree/bindings/leds/common.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 70876ac11367..f496ec1c1542 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -61,6 +61,9 @@ 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 : Is a phandle to a voltage/current regulator used to to power + the LED. + - 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 +109,7 @@ gpio-leds { label = "Status"; linux,default-trigger = "heartbeat"; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + power-supply = <&led_regulator>; }; usb { -- 2.17.1