From patchwork Fri Dec 26 20:33:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 5543791 Return-Path: X-Original-To: patchwork-linux-arm@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 3169BBEEA8 for ; Fri, 26 Dec 2014 20:36:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4AF5120204 for ; Fri, 26 Dec 2014 20:36:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B1E2201ED for ; Fri, 26 Dec 2014 20:36:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y4baK-0007pN-9V; Fri, 26 Dec 2014 20:34:08 +0000 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y4baE-0007md-LX for linux-arm-kernel@lists.infradead.org; Fri, 26 Dec 2014 20:34:04 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id E324781D79; Fri, 26 Dec 2014 21:33:40 +0100 (CET) Date: Fri, 26 Dec 2014 21:33:40 +0100 From: Pavel Machek To: Rob Herring Subject: Re: [PATCHv2] media: i2c/adp1653: devicetree support for adp1653 Message-ID: <20141226203340.GA1791@amd> References: <20141203214641.GA1390@amd> <20141224223434.GA20669@amd> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141226_123403_078902_E4B3BA07 X-CRM114-Status: GOOD ( 21.85 ) X-Spam-Score: -2.3 (--) Cc: Mark Rutland , Tony Lindgren , Sebastian Reichel , freemangordon@abv.bg, khilman@kernel.org, Sebastian Reichel , Kumar Gala , "linux-media@vger.kernel.org" , "devicetree@vger.kernel.org" , Pawel Moll , Ian Campbell , Bryan Wu , Rob Herring , linux-omap , Jacek Anaszewski , linux-arm-kernel , Aaro Koskinen , kernel list , sakari.ailus@iki.fi, Benoit Cousson , Pali =?iso-8859-1?Q?Roh=E1r?= , Mauro Carvalho Chehab X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Hi! > > We are moving to device tree support on OMAP3, but that currently > > breaks ADP1653 driver. This adds device tree support, plus required > > documentation. > > > > Signed-off-by: Pavel Machek > > > > --- > > > > Changed -microsec to -us, as requested by devicetree people. > > > > Fixed checkpatch issues. > > > > diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt > > index 2d88816..2c6c7c5 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-microsec : timeout in microseconds after which the flash > > + LED is turned off > > Doesn't all this go in your flash led binding patch? No, I should not have included this part. > > +Example: > > + > > + adp1653: led-controller@30 { > > + compatible = "adi,adp1653"; > > + reg = <0x30>; > > + gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; /* 88 */ > > + > > + flash { > > + flash-timeout-us = <500000>; > > + flash-max-microamp = <320000>; > > + max-microamp = <50000>; > > + }; > > + indicator { > > These are different LEDs or different modes? flash & indicator are different LEDs. One is white, one is red. Flash can be used as a flash and as a torch. > > + max-microamp = <17500>; > > This is a bit inconsistent. The binding says this is for flash LEDs > torch mode, but I see no reason why it can't be common. Can you update > the binding doc to be clear here. By inconsisnent, you mean you want patch below? > Also, aren't you missing label properties? label is optional, and as my driver does not yet use it, I forgot about it. Signed-off-by: Pavel Machek index 2c6c7c5..92d4dac 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -15,7 +15,6 @@ Optional properties for child nodes: "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