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:
parent
9163da09d6
commit
9d729acc37
2 changed files with 59 additions and 0 deletions
20
include/dt-bindings/led/led.h
Normal file
20
include/dt-bindings/led/led.h
Normal 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_ */
|
Loading…
Add table
Add a link
Reference in a new issue