From patchwork Tue Apr 28 07:18:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 6286211 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 5BA98BEEE1 for ; Tue, 28 Apr 2015 07:21:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B5C22037E for ; Tue, 28 Apr 2015 07:21:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E04520374 for ; Tue, 28 Apr 2015 07:21:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753281AbbD1HVG (ORCPT ); Tue, 28 Apr 2015 03:21:06 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:50984 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752756AbbD1HVE (ORCPT ); Tue, 28 Apr 2015 03:21:04 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNI00M369R2C950@mailout3.samsung.com>; Tue, 28 Apr 2015 16:21:02 +0900 (KST) X-AuditID: cbfee61a-f79516d000006302-af-553f34de27c6 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 71.9E.25346.ED43F355; Tue, 28 Apr 2015 16:21:02 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNI00E0Q9Q3KG10@mmp2.samsung.com>; Tue, 28 Apr 2015 16:21:01 +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 , devicetree@vger.kernel.org Subject: [PATCH v6 04/10] DT: Add documentation for the Skyworks AAT1290 Date: Tue, 28 Apr 2015 09:18:44 +0200 Message-id: <1430205530-20873-5-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1430205530-20873-1-git-send-email-j.anaszewski@samsung.com> References: <1430205530-20873-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKLMWRmVeSWpSXmKPExsVy+t9jQd17JvahBouaZC2O7pzIZDH/yDlW i96rzxktzja9YbfY+mYdo0XPhq2sFndPHWWz2L3rKavF4TftrBZn9q9kc+Dy2DnrLrvH4a8L WTz2zP/B6tG3ZRWjx4rV39k9Pm+SC2CL4rJJSc3JLEst0rdL4MpY3XaPteCpcMWVH3kNjLMF uhg5OSQETCQmXP/ACGGLSVy4t56ti5GLQ0hgOqPEmbu3mCCcn4wSH3Z/ZgWpYhMwlPj54jUT iC0iYC0x69B0FhCbWeAMo8S/fdogtrCAh8Tds4/A6lkEVCXO9p0G28ALFD9wswPI5gDapiAx Z5INiMkp4Clx4rYjSIUQUEXX8fdMExh5FzAyrGIUTS1ILihOSs811CtOzC0uzUvXS87P3cQI DrxnUjsYVzZYHGIU4GBU4uGdeNsuVIg1say4MvcQowQHs5II7xJx+1Ah3pTEyqrUovz4otKc 1OJDjNIcLErivHN05UKFBNITS1KzU1MLUotgskwcnFINjBavFrx2FdnVujmxt2LOvuDVPOp3 FObsU/xhySK188rZ8zHnDHZc2rXNw04w95N9Wp7+i03VyoudreRtL0Wvmh0UYqitsH/y9q5H 0k0b1++U672xUeDyxNXu55eVRHn3dG68/uv4+vTHyZVWm9qV0zXnK1xo3J0cMHEfu65parWb tsidA4/s+JVYijMSDbWYi4oTAfBtWEw4AgAA 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 1.5A Step-Up Current Regulator for Flash LEDs. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Acked-by: Sakari Ailus Cc: Bryan Wu Cc: Richard Purdie Cc: devicetree@vger.kernel.org --- .../devicetree/bindings/leds/leds-aat1290.txt | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-aat1290.txt diff --git a/Documentation/devicetree/bindings/leds/leds-aat1290.txt b/Documentation/devicetree/bindings/leds/leds-aat1290.txt new file mode 100644 index 0000000..ef88b9c --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-aat1290.txt @@ -0,0 +1,41 @@ +* Skyworks Solutions, Inc. AAT1290 Current Regulator for Flash LEDs + +The device is controlled through two pins: FL_EN and EN_SET. The pins when, +asserted high, enable flash strobe and movie mode (max 1/2 of flash current) +respectively. + +Required properties: + +- compatible : Must be "skyworks,aat1290". +- flen-gpios : Must be device tree identifier of the flash device FL_EN pin. +- enset-gpios : Must be device tree identifier of the flash device EN_SET pin. + +A discrete LED element connected to the device must be represented by a child +node - see Documentation/devicetree/bindings/leds/common.txt. + +Required properties of the LED child node: +- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt +- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt + Maximum flash LED supply current can be calculated using + following formula: I = 1A * 162kohm / Rset. +- flash-timeout-us : see Documentation/devicetree/bindings/leds/common.txt + Maximum flash timeout can be calculated using following + formula: T = 8.82 * 10^9 * Ct. + +Optional properties of the LED child node: +- label : see Documentation/devicetree/bindings/leds/common.txt + +Example (by Ct = 220nF, Rset = 160kohm): + +aat1290 { + compatible = "skyworks,aat1290"; + flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; + enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; + + camera_flash: flash-led { + label = "aat1290-flash"; + led-max-microamp = <520833>; + flash-max-microamp = <1012500>; + flash-timeout-us = <1940000>; + }; +};