From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753031AbcI1KEt (ORCPT ); Wed, 28 Sep 2016 06:04:49 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36793 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752186AbcI1KEj (ORCPT ); Wed, 28 Sep 2016 06:04:39 -0400 Reply-To: florian.vaussard@gmail.com Subject: Re: [PATCH v3 1/2] leds: ncp5623: Add device tree binding documentation References: <1474025672-5040-1-git-send-email-florian.vaussard@heig-vd.ch> <1474025672-5040-2-git-send-email-florian.vaussard@heig-vd.ch> <20160924115823.GA8696@amd> To: Jacek Anaszewski , Pavel Machek Cc: devicetree@vger.kernel.org, Richard Purdie , Jacek Anaszewski , Rob Herring , Mark Rutland , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Florian Vaussard From: Florian Vaussard Message-ID: Date: Wed, 28 Sep 2016 12:04:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Jacek, Le 24. 09. 16 à 21:06, Jacek Anaszewski a écrit : > On 09/24/2016 01:58 PM, Pavel Machek wrote: >> Hi! >> >>> +Example >>> +======= >>> + >>> +led1: ncp5623@38 { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + compatible = "onnn,ncp5623"; >>> + reg = <0x38>; >>> + onnn,led-iref-microamp = <10>; >>> + >>> + led1r@0 { >>> + label = "ncp:power:red"; >>> + linux,default-trigger = "default-on"; >> ... >>> + led1b@1 { >>> + label = "ncp:power:blue"; >>> + reg = <1>; >> >> Actually... the three LEDs are packaged such as this is one colorful >> light to the user, right? Some day we'll need to group them, so that >> kernel can automatically tell this is one led, and probably add extra >> attributes, such as values that produce white light. > > We could try out the trigger approach we discussed few months ago. > Unfortunately I currently don't have enough time to propose the > implementation. Probably this work could be done on the occasion of > addition of RGB LED class driver like this, if the author had free > bandwidth for that. > Unfortunately my bandwidth is pretty well used at the moment :) Best regards, Florian