From patchwork Fri Jan 9 15:22:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 5600951 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3520F9F357 for ; Fri, 9 Jan 2015 15:34:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FF92205D3 for ; Fri, 9 Jan 2015 15:34:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 574CE2044C for ; Fri, 9 Jan 2015 15:34:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757861AbbAIPXn (ORCPT ); Fri, 9 Jan 2015 10:23:43 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:24521 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757902AbbAIPXk (ORCPT ); Fri, 9 Jan 2015 10:23:40 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHX002JY1FF9100@mailout1.samsung.com>; Sat, 10 Jan 2015 00:23:39 +0900 (KST) X-AuditID: cbfee61b-f79d76d0000024d6-2d-54aff27a06a7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E8.96.09430.A72FFA45; Sat, 10 Jan 2015 00:23:39 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NHX003F51EOLH20@mmp2.samsung.com>; Sat, 10 Jan 2015 00:23:38 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, kyungmin.park@samsung.com, b.zolnierkie@samsung.com, pavel@ucw.cz, cooloney@gmail.com, rpurdie@rpsys.net, sakari.ailus@iki.fi, s.nawrocki@samsung.com, Jacek Anaszewski , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Subject: [PATCH/RFC v10 03/19] DT: leds: Add led-sources property Date: Fri, 09 Jan 2015 16:22:53 +0100 Message-id: <1420816989-1808-4-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1420816989-1808-1-git-send-email-j.anaszewski@samsung.com> References: <1420816989-1808-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsVy+t9jQd3qT+tDDB4/YrXYOGM9q8XRnROZ LOYfOcdq0f9mIavFuVcrGS16rz5ntDjb9Ibd4vKuOWwWW9+sY7To2bCV1WLp9YtMFndPHWWz mDB9LYtF694j7Ba7dz1ltTj8pp3V4sz+lWwOgh5r5q1h9Ljc18vksXPWXXaPlcu/sHkc/rqQ xWPTqk42jz3zf7B69G1ZxeixYvV3do/Pm+QCuKK4bFJSczLLUov07RK4MrrPrmMpeM1dcWbd I+YGxtecXYycHBICJhLbp29ghLDFJC7cW8/WxcjFISQwnVFi1p3jrBBOO5PEsau/2EGq2AQM JX6+eM3UxcjBISIQLXHpWD1IDbPAUmaJ6Z23WEDiwgKOEhNvpIKUswioSsy8vZ0VJMwr4C6x /7QmiCkhoCAxZ5INiMkp4CHR8tsJxBQCKnhz1XACI+8CRoZVjKKpBckFxUnpuUZ6xYm5xaV5 6XrJ+bmbGMEh/kx6B+OqBotDjAIcjEo8vBvk1ocIsSaWFVfmHmKU4GBWEuFt2AwU4k1JrKxK LcqPLyrNSS0+xCjNwaIkzqtk3xYiJJCeWJKanZpakFoEk2Xi4JRqYBSNm7Fje4Od/OpLOd/8 TCc3fpr+4Y+vzYla+bWslrpxL4JSeMMu3TgQVfXi2b0/TUJ8/Pe+9PTzXXDbXBtQKzGJu2WW Wch3/au3rJMcHXLES16fb56WFuX6O9phZZLsrwXH7RUEntxfJrVrb6/jpV3LdRQf112W3u/4 N3r3XImuFQWSN7ZVVCmxFGckGmoxFxUnAgApG6q2bQIAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a property for defining the device outputs the LED represented by the DT child node is connected to. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Acked-by: Pavel Machek --- 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 a2c3f7a..29295bf 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -1,6 +1,10 @@ Common leds properties. Optional properties for child nodes: +- led-sources : Array of bits signifying the LED current regulator outputs the + LED represented by the child node is connected to (1 - the LED + is connected to the output, 0 - the LED isn't connected to the + output). - label : The label for this LED. If omitted, the label is taken from the node name (excluding the unit address). @@ -33,6 +37,7 @@ system-status { camera-flash { label = "Flash"; + led-sources = <1 0>; max-microamp = <50000>; flash-max-microamp = <320000>; flash-timeout-us = <500000>;