Commit 91f1be8a authored by Jacek Anaszewski's avatar Jacek Anaszewski

dt-bindings: an30259a: Add function and color properties

Refer to new "function" and "color" properties and mark "label"
as deprecated.
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Simon Shields <simon@lineageos.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
parent d7235f5f
...@@ -15,10 +15,19 @@ Required sub-node properties: ...@@ -15,10 +15,19 @@ Required sub-node properties:
- reg: Pin that the LED is connected to. Must be 1, 2, or 3. - reg: Pin that the LED is connected to. Must be 1, 2, or 3.
Optional sub-node properties: Optional sub-node properties:
- label: see Documentation/devicetree/bindings/leds/common.txt - function :
- linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt see Documentation/devicetree/bindings/leds/common.txt
- color :
see Documentation/devicetree/bindings/leds/common.txt
- label :
see Documentation/devicetree/bindings/leds/common.txt (deprecated)
- linux,default-trigger :
see Documentation/devicetree/bindings/leds/common.txt
Example: Example:
#include <dt-bindings/leds/common.h>
led-controller@30 { led-controller@30 {
compatible = "panasonic,an30259a"; compatible = "panasonic,an30259a";
reg = <0x30>; reg = <0x30>;
...@@ -28,16 +37,19 @@ led-controller@30 { ...@@ -28,16 +37,19 @@ led-controller@30 {
led@1 { led@1 {
reg = <1>; reg = <1>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
label = "red:indicator"; function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_RED>;
}; };
led@2 { led@2 {
reg = <2>; reg = <2>;
label = "green:indicator"; function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
}; };
led@3 { led@3 {
reg = <3>; reg = <3>;
label = "blue:indicator"; function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_BLUE>;
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment