From patchwork Wed Apr 15 06:48:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 6218941 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 687189F2EC for ; Wed, 15 Apr 2015 06:49:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7AC8020361 for ; Wed, 15 Apr 2015 06:49:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 851DC20379 for ; Wed, 15 Apr 2015 06:49:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752896AbbDOGti (ORCPT ); Wed, 15 Apr 2015 02:49:38 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:17013 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964836AbbDOGtY (ORCPT ); Wed, 15 Apr 2015 02:49:24 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NMU00FD05MBW280@mailout2.samsung.com>; Wed, 15 Apr 2015 15:49:23 +0900 (KST) X-AuditID: cbfee61b-f79536d000000f1f-ff-552e09f2fe18 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 10.66.03871.2F90E255; Wed, 15 Apr 2015 15:49:22 +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 <0NMU00K795LELQ80@mmp2.samsung.com>; Wed, 15 Apr 2015 15:49:22 +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 v5 04/10] DT: Add documentation for the Skyworks AAT1290 Date: Wed, 15 Apr 2015 08:48:34 +0200 Message-id: <1429080520-10687-5-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1429080520-10687-1-git-send-email-j.anaszewski@samsung.com> References: <1429080520-10687-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKLMWRmVeSWpSXmKPExsVy+t9jQd1PnHqhBgsarC2O7pzIZDH/yDlW i96rzxktzja9YbfY+mYdo0XPhq2sFndPHWWz2L3rKavF4TftrBZn9q9kc+Dy2DnrLrvH4a8L WTz2zP/B6tG3ZRWjx4rV39k9Pm+SC2CL4rJJSc3JLEst0rdL4MqYducCc8E64YoLt2awNzC+ 5O9i5OCQEDCROLOSt4uRE8gUk7hwbz1bFyMXh5DAdEaJlzt6oJyfjBLzr3xjBKliEzCU+Pni NROILSJgLTHr0HQWEJtZ4AyjxL992iBDhQU8JNZNjwMJswioSvzunwpWwgsUPrf5NQvEXgWJ OZNsQMKcAp4S935uYAOxhYBKWjrPMk5g5F3AyLCKUTS1ILmgOCk910ivODG3uDQvXS85P3cT IzjwnknvYFzVYHGIUYCDUYmHd8EC3VAh1sSy4srcQ4wSHMxKIrzGf4BCvCmJlVWpRfnxRaU5 qcWHGKU5WJTEeefoyoUKCaQnlqRmp6YWpBbBZJk4OKUaGFnixO2WOxkYS/XMSrlp2sCWPEN0 EdupyQUJ24XeHOl6Uev85fq786xsbaZd0xlCmdbV3573oWQRk4+Nzj1RTr/+PVxS/d0S/3wn LqnT3sM94WR2VFqP5tPPgs+D32Z81Gtzy7B/4sOyK7ji+LQXZ7735PbIFM2oMtnTIfnx+MZZ mjyuXRXnlViKMxINtZiLihMBiwGO2zgCAAA= 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 Cc: Bryan Wu Cc: Richard Purdie Cc: devicetree@vger.kernel.org Acked-by: Sakari Ailus --- .../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>; + }; +};