dts: introduce binding for LED controllers

The led-controller DT binding gathers some common properties for LED
controllers and for the LED child nodes.

One notable property is "color-mapping" which allows to define a channel
to color mapping for multicolor LEDs.

Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
Signed-off-by: Maxime Bittan <maxime.bittan@seagate.com>
This commit is contained in:
Simon Guinot 2020-06-04 16:04:29 +02:00 committed by Carles Cufí
commit 9d729acc37
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/*
* Copyright (c) 2020 Seagate Technology LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_LED_LED_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_LED_LED_H_
/* 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_MAX 8
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_LED_LED_H_ */