From patchwork Mon Sep 22 15:22:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 392012 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id E4D9E14011D for ; Tue, 23 Sep 2014 01:23:35 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754217AbaIVPXb (ORCPT ); Mon, 22 Sep 2014 11:23:31 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:56083 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754039AbaIVPX3 (ORCPT ); Mon, 22 Sep 2014 11:23:29 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NCB0065A6QP6G40@mailout3.samsung.com>; Tue, 23 Sep 2014 00:23:13 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-f9-54203ee1d904 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 22.EA.20081.1EE30245; Tue, 23 Sep 2014 00:23:13 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NCB003W86QA6W90@mmp1.samsung.com>; Tue, 23 Sep 2014 00:23:13 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: kyungmin.park@samsung.com, b.zolnierkie@samsung.com, Jacek Anaszewski , Stephen Warren , Grant Likely , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Subject: [PATCH/RFC v6 2/6] DT: leds: Add flash led devices related properties Date: Mon, 22 Sep 2014 17:22:52 +0200 Message-id: <1411399376-16497-3-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1411399376-16497-1-git-send-email-j.anaszewski@samsung.com> References: <1411399376-16497-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLLMWRmVeSWpSXmKPExsVy+t9jAd2HdgohBqe2alpsnLGe1WL+kXOs Fv1vFrJavDqzkc3i3KuVjBa9V58zWpxtesNusfXNOkaLng1bWS2WXr/IZDFh+loWi9a9R9gt bkxvYXXg9Vgzbw2jx+W+XiaPlcu/sHlsWtXJ5tHb/I7No2/LKkaPny91PD5vkgvgiOKySUnN ySxLLdK3S+DK2PbhGkvBQcGKtcfUGhiP8XUxcnJICJhInPyzlw3CFpO4cG89kM3FISSwiFFi 78UlUE47k8Txr9uYQarYBAwlfr54zQRiiwhESrw7eokZpIhZ4BuTxMu/W4EcDg5hAT+Jj7eU QWpYBFQlNt37xwpi8wp4SNzc9IINpERCQEFiziQbEJNTwFPiZo86SIUQUEX/oSvMExh5FzAy rGIUTS1ILihOSs811CtOzC0uzUvXS87P3cQIDtRnUjsYVzZYHGIU4GBU4uFd0CQfIsSaWFZc mXuIUYKDWUmEN0haIUSINyWxsiq1KD++qDQntfgQozQHi5I474FW60AhgfTEktTs1NSC1CKY LBMHp1QDo6vZo3eRbrUOmzfsDl5Td745nSm59HZN9NHqp+sFl510WR587knu4oZjUT4Gmd/4 6m3UePLO+p/eFP15wl+T1jU75m4+Xr/fu0qg4e1Gkb1er11CH55X/c959nDyBFuVq1dWtzb8 +qNgztIUfXTJs3frguuzm2xF/DMY2y5K51xx773pnN11RomlOCPRUIu5qDgRAH+8BYtQAgAA Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Addition of a LED Flash Class extension entails the need for flash led specific device tree properties. The properties being added are: iout-torch, iout-flash, iout-indicator and flash-timeout. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Stephen Warren Cc: Grant Likely Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala --- Documentation/devicetree/bindings/leds/common.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 2d88816..40f4b9a 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -3,6 +3,17 @@ Common leds properties. Optional properties for child nodes: - label : The label for this LED. If omitted, the label is taken from the node name (excluding the unit address). +- iout-torch : Array of maximum intensities in microamperes of the torch + led currents in order from sub-led 0 to N-1, where N is the number + of torch sub-leds exposed by the device +- iout-flash : Array of maximum intensities in microamperes of the flash + led currents in order from sub-led 0 to N-1, where N is the number + of flash sub-leds exposed by the device +- iout-indicator : Array of maximum intensities in microamperes of + the indicator led currents in order from sub-led 0 to N-1, + where N is the number of indicator sub-leds exposed by the device +- flash-timeout : timeout in microseconds after which flash led + is turned off - linux,default-trigger : This parameter, if present, is a string defining the trigger assigned to the LED. Current triggers are: @@ -19,5 +30,10 @@ Examples: system-status { label = "Status"; linux,default-trigger = "heartbeat"; + iout-torch = <500 500>; + iout-flash = <1000 1000>; + iout-indicator = <100 100>; + flash-timeout = <1000>; + ... };