Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp21841imu; Thu, 8 Nov 2018 13:08:58 -0800 (PST) X-Google-Smtp-Source: AJdET5cT7+aCOGEhBmpDYU31V2vUMk/A83dqCr9RZhaAOqDhMntxUKjjTiNJPNvDJU++8y8jyV4s X-Received: by 2002:a17:902:4503:: with SMTP id m3-v6mr6084458pld.217.1541711338743; Thu, 08 Nov 2018 13:08:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541711338; cv=none; d=google.com; s=arc-20160816; b=tNiDqOtSgwGN/JSr9FOaWm33DGVjHxnJ/UcRQJ93UIU40Q2v8UsUHUsizpAAykBqB1 C+PzrTfqAef2hiWkwTfUi/sWIzYdXqIyyFaVic5V650hhIr6lPTItzsTlExOt9CCxGI/ 6SSg5WIloICKrENKwHXjvt7479mZja+0TbcR4W6TQhzaiH06wCIRpVHYaPkD+oU04tU/ F202n97pKXmnV8WbA7YxoxknO5rbPHgYJ+D/KCwxnMRvH36akyx8VnW87Dm/vEGaYfKz IOeBBfxK6QZ1PnfMHx44XtiDkRFe/QkekGqC2gYNMdkioMyj0oHbHtC83WfgKQXL06Ws j70A== 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=MlaUlKrjYIJefiXlZWY+jsWDZbVPJmf+oZrOCRLez64=; b=DK4WfM1fRxhzNAkxQE6jfFXrQa+R8fjVlSYGqNhyafr70i1vDLyw40ksh8LwiYg8v+ 7NskmBg2iEAcIyLiwvDXMdJXOZ6+SUcwIA/878XOir6CuIc9uTuj7ItJyWwVNPSMF5VK gJqlP6c1J17N6isk0RCzcl6mHlC5cF2IJK8kSW3BOy0JNtFdCN26ZkSZTkWwFpCC7tsL CEfzXq3NljGag57Kn1ZOlArxxR9isUOlLpJdSqPlyWOHpX0XS21MuxrbIyOZLWvL1lnT VCzZ5MocdKLBNPkZdZSSh4+EdMNKrRFkvMbOmviMwBMt9dCX0p3RSRKlgk6bNe1N/wvf Ediw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UemQzDjZ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s61-v6si5181723plb.107.2018.11.08.13.08.42; Thu, 08 Nov 2018 13:08:58 -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=@ti.com header.s=ti-com-17Q1 header.b=UemQzDjZ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727406AbeKIGpi (ORCPT + 99 others); Fri, 9 Nov 2018 01:45:38 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:57340 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbeKIGpi (ORCPT ); Fri, 9 Nov 2018 01:45:38 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wA8L842I102428; Thu, 8 Nov 2018 15:08:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1541711284; bh=MlaUlKrjYIJefiXlZWY+jsWDZbVPJmf+oZrOCRLez64=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=UemQzDjZ+UOw7ZjLBqKBMHCcmKqgMhH6+iAKI8G2Th02F8n9wgfIcr4w0UgyvqXvQ vf0809fEZFd1pKFwuzB4ZBwQSy1OH9nRh30IE3bK+tX7se7QuquFZ4vHHmRmD+zAan G3fJWclpDpek42/ufkJPytnko6s/eAzeYR15XI0I= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wA8L84fs005116 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Nov 2018 15:08:04 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 8 Nov 2018 15:08:03 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 8 Nov 2018 15:08:03 -0600 Received: from [172.22.187.225] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wA8L83oP028418; Thu, 8 Nov 2018 15:08:03 -0600 Subject: Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties To: Jacek Anaszewski , CC: , , , , 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: Dan Murphy Message-ID: <81884969-956c-9d21-4114-4cb10d1e90e3@ti.com> Date: Thu, 8 Nov 2018 15:08:02 -0600 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: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Dan -- ------------------ Dan Murphy