From patchwork Wed Aug 20 13:44:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 4751821 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9A8039F344 for ; Wed, 20 Aug 2014 13:51:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 12D3320103 for ; Wed, 20 Aug 2014 13:51:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D7392015A for ; Wed, 20 Aug 2014 13:51:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752169AbaHTNrE (ORCPT ); Wed, 20 Aug 2014 09:47:04 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:36229 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753080AbaHTNop (ORCPT ); Wed, 20 Aug 2014 09:44:45 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAL00I4KY6KV470@mailout1.samsung.com>; Wed, 20 Aug 2014 22:44:44 +0900 (KST) X-AuditID: cbfee61a-f79e46d00000134f-0b-53f4a64b7b3d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7E.A7.04943.B46A4F35; Wed, 20 Aug 2014 22:44:44 +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 <0NAL00DKXY5XUY30@mmp1.samsung.com>; Wed, 20 Aug 2014 22:44:43 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@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 v5 04/10] DT: leds: Add flash led devices related properties Date: Wed, 20 Aug 2014 15:44:13 +0200 Message-id: <1408542259-415-5-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1408542259-415-1-git-send-email-j.anaszewski@samsung.com> References: <1408542259-415-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVy+t9jAV2fZV+CDf6sZrXYOGM9q8X8I+dY LfrfLGS1eHVmI5vFuVcrGS16rz5ntDjb9Ibd4vKuOWwWW9+sY7To2bCV1WLp9YtMFhOmr2Wx aN17hN3ixvQWVgc+jzXz1jB6XO7rZfJYufwLm8emVZ1sHr3N79g8+rasYvT4+VLH4/MmuQCO KC6blNSczLLUIn27BK6MbR+usRQcFKxYe0ytgfEYXxcjB4eEgInEhFf5XYycQKaYxIV769m6 GLk4hAQWMUqs7D/LDuG0M0ms39jFAlLFJmAo8fPFayYQW0SgXKLn/TOwDmaBb0wSL/9uZQZJ CAsESKze/4YdxGYRUJW4s+ofWDOvgJvE2mcnmCE2K0jMmWQDYnIKuEtsea8CUiEEVHH63WyW CYy8CxgZVjGKphYkFxQnpeca6hUn5haX5qXrJefnbmIEh+wzqR2MKxssDjEKcDAq8fA2LPgS LMSaWFZcmXuIUYKDWUmEt70TKMSbklhZlVqUH19UmpNafIhRmoNFSZz3QKt1oJBAemJJanZq akFqEUyWiYNTqoFRd3b1XvfbRnyy/M/YPDRPOPjmXom85GG46PO2qZtusSqtODA5u+HR1b9V 11KjHFfwl59slYvQEH+1oGXaihM57e7xL5tagqY9nvRzcsWR3u2zt3RtUVmjy1hzeF/1it6i d9v6mib0nFg/a/ZnMeauu2e4j8uGipd+sun/Nu9q9hP+VRPW3z1zS4mlOCPRUIu5qDgRAEaq wwxVAgAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 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>; + ... };