Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1166648imu; Fri, 9 Nov 2018 12:02:54 -0800 (PST) X-Google-Smtp-Source: AJdET5fTa+Iw39dylwqudnRZr5tKlcIQrlr3wMBBW+BtEsMl3y1UjorynhF/xJAhnDhky1UEnoiR X-Received: by 2002:a65:4049:: with SMTP id h9mr8550612pgp.304.1541793774602; Fri, 09 Nov 2018 12:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541793774; cv=none; d=google.com; s=arc-20160816; b=FGwHL8zEk8XzXvMWm9IndrGspAnEbgAjt5wCKIzk6wkXiJLG352AwtvXVWTguh1crN UD+mwrfC63RvmCt1s6u0fB6jPDkQKgwNrx5350KrFZdDxGvlKhY+ueN6xFnqWMyKc3Ot M+sba/2d7anoeO4JvZEzwZeRAWGUjU6U6P9gA4v3OBt3Pt8EWGdqRpPDh3iG5HxurvZM 0iubNDAoTEZXYEPQMTxNXh+d89ynx4hRPMvqbdtbSbmL3sEdbvtx8oITrfBGU3lbswyD 75FlxTZnJcIKOWbWhoOkit1kA1OvYXrR17rU9RgZGEkyH7PZqEZTMQyy6qxm4l5sOlNB Vb8Q== 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=ioxSwm0dGrklDc0TwkbOc8BCspbfINnsEVGDj6FBrbM=; b=GBpmiYmf0LEXAiCbZM71kFdHct+AC6SDPesMpKvmzig/zIZx7ASwgaEyHEMQ5/pgr+ so7pIU0T6V+/xQQ2Zj8/Siu2UZqOlw6TnF2yJgBaPhYFFZJrGj0//KRFZgKWjS5vA081 05EOoYV6FnFdu29P/Amgq87wLFD/uUFFjfUiKijtuZL+N6A07aFB9SJsDxYjMzo3aWgh ZkV3V8kH9I+E9D4gL5oTd4QdUzdghmhX6qcuEBot3733sF8/z2/gGD3nQtjPmqrff/in lDMNDglc1DziSeIQ2FqGaTT9O874PkQPxPwCUU43GftsMhr5YD66596Ha3iAoD+d88vZ nJ+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B1BQtIUr; 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 p5-v6si7126191pga.576.2018.11.09.12.02.37; Fri, 09 Nov 2018 12:02:54 -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=B1BQtIUr; 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 S1728621AbeKJFm1 (ORCPT + 99 others); Sat, 10 Nov 2018 00:42:27 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45643 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbeKJFm1 (ORCPT ); Sat, 10 Nov 2018 00:42:27 -0500 Received: by mail-wr1-f67.google.com with SMTP id k15-v6so3093638wre.12; Fri, 09 Nov 2018 12:00:21 -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=ioxSwm0dGrklDc0TwkbOc8BCspbfINnsEVGDj6FBrbM=; b=B1BQtIUrCgGweUBnwx9iW4ANN5utcy3DnDX4LVLTV2LMcvgzBlR8/fyPUbGvGo+GU6 mT+Rm8sbPsNO9rBRg1f63MaFTMBGBi70SGqihKm2pps8d9lxHPlKF+Kn9iGqjhcQm6ii dxfkbj8uVVKjYVLtfWWWOv/dRIZzNDD2+BnpMhbv1aBX3j81pSdQnY9kfTKv4fNqJCgw OVz9Ss/JK7yWCn93EoLg7iJW06ZdV+m5XRdqu5yWqF0EMvcFGzgaS39SGZhPB20MOCty wfxVXgapWEVIj9a0ffSerIj2Ria1AktPJB8NR+Jmqpw1aLLeD141Z1H7G+3fnTf+JZjU 4cHA== 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=ioxSwm0dGrklDc0TwkbOc8BCspbfINnsEVGDj6FBrbM=; b=rpiCI6xUvLLAclkikLRNXYDuz62cJh139aim17zYtuQX4pe1cGBRPfZVJEz1OVa94A GZTx9JCfWOvfizvOYCZ//bNmiwY5a3hvhd+haxEh4JTeXq19i7UEsF8w3FSK1aNki/Ax daK4sbUtS0jKVi43Lim1zhvm+azRSeOWeox++an4czhLtNnP3g+WY/5NWYHnzYURluJ4 mv6VqMI5YPLCoNDhkXNvDqcU51TgJDd5rgw/4jci6xaKY7HVTE7kcZdWqQ/wvCQ4B6oS OMFOyhddifh+6RXdFsyBWBAPD3FxrKs3AV4XROuXThH3UrSyGTAicaXkGJcg40N3t9TN wdig== X-Gm-Message-State: AGRZ1gK6Tgjg+x7UJ3DH0CQnMdNYzyDrymzuT+X5SSVm6+lcHhVaw9Kw ArGVVvIExz5dwbJ9bRV7AhE= X-Received: by 2002:adf:cd0c:: with SMTP id w12-v6mr9587585wrm.67.1541793620603; Fri, 09 Nov 2018 12:00:20 -0800 (PST) Received: from [192.168.1.18] (coo53.neoplus.adsl.tpnet.pl. [83.31.194.53]) by smtp.gmail.com with ESMTPSA id e5-v6sm4954443wru.88.2018.11.09.12.00.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 12:00:19 -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> <81884969-956c-9d21-4114-4cb10d1e90e3@ti.com> From: Jacek Anaszewski Message-ID: Date: Fri, 9 Nov 2018 21:00:17 +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: <81884969-956c-9d21-4114-4cb10d1e90e3@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 10:08 PM, Dan Murphy wrote: > Jacek > > On 11/08/2018 02:47 PM, Jacek Anaszewski wrote: >> 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" ? :-) >> > > Amber or yellow. Red and green with a hint of blue or no blue depending on how dark you want it. > > You don't always have to turn the LED on full to mix. Sometimes lowering the level of the stronger colors like red > and upping weaker colors like green you can different color That's obvious. I was rather curious what you had on mind by mentioning four colors (red, green, blue and white) in the context of "amber". Just to remind: we're still talking about LED names, not the values. -- Best regards, Jacek Anaszewski