Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3193115rwe; Mon, 29 Aug 2022 07:23:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+bXQtz9SwoHtA38nq0/1AI99SiRxNRJdLDR70nHdEQtIGkYD6grs6h4akNKbhA+jlHxoZ X-Received: by 2002:a17:907:2e0d:b0:741:a3ec:7f92 with SMTP id ig13-20020a1709072e0d00b00741a3ec7f92mr1036030ejc.309.1661782983973; Mon, 29 Aug 2022 07:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661782983; cv=none; d=google.com; s=arc-20160816; b=wlkDpzbBoVFR+hAQlH6U2kTaoJkNGK4I07ELlmeEUAlBx7fIzaQYFpJ8GtURn6Omnu D5n03Yx/p/dJaHqwTRtIZ/AoypmYSe000Tf4vbtc8BkJoqfOMIY/flEX9pn05+6Luu39 jDm+U2/BctSZVYg8yjk0yKhEFO8G3v+eSmCnDV5yEKYjxPReBKjoQytWsF/E9+rHbL92 7TRnsc1iSx1O09tX6YuKTKS9ES5GLMzCah+FGKZzOA7CNAiMjRnkQ7rQDK21jrUwgpli yUp0D3bPMupDosI6lsG7FjI0l3IhW8eptO6/gxjzHloEBfHIfPBAUTg7IFbGEmYgFWCU Cczg== 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-disposition:references :mail-followup-to:message-id:subject:cc:to:from:date; bh=GjrjpHZ9UKX3xoOSE9pvP3Xvgz9x7pOAxXrzlrS3Xxw=; b=A7onMFDN92NUxUwO4q84swogM1Zni3RnuQ4iZBkPgd8GDrVLaEkWMzJq3CK95Otzkh WWKX/yUbfxvcsrMyFVt5u7c7E+hPeaV1ZpqEFkPxA04waXVAdszoHfqzaaH3ucSXt0df 23eaG1xTWwHrMtvwofgT7OvY1oYrJJK6KbsDEhme1xCa5O3V7IH14mrXMeldd69TcOxq rzE49gX4ItdujxJCtHMMT7nTCjCyBiFc/VwRHljLzgR4lLJqW7zq17K+70WgVSSW3DH3 OoM1C8kff0kk53HY4ZlH90FrN7nf/g/wcZoNPTQXSQxDLoEyFWswWD6AmpvtlReVHYAN s48Q== 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 b20-20020a056402279400b00448acc79130si348074ede.137.2022.08.29.07.22.38; Mon, 29 Aug 2022 07:23:03 -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 S230404AbiH2OM0 (ORCPT + 99 others); Mon, 29 Aug 2022 10:12:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbiH2OMI (ORCPT ); Mon, 29 Aug 2022 10:12:08 -0400 Received: from mail.thorsis.com (mail.thorsis.com [92.198.35.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D07596775; Mon, 29 Aug 2022 07:12:06 -0700 (PDT) Date: Mon, 29 Aug 2022 16:12:00 +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@vger.kernel.org Subject: Re: [PATCHv2 resend] 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@vger.kernel.org References: <20220819152904.433514-1-oliver@schinagl.nl> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220819152904.433514-1-oliver@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 Hei Olliver, Am Fri, Aug 19, 2022 at 05:29:04PM +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. Just noticed you did not send this to neither linux-leds mailing list nor the LED subsystem maintainer. Maybe you want to do this in v3? Greets Alex > > [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 > +#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.2 >