From patchwork Fri Nov 28 09:18:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 5402141 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EAB9DBEEA8 for ; Fri, 28 Nov 2014 09:23:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E2FD420145 for ; Fri, 28 Nov 2014 09:23:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C8DAD2013D for ; Fri, 28 Nov 2014 09:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbaK1JUz (ORCPT ); Fri, 28 Nov 2014 04:20:55 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:27343 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbaK1JUs (ORCPT ); Fri, 28 Nov 2014 04:20:48 -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 <0NFQ00B1PSMM8060@mailout1.samsung.com>; Fri, 28 Nov 2014 18:20:46 +0900 (KST) X-AuditID: cbfee61b-f79d76d0000024d6-60-54783e6e0c5e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E8.7C.09430.E6E38745; Fri, 28 Nov 2014 18:20:46 +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 <0NFQ00JKNSI8LB60@mmp2.samsung.com>; Fri, 28 Nov 2014 18:20:45 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: 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 , Andrzej Hajda , Lee Jones , SangYoung Son , Samuel Ortiz , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org Subject: [PATCH/RFC v8 11/14] DT: Add documentation for the mfd Maxim max77693 Date: Fri, 28 Nov 2014 10:18:03 +0100 Message-id: <1417166286-27685-12-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1417166286-27685-1-git-send-email-j.anaszewski@samsung.com> References: <1417166286-27685-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDLMWRmVeSWpSXmKPExsVy+t9jQd08u4oQg1e3JSxurTvHarFxxnpW i6M7JzJZzD8C5Pa/Wchq8fHeP1aLc69WMlr0Xn3OaHG26Q27xf2vRxktLu+aw2ax9c06Roue DVtZLZZev8hkcffUUTaLCdPXsli07j3CbrF711NWi8Nv2lktzuxfyWZxupvVQdRjzbw1jB6X +3qZPHbOusvusXL5FzaPw18XsnhsWtXJ5nHn2h42j3knAz32zP/B6tG3ZRWjx7OP75g9Vqz+ zu7xeZNcAG8Ul01Kak5mWWqRvl0CV8a8JxOYC74pVOz9u5S9gfGdVBcjB4eEgInEnznpXYyc QKaYxIV769m6GLk4hASmM0q0fGhhgnDamST+n33OAlLFJmAo8fPFayaQZhGBaIlLx+pBwswC +1kkPrSD2cICfhLTuncwgdgsAqoSxx8tYQWxeQU8Jc4tXccKsVdBYs4kG5AwJ1B47ue1LCBh IQEPiUWvUiYw8i5gZFjFKJpakFxQnJSea6RXnJhbXJqXrpecn7uJERwnz6R3MK5qsDjEKMDB qMTD+/NfeYgQa2JZcWXuIUYJDmYlEd5TX4FCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeW/czA0R EkhPLEnNTk0tSC2CyTJxcEo1MPpEp0lP6PCf17pdsfBBB8OsY2cYQtg3VS6ZILOgqPh/4b6C ix7qRbraJTu/xVxjfybiKsJ0QVUsdZFcfolzDEOFaBOvl9AD04i3GzU7tl6/bjnLcGaL6amP 91Qy52x13BigeviU5/2C2e2pJ/NebdB8tlJFc7HOpqxeDY5dOqsKelrKzSfGKLEUZyQaajEX FScCAJDOax+PAgAA 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 This patch adds device tree binding documentation for the flash cell of the Maxim max77693 multifunctional device. Signed-off-by: Jacek Anaszewski Signed-off-by: Andrzej Hajda Acked-by: Kyungmin Park Cc: Lee Jones Cc: SangYoung Son Cc: Samuel Ortiz Cc: Bryan Wu Cc: Richard Purdie Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: --- Documentation/devicetree/bindings/mfd/max77693.txt | 74 ++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/max77693.txt b/Documentation/devicetree/bindings/mfd/max77693.txt index 01e9f30..50a8dad 100644 --- a/Documentation/devicetree/bindings/mfd/max77693.txt +++ b/Documentation/devicetree/bindings/mfd/max77693.txt @@ -41,6 +41,62 @@ Optional properties: To get more informations, please refer to documentaion. [*] refer Documentation/devicetree/bindings/pwm/pwm.txt +- led-flash : the LED submodule device node + +There are two led outputs available - fled1 and fled2. Each of them can +control a separate led or they can be connected together to double +the maximum current for a single connected led. One led is represented +by one child node. + +Required properties: +- compatible : must be "maxim,max77693-flash" + +Optional properties: +- maxim,fleds : array of current outputs in order: fled1, fled2 + Note: both current outputs can be connected to a single led + Possible values: + 0 - the output is left disconnected, + 1 - a diode is connected to the output. +- maxim,trigger-type : Array of trigger types in order: flash, torch + Possible trigger types: + 0 - Rising edge of the signal triggers the flash/torch, + 1 - Signal level controls duration of the flash/torch. +- maxim,trigger : Array of flags indicating which trigger can activate given led + in order: fled1, fled2 + Possible flag values (can be combined): + 1 - FLASH pin of the chip, + 2 - TORCH pin of the chip, + 4 - software via I2C command. +- maxim,boost-mode : + In boost mode the device can produce up to 1.2A of total current + on both outputs. The maximum current on each output is reduced + to 625mA then. If there are two child led nodes defined then boost + is enabled by default. + Possible values: + 0 - no boost, + 1 - adaptive mode, + 2 - fixed mode. +- maxim,boost-vout : Output voltage of the boost module in millivolts. +- maxim,vsys-min : Low input voltage level in millivolts. Flash is not fired + if chip estimates that system voltage could drop below this level due + to flash power consumption. + +A child node must be defined per sub-led. + +Required properties of the LED child node: +- label : see Documentation/devicetree/bindings/leds/common.txt +- maxim,fled_id : identifier of the fled output the led is connected to: + 1 - FLED1, + 2 - FLED2. + +Optional properties of the LED child node: +- max-microamp : see Documentation/devicetree/bindings/leds/common.txt + Range: 15625 - 250000 +- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt + Range: 15625 - 1000000 +- flash-timeout-microsec : see Documentation/devicetree/bindings/leds/common.txt + Range: 62500 - 1000000 + Example: max77693@66 { compatible = "maxim,max77693"; @@ -73,4 +129,22 @@ Example: pwms = <&pwm 0 40000 0>; pwm-names = "haptic"; }; + + led_flash: led-flash { + compatible = "maxim,max77693-flash"; + maxim,fleds = <1 0>; + maxim,trigger = <7 0>; + maxim,trigger-type = <0 1>; + maxim,boost-mode = <0>; + maxim,boost-vout = <5000>; + maxim,vsys-min = <2400>; + + camera-flash { + maxim,fled_id = <1> + label = "max77693-flash"; + max-microamp = <250000>; + flash-max-microamp = <1000000>; + flash-timeout-microsec = <1000000>; + } + }; };