diff mbox series

[06/25] dt-bindings: sc27xx-blt: Add function and color properties

Message ID 20190310182836.20841-7-jacek.anaszewski@gmail.com
State Changes Requested, archived
Headers show
Series Add generic support for composing LED class device name | expand

Checks

Context Check Description
robh/checkpatch success

Commit Message

Jacek Anaszewski March 10, 2019, 6:28 p.m. UTC
Refer to new "function" and "color" properties and mark "label"
as deprecated.

Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Baolin Wang <baolin.wang@linaro.org>
---
 Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt
index dddf84f9c7ea..0073dcea0761 100644
--- a/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt
+++ b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt
@@ -14,7 +14,9 @@  Required child properties:
 - reg: Port this LED is connected to.
 
 Optional child properties:
-- label: See Documentation/devicetree/bindings/leds/common.txt.
+- function: See Documentation/devicetree/bindings/leds/common.txt.
+- color: See Documentation/devicetree/bindings/leds/common.txt.
+- label: See Documentation/devicetree/bindings/leds/common.txt (deprecated).
 
 Examples:
 
@@ -25,17 +27,17 @@  led-controller@200 {
 	reg = <0x200>;
 
 	led@0 {
-		label = "red";
+		color = LED_COLOR_NAME_RED;
 		reg = <0x0>;
 	};
 
 	led@1 {
-		label = "green";
+		color = LED_COLOR_NAME_GREEN;
 		reg = <0x1>;
 	};
 
 	led@2 {
-		label = "blue";
+		color = LED_COLOR_NAME_BLUE;
 		reg = <0x2>;
 	};
 };