Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2908982rwe; Mon, 29 Aug 2022 02:25:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7W1uQVZuJZe4CxF8Ps7CtA0GdAWLh4YShOzRy0sWbDV23bXIIOFPAoy315zE13qU1i9mJX X-Received: by 2002:a17:906:959:b0:741:6f76:546f with SMTP id j25-20020a170906095900b007416f76546fmr4357256ejd.32.1661765145879; Mon, 29 Aug 2022 02:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661765145; cv=none; d=google.com; s=arc-20160816; b=OqsntHlO+q1OoFIf3DMdQIXThLkVwd66zN7zNhM4WcCpa3QsBB90pKSH6P3XXA7S00 6XD8xbIOPlCgB0iURdC7ZCwLDEa3pKl5sAcI3quMFdkGvkw9zMKIsVCcuwpzisfqSdSJ a+PhJ69bcdLyDt/uZrtwYh7J4mcrcoWFJHIKKU1sPDljQwk6ePuZtykCMAt84h22WNlQ una/gsFyjIUCYUe0GN885irdO4WRYShoFrUGceEurdjW71LDe2wtlZmrk0mQzpwB/fhF GEIgZ/B9Pl6QU7mrD3Nga8TChBVVOsaHg9myXlRrclhDqfAfW8U+0I7cOt7yc5ZmyxkQ Tw3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:references:mail-followup-to:message-id:subject :cc:to:from:date; bh=H2eOF03NBSmaU17qDoWZgfyldeAc40I3b5XIVTKnDU4=; b=YD13uBxjUQ5bXe3DAFIbybNVDequeovGvBTNdWkzDjJ5qf0EpbtQ/CixHV044SbyP5 P7Vtc/CM7x93C6j5mKBYT5ZToySqHVttDmBli/i1Jd7HDzxJpHh+OgAKMwpZEIAw50ue Pv3YUsPnj33oTbufWZpRH8+lWzcRmVnLMiNp0/at/QcsmxJmNVz/aOBrecFX8cTPrE8/ 080ebdc8EXL5XxFZmrrSlLDWVeYnpIiHyvrrKIbgSiLWiWtqq7lm7qyYQTXAliiFn0/5 Ig/gLD6dPn/KU/TwjjvVgf/9kLin+b7wJLOqWq4mq/9F5e4V7JBcqxlJQQvWJ8wcqqoZ Y16g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a50c201000000b00441df4d5525si6081574edf.106.2022.08.29.02.25.20; Mon, 29 Aug 2022 02:25:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229544AbiH2JRS (ORCPT + 99 others); Mon, 29 Aug 2022 05:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbiH2JRQ (ORCPT ); Mon, 29 Aug 2022 05:17:16 -0400 Received: from mail.thorsis.com (mail.thorsis.com [92.198.35.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C1275AA07 for ; Mon, 29 Aug 2022 02:17:14 -0700 (PDT) Date: Mon, 29 Aug 2022 11:17:05 +0200 From: Alexander Dahl To: Olliver Schinagl Cc: Rob Herring , Krzysztof Kozlowski , Jacek Anaszewski , Baolin Wang , Daniel Mack , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields , Olliver Schinagl , devicetree@vger.kernel.org, linux-kernel Subject: Re: [PATCH v2] dt-bindings: leds: Expand LED_COLOR_ID definitions Message-ID: Mail-Followup-To: Olliver Schinagl , Rob Herring , Krzysztof Kozlowski , Jacek Anaszewski , Baolin Wang , Daniel Mack , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields , Olliver Schinagl , devicetree@vger.kernel.org, linux-kernel References: <7c688821-140b-4b05-651b-337f602dc1fe@schinagl.nl> <6ec9eaa1-2bc2-a32f-6685-4a2a645a5a59@schinagl.nl> Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6ec9eaa1-2bc2-a32f-6685-4a2a645a5a59@schinagl.nl> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Olliver, Am Fri, Aug 12, 2022 at 04:31:55PM +0200 schrieb Olliver Schinagl: > In commit 853a78a7d6c7 (dt-bindings: leds: Add LED_COLOR_ID definitions, > > Sun Jun 9 20:19:04 2019 +0200) the most basic color definitions where > added. However, there's a little more very common LED colors. > > While the documentation states 'add what is missing', engineers tend to > be lazy and will just use what currently exists. So this patch will take > (a) list from online retailers [0], [1], [2] and use the common LED colors > from > there, this being reasonable as this is what is currently available to > purchase. > > Note, that LIME seems to be the modern take to 'Yellow-green' or > 'Yellowish-green' from some older datasheets. > > [0]: https://www.digikey.com/en/products/filter/led-lighting-color/125 > [1]: https://eu.mouser.com/c/optoelectronics/led-lighting/led-emitters/standard-leds-smd > [2]: https://nl.farnell.com/en-NL/c/optoelectronics-displays/led-products/standard-single-colour-leds-under-75ma > > Signed-off-by: Olliver Schinagl > --- > > Changes since v1: Unbreak existing definitions. > > ?include/dt-bindings/leds/common.h | 28 ++++++++++++++++------------ > ?1 file changed, 16 insertions(+), 12 deletions(-) > > diff --git a/include/dt-bindings/leds/common.h > b/include/dt-bindings/leds/common.h > index 3be89a7c20a9..04bf94523ea3 100644 > --- a/include/dt-bindings/leds/common.h > +++ b/include/dt-bindings/leds/common.h > @@ -22,18 +22,22 @@ > ?#define LEDS_BOOST_FIXED??? 2 > > ?/* Standard LED colors */ > -#define LED_COLOR_ID_WHITE??? 0 > -#define LED_COLOR_ID_RED??? 1 > -#define LED_COLOR_ID_GREEN??? 2 > -#define LED_COLOR_ID_BLUE??? 3 > -#define LED_COLOR_ID_AMBER??? 4 > -#define LED_COLOR_ID_VIOLET??? 5 > -#define LED_COLOR_ID_YELLOW??? 6 > -#define LED_COLOR_ID_IR??? ??? 7 > -#define LED_COLOR_ID_MULTI??? 8??? /* For multicolor LEDs */ > -#define LED_COLOR_ID_RGB??? 9??? /* For multicolor LEDs that can do > arbitrary color, > -??? ??? ??? ??? ??? ?? so this would include RGBW and similar */ > -#define LED_COLOR_ID_MAX??? 10 > +#define LED_COLOR_ID_WHITE????? 0 > +#define LED_COLOR_ID_RED??????? 1 > +#define LED_COLOR_ID_GREEN????? 2 > +#define LED_COLOR_ID_BLUE?????? 3 > +#define LED_COLOR_ID_AMBER????? 4 > +#define LED_COLOR_ID_VIOLET???? 5 > +#define LED_COLOR_ID_YELLOW???? 6 > +#define LED_COLOR_ID_IR???????? 7 > +#define LED_COLOR_ID_MULTI????? 8 /* For multicolor LEDs */ > +#define LED_COLOR_ID_RGB??????? 9 /* For multicolor LEDs that can do > arbitrary color, including RGBW etc. */ > +#define LED_COLOR_ID_PUPRPLE?? 10 Typo? Should be LED_COLOR_ID_PURPLE, right? Greets Alex > +#define LED_COLOR_ID_ORANGE??? 11 > +#define LED_COLOR_ID_PINK????? 12 > +#define LED_COLOR_ID_CYAN????? 13 > +#define LED_COLOR_ID_LIME????? 14 > +#define LED_COLOR_ID_MAX?????? 15 > > ?/* Standard LED functions */ > ?/* Keyboard LEDs, usually it would be input4::capslock etc. */ > -- > 2.37.1 >