From patchwork Tue Mar 31 13:52:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 6130231 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 69AC2BF4A6 for ; Tue, 31 Mar 2015 13:53:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7D4E6201BB for ; Tue, 31 Mar 2015 13:53:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 83A3720149 for ; Tue, 31 Mar 2015 13:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753815AbbCaNxs (ORCPT ); Tue, 31 Mar 2015 09:53:48 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:36160 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbbCaNxr (ORCPT ); Tue, 31 Mar 2015 09:53:47 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NM200FJEX9LFD20@mailout2.samsung.com>; Tue, 31 Mar 2015 22:53:45 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-98-551aa6e9571e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FB.32.20081.9E6AA155; Tue, 31 Mar 2015 22:53:45 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NM200JI4X7ZTQ90@mmp1.samsung.com>; Tue, 31 Mar 2015 22:53:45 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org Cc: kyungmin.park@samsung.com, pavel@ucw.cz, cooloney@gmail.com, rpurdie@rpsys.net, sakari.ailus@iki.fi, s.nawrocki@samsung.com, Jacek Anaszewski , Sakari Ailus , devicetree@vger.kernel.org Subject: [PATCH v4 01/12] DT: leds: Improve description of flash LEDs related properties Date: Tue, 31 Mar 2015 15:52:37 +0200 Message-id: <1427809965-25540-2-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1427809965-25540-1-git-send-email-j.anaszewski@samsung.com> References: <1427809965-25540-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrALMWRmVeSWpSXmKPExsVy+t9jAd2Xy6RCDeatkrc4unMik8X8I+dY LXqvPme0ONv0ht1i65t1jBY9G7ayWtw9dZTNYveup6wWh9+0s1qc2b+SzeLTlm9MDtweO2fd Zfc4/HUhi8e8k4Eee+b/YPXo27KK0WPF6u/sHp83yQWwR3HZpKTmZJalFunbJXBlnO+fw1Sw T7BiS/NUtgbG37xdjBwcEgImEq86zbsYOYFMMYkL99azdTFycQgJLGKUuLf/HBOE85NR4sXq VhaQKjYBQ4mfL14zgdgiAtYSsw5NZwEpYhb4zSjR8+w8WEJYIEriTOduRhCbRUBV4vKT78wg Nq+Ah8SXP3eYITYrSMyZZAMS5hTwlOhctZMdxBYCKvn8dg/7BEbeBYwMqxhFUwuSC4qT0nMN 9YoTc4tL89L1kvNzNzGCw/GZ1A7GlQ0WhxgFOBiVeHgv3JMMFWJNLCuuzD3EKMHBrCTC+3Oi VKgQb0piZVVqUX58UWlOavEhRmkOFiVxXiX7thAhgfTEktTs1NSC1CKYLBMHp1QDo4CExMtu fWNJ8XITTflNiYvUX1/fveDuh6XXmpvVpTI+bLqmM0PqEKvXjp1dVa83OMWd2CDNsCpj4vdE i/MGszXmu2kkh/CoL7e6cDRo4aJdE3yFVwjenpzb2Jt+89bR/uK8C2lKlhrJmk0FNe1pGnmr 3z3dGOL0xyEj3cVuSfrjWQYP1x7dosRSnJFoqMVcVJwIACfaxsFDAgAA 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 Description of flash LEDs related properties was not precise regarding the state of corresponding settings in case a property is missing. Add relevant statements. Removed is also the requirement making the flash-max-microamp property obligatory for flash LEDs. It was inconsistent as the property is defined as optional. Devices which require the property will have to assert this in their DT bindings. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie Cc: Pavel Machek Cc: Sakari Ailus Cc: devicetree@vger.kernel.org Acked-by: Pavel Machek --- Documentation/devicetree/bindings/leds/common.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 747c538..21a25e4 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -29,13 +29,15 @@ Optional properties for child nodes: "ide-disk" - LED indicates disk activity "timer" - LED flashes at a fixed, configurable rate -- max-microamp : maximum intensity in microamperes of the LED - (torch LED for flash devices) -- flash-max-microamp : maximum intensity in microamperes of the - flash LED; it is mandatory if the LED should - support the flash mode -- flash-timeout-us : timeout in microseconds after which the flash - LED is turned off +- max-microamp : Maximum intensity in microamperes of the LED + (torch LED for flash devices). If omitted this will default + to the maximum current allowed by the device. +- flash-max-microamp : Maximum intensity in microamperes of the flash LED. + If omitted this will default to the maximum + current allowed by the device. +- flash-timeout-us : Timeout in microseconds after which the flash + LED is turned off. If omitted this will default to the + maximum timeout allowed by the device. Examples: