Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1890imu; Thu, 8 Nov 2018 12:48:56 -0800 (PST) X-Google-Smtp-Source: AJdET5cp/hRlUE9Ix2fGyuy/5otc7BoFShQbpDQCQMNHosKQUTv1kYiQ1KO9H6ku22/pB4OgKQCk X-Received: by 2002:a62:1c53:: with SMTP id c80-v6mr6044315pfc.14.1541710136452; Thu, 08 Nov 2018 12:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541710136; cv=none; d=google.com; s=arc-20160816; b=P2k5DGKqOjLh7FW8UjLUpU3e6xv4XOKalNYRhDvS6Qwoo3thENiPCXgw3dckWGdavX 7adDwIVPRdrJdZa/JzZ1VBTjK3He0jnZ2nn/DN9/A0bUMjOht3Ehn8MncO7xsWAKzeWT hdLMSNK+7wqCmg+ffZZUGlsvhFrw2PgOkJgZWy0j27cFu2VX2gN6Bc+DTrM108g24rED FsuF/NztgGIvEEbj3+NINVWrRcQYzLNHb+tNsiu8NuoJtiCYd+GFmsLKRkfm2Er+vpfx m2iK11O0ELBZt9P/fWQdjCO+IJ31k+hDe+SE+l/ZtWy/3ffIDrHIWidtLP1NOXg7wbaP XCgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=kEcdbfJ2HNYnRN0/FgfobUYeU6u6imgcWAdTBB9N4Jo=; b=eOC+onV/gy7Zlh8yfIgALOxI2IbUf0cUMA8WA2gni+QJ03AnwTra9Y09DZXFLEwI5A FDYUNKP3HM/DtnsoewOPjiiiXEFHshN95vrxGZhnKuNq7lwGPEnZO51/+ZQyra/2zUId 30I+XhO4pOpsPO9iMRUgQnMblf02ieG3oPAdLUKZSxhPExqgryNMPTZYjnOeV7ls2xCl BcJxx0Nk+NVxcXryTuqA91gbrfYvjIs31BjW0VAaRdP9o2hxh+Zp/MrW59/JZZ7EBY6Q 3pBgZq+6QGw1pVnINwFzCQO++87iin/ReyBqMeCqDi9aM2WULS9ldOflIoBtYrlw6CXp Yieg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=USKSNKLB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si441101pgn.32.2018.11.08.12.48.39; Thu, 08 Nov 2018 12:48:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=USKSNKLB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727438AbeKIGZM (ORCPT + 99 others); Fri, 9 Nov 2018 01:25:12 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:46904 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726999AbeKIGZM (ORCPT ); Fri, 9 Nov 2018 01:25:12 -0500 Received: by mail-lf1-f68.google.com with SMTP id f23so10662186lfc.13; Thu, 08 Nov 2018 12:47:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kEcdbfJ2HNYnRN0/FgfobUYeU6u6imgcWAdTBB9N4Jo=; b=USKSNKLB2W1MFEV/mpwGcpk/cj81e7Eeg42yS5PVpcJSDY8AuF3HH3NV/5b7z83DRD CrkV3Sry2f8wNPfMnk6kfFmSHTg8CByeHTlxL3gmJNeh0f6Spz5qWk/pF+hgo3OQDdiw HM76saJBeXTmsLS3HrD9gLl4LKgC0cYUyaNJIYxsXV8J2NtMqqgVlv2tPZPi2xyoaKna AU6i8z+jolqALZZe3F6tfUcRn9QQNysbQfSMiUDv0K2iUpnWEZDw0bSt5dgm5qdrpOaq oQeGp527gtf9iuewc4dA5GsUk/mjj/G5wCHti8mIowCKX9ms4MKx03m+HGpa275jYxF+ LAAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kEcdbfJ2HNYnRN0/FgfobUYeU6u6imgcWAdTBB9N4Jo=; b=XlygjNN6eEvbLNml7CZg0zz1FdbPTr0dUdYiKJbBRL4m0stKn5PCEPv7yIgTg1MrXI JzMB5GE1VFBXVnfUpddWZKavEZyfWzIgnmvWsBD/orZAaKqkkSKX2p/56VYXWMcgWQzM ZWzqBIUih6QhEt+kd01USslan3R01d7dA/vcaVaW1aocWOfgRRLajIe0bJAiLOTDPMoj 7+8i5gU80oiTYAbVk1FD6SBB3jw50T0/k3ur/Upcsz6Wedpeb9Hg1kZWYC63IF+QgRkl k2dLeP1QpfGQeEXVr+KP583l1R6xOVlcGIzRL3b8tuA0olAwuZP1ZOCRkVFhkpZoyUJU F6Iw== X-Gm-Message-State: AGRZ1gKOxPGi8at9Qhi0SPvCCMqdJSiTocODy3J4C4BnOxVnJtyuqBls Gfjva+IshbvrpkkhMH0UP80= X-Received: by 2002:a19:db4a:: with SMTP id s71mr3785578lfg.36.1541710078113; Thu, 08 Nov 2018 12:47:58 -0800 (PST) Received: from [192.168.1.18] (dkl219.neoplus.adsl.tpnet.pl. [83.24.15.219]) by smtp.gmail.com with ESMTPSA id o17sm843208lff.77.2018.11.08.12.47.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 12:47:57 -0800 (PST) Subject: Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties To: Dan Murphy , linux-leds@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pavel@ucw.cz, robh@kernel.org, Baolin Wang , Daniel Mack , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields , Xiaotong Lu References: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> <1541542052-10081-5-git-send-email-jacek.anaszewski@gmail.com> <26714494-06f8-163d-1ef8-75f75c25a467@ti.com> From: Jacek Anaszewski Message-ID: Date: Thu, 8 Nov 2018 21:47:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <26714494-06f8-163d-1ef8-75f75c25a467@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan, On 11/08/2018 07:00 PM, Dan Murphy wrote: > Jacek > > On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >> Introduce dedicated properties for conveying information about >> LED function and color. Mark old "label" property as deprecated. >> >> Signed-off-by: Jacek Anaszewski >> Cc: Baolin Wang >> Cc: Daniel Mack >> Cc: Dan Murphy >> Cc: Linus Walleij >> Cc: Oleh Kravchenko >> Cc: Sakari Ailus >> Cc: Simon Shields >> Cc: Xiaotong Lu >> --- >> Documentation/devicetree/bindings/leds/common.txt | 52 +++++++++++++++++++---- >> 1 file changed, 44 insertions(+), 8 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt >> index aa13998..3efc826 100644 >> --- a/Documentation/devicetree/bindings/leds/common.txt >> +++ b/Documentation/devicetree/bindings/leds/common.txt >> @@ -10,14 +10,20 @@ can influence the way of the LED device initialization, the LED components >> have to be tightly coupled with the LED device binding. They are represented >> by child nodes of the parent LED device binding. >> >> + >> Optional properties for child nodes: >> - led-sources : List of device current outputs the LED is connected to. The >> outputs are identified by the numbers that must be defined >> in the LED device binding documentation. >> +- function: LED functon. Use one of the LED_FUNCTION_* prefixed definitions >> + from the header include/dt-bindings/leds/functions.h. >> + If there is no matching LED_FUNCTION available, add a new one. >> +- color : Color of the LED. > > Should we define the colors too? There are only really 4. Red, green, blue and white. > > Generally varying colors are created base on the primary colors. Even the amber color No problem, I can add LED colors. However, I don't quite follow how the mix of base color strings would give "amber" ? :-) -- Best regards, Jacek Anaszewski