Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1550220ybj; Fri, 20 Sep 2019 12:17:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIq9LJa6pvcv1Ozhw94401Iby8sHcKz8+kyoqGrc5yT1jOSyqHWqxXa94ToxPg4oLlxiXv X-Received: by 2002:a05:6402:1259:: with SMTP id l25mr23892941edw.174.1569007054375; Fri, 20 Sep 2019 12:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569007054; cv=none; d=google.com; s=arc-20160816; b=STmVVNTkSXGEENB5va7UA8obQxZlxgFsOV7wje8urRFCAYWkgQ6LMDyMGo8Pqlj2c+ Ms/c2ETGL2mPZj9b3Ii34SMb/EZHgVtdX94mWMKPvndRaBC1xnGO+I99axeivkKZoUR9 eb6iKxE5vkhV//UgpDh2cR3wOgd3OrzDu1Sunm09TtR5itWiDJNwS2V0xq4Z/BlbshRt MHkQkuURE7L5s8XBML/3PjI0qKnRiTitYKUqMm48XhUOSVXUbgBE7R9wB76Datd9GgNp HbX9YPWaNNfJbnRpjmZqeZodh1L8/JnbYpZDSfiiSvZCZskpo32oea9XUvMRH25WuhGn wChg== 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=cBoKvprCWX4HfA/N5m5okyZPanqB24Wctagwezb2Vbo=; b=VWuBU6iPA6CW/EQoWrdb16KmZxYupjwvU3vEociX7aaK/H1EO1H696WhnTeC/BZRo3 oZhd5LuOJ7/qS2mPVWHLPNv4qVyiwBXwnAwLUj8OjtTbb2XNc1T2voZdQMdiOcFz0nln 3tkTsg0K1RXsWGjgNs6LLTBBOOvq8GAxoC6V8XhCV8DuAir4zhl8PaG/NVDhjidi8DQu RBTdieYkAU6No2WkYaWp1lvVnX6NuK8DSBtVqGB7z+JtVJfqKa3kiwAQhwhubymZ0WL7 60O8quuoNVx6+wT+0HcnE1Wqsh3w6IxwsfpWsPWQEdJgwiSOBHPGa4Y/e++zbCE+cGKZ 29Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Nl1Takoz; 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 f17si2441521edf.328.2019.09.20.12.17.10; Fri, 20 Sep 2019 12:17:34 -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=Nl1Takoz; 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 S2438351AbfITMZy (ORCPT + 99 others); Fri, 20 Sep 2019 08:25:54 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:35984 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438317AbfITMZw (ORCPT ); Fri, 20 Sep 2019 08:25:52 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8KCPmCk032284; Fri, 20 Sep 2019 07:25:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568982348; bh=cBoKvprCWX4HfA/N5m5okyZPanqB24Wctagwezb2Vbo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Nl1TakozdPzVbEQvO1alKSE8NOUYHoiMJrDKf3N87fODTezlvEb8tQfk68Iw+lXkZ U8c6vrB4EmbYuylOhwvGQZx8gk50rsQvY2dmQ4VjvQEVIembPgcUvgo6fwG45xyYxu QsERGkZfShIeZqY2HryNTK+5Qn4mrpRj6E2xNO2Y= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8KCPm2s125513 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Sep 2019 07:25:48 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 20 Sep 2019 07:25:47 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE101.ent.ti.com (157.170.170.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; Fri, 20 Sep 2019 07:25:43 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8KCPlli024329; Fri, 20 Sep 2019 07:25:47 -0500 From: Jean-Jacques Hiblot To: , , CC: , , , , Jean-Jacques Hiblot Subject: [PATCH v4 2/3] dt-bindings: leds: document the "power-supply" property Date: Fri, 20 Sep 2019 14:25:24 +0200 Message-ID: <20190920122525.15712-3-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190920122525.15712-1-jjhiblot@ti.com> References: <20190920122525.15712-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 9fa6f9795d50..54857c16573d 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -77,6 +77,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 @@ -124,6 +129,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