kernel: 5.15: update Aquantia PHY driver to v6.1 code
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 831-v6.1-dt-bindings-leds-Expand-LED_COLOR_ID-definitions.patch
1 From 472d7b9e8141729ec1e3fe6821b88563f6379533 Mon Sep 17 00:00:00 2001
2 From: Olliver Schinagl <oliver@schinagl.nl>
3 Date: Tue, 30 Aug 2022 15:46:13 +0200
4 Subject: [PATCH] dt-bindings: leds: Expand LED_COLOR_ID definitions
5
6 In commit 853a78a7d6c7 (dt-bindings: leds: Add LED_COLOR_ID definitions,
7 Sun Jun 9 20:19:04 2019 +0200) the most basic color definitions where
8 added. However, there's a little more very common LED colors.
9
10 While the documentation states 'add what is missing', engineers tend to
11 be lazy and will just use what currently exists. So this patch will take
12 (a) list from online retailers [0], [1], [2] and use the common LED colors from
13 there, this being reasonable as this is what is currently available to purchase.
14
15 Note, that LIME seems to be the modern take to 'Yellow-green' or
16 'Yellowish-green' from some older datasheets.
17
18 [0]: https://www.digikey.com/en/products/filter/led-lighting-color/125
19 [1]: https://eu.mouser.com/c/optoelectronics/led-lighting/led-emitters/standard-leds-smd
20 [2]: https://nl.farnell.com/en-NL/c/optoelectronics-displays/led-products/standard-single-colour-leds-under-75ma
21
22 Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
23 Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
24 Acked-by: Alexander Dahl <ada@thorsis.com>
25 Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
26 Link: https://lore.kernel.org/r/20220830134613.1564059-1-oliver@schinagl.nl
27 Signed-off-by: Rob Herring <robh@kernel.org>
28 ---
29 include/dt-bindings/leds/common.h | 7 ++++++-
30 1 file changed, 6 insertions(+), 1 deletion(-)
31
32 --- a/include/dt-bindings/leds/common.h
33 +++ b/include/dt-bindings/leds/common.h
34 @@ -33,7 +33,12 @@
35 #define LED_COLOR_ID_MULTI 8 /* For multicolor LEDs */
36 #define LED_COLOR_ID_RGB 9 /* For multicolor LEDs that can do arbitrary color,
37 so this would include RGBW and similar */
38 -#define LED_COLOR_ID_MAX 10
39 +#define LED_COLOR_ID_PURPLE 10
40 +#define LED_COLOR_ID_ORANGE 11
41 +#define LED_COLOR_ID_PINK 12
42 +#define LED_COLOR_ID_CYAN 13
43 +#define LED_COLOR_ID_LIME 14
44 +#define LED_COLOR_ID_MAX 15
45
46 /* Standard LED functions */
47 /* Keyboard LEDs, usually it would be input4::capslock etc. */