From patchwork Mon Dec 22 11:45:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 423366 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 C32CF14007D for ; Mon, 22 Dec 2014 22:45:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754134AbaLVLpT (ORCPT ); Mon, 22 Dec 2014 06:45:19 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36930 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbaLVLpS (ORCPT ); Mon, 22 Dec 2014 06:45:18 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 12DD081AD3; Mon, 22 Dec 2014 12:45:14 +0100 (CET) Date: Mon, 22 Dec 2014 12:45:14 +0100 From: Pavel Machek To: j.anaszewski@samsung.com, sakari.ailus@iki.fi, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-doc@vger.kernel.org, cooloney@gmail.com, rpurdie@rpsys.net, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, rob@landley.net Subject: [PATCHv2] DT: leds: Add flash LED devices related properties (fwd) Message-ID: <20141222114514.GA20386@amd> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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: max-microamp, flash-max-microamp, flash-timeout-microsec. Signed-off-by: Pavel Machek Acked-by: Sakari Ailus Acked-by: Jacek Anaszewski Acked-by: Rob Herring --- This will allow me to add device tree support for adp1653 i2c flash LED driver, and allow Jacek Anaszewski to add support for more LED drivers.. Rob Herring requested to change microsec to us. diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 2d88816..e9acbbc 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -14,6 +14,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 + + Examples: system-status { @@ -21,3 +30,10 @@ system-status { linux,default-trigger = "heartbeat"; ... }; + +camera-flash { + label = "Flash"; + max-microamp = <50000>; + flash-max-microamp = <320000>; + flash-timeout-microsec = <500000>; +}