From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755880AbbCBWD6 (ORCPT ); Mon, 2 Mar 2015 17:03:58 -0500 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:38701 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755764AbbCBWDx (ORCPT ); Mon, 2 Mar 2015 17:03:53 -0500 Date: Tue, 3 Mar 2015 00:03:15 +0200 From: Sakari Ailus To: Bryan Wu Cc: Ingi Kim , Jacek Anaszewski , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "rpurdie@rpsys.net" , Thierry Reding , p.zabel@pengutronix.de, Andrew Lunn , Greg Kroah-Hartman , florian.vaussard@epfl.ch, arno@natisbad.org, kuninori.morimoto.gx@renesas.com, hytszk@gmail.com, antonynpavlov@gmail.com, "devicetree@vger.kernel.org" , lkml , Linux LED Subsystem , "sw0312.kim@samsung.com" , ideal.song@samsung.com Subject: Re: [PATCH 0/3] Add ktd2692 Flash LED driver Message-ID: <20150302220315.GU6539@valkosipuli.retiisi.org.uk> References: <1424998891-25591-1-git-send-email-ingi2.kim@samsung.com> <54F02DF5.1000706@samsung.com> <54F40DDF.8070708@samsung.com> <20150302091530.GQ6539@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bryan, On Mon, Mar 02, 2015 at 12:07:42PM -0800, Bryan Wu wrote: > On Mon, Mar 2, 2015 at 1:15 AM, Sakari Ailus wrote: > > H Ingi, > > > > On Mon, Mar 02, 2015 at 04:14:39PM +0900, Ingi Kim wrote: > >> Hi Jacek > >> > >> On 2015년 02월 27일 17:42, Jacek Anaszewski wrote: > >> > Hi Ingi, > >> > > >> > On 02/27/2015 02:01 AM, Ingi Kim wrote: > >> >> This patch supports KTD2692 flash LED driver > >> >> > >> >> Ingi Kim (3): > >> >> of: Add vendor prefix for Kinetic technologies > >> >> leds: ktd2692: add device tree bindings for ktd2692 > >> >> leds: Add ktd2692 flash LED driver > >> >> > >> >> .../devicetree/bindings/leds/leds-ktd2692.txt | 19 ++ > >> >> .../devicetree/bindings/vendor-prefixes.txt | 1 + > >> >> drivers/leds/Kconfig | 8 + > >> >> drivers/leds/Makefile | 1 + > >> >> drivers/leds/leds-ktd2692.c | 245 ++++++++++++++++++++ > >> >> 5 files changed, 274 insertions(+) > >> >> create mode 100644 Documentation/devicetree/bindings/leds/leds-ktd2692.txt > >> >> create mode 100644 drivers/leds/leds-ktd2692.c > >> >> > >> > > >> > In your device tree binding documentation there is torch-gpio mentioned, > >> > but you seem not to use it in the driver. > >> > > >> > We have already LED Flash class (/drivers/leds/led-class-flash.c) for > >> > this type of devices, which handles both torch and flash modes > >> > (flash_strobe sysfs attribute is provided for strobing the flash). > >> > > >> > The reference drivers using LED Flash class are still pending [1], but I > >> > think that at least leds-aat1290 driver is almost ready for merging. > >> > It controls very similar device to yours. > >> > > >> > Another advantage of using LED Flash class is that it has been designed > >> > to be compatible with Video for Linux 2 subsystem, which will allow for registering LED Flash class devices as a V4L2 sub-devices. > >> > > >> > Adding Sakari. > >> > > >> > >> Ok, I'll check LED Flash class, and add torch-gpio > > > > Many LED flash chips include a hardware pin for torch control but few really > > need it. If you don't, i.e. you can implement the torch using the control bus > > instead, I think I'd probably drop it from the chip's DT bindings. > > > > Ingi, please follow Jacek's advice to use LED Flash class interface. > I'm reviewing those leds flash drivers and probably merge them soon. > > Jacek and Sakari thanks for the review. > > Sakari, so what's the control bus your mentioned here? I wasn't cc'd in the original patch so I didn't know whether it was I2C or not. Doesn't appear to be. -- Regards, Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk