Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: cr0014114: Add function and color properties

Refer to new "function" and "color" properties and mark "label"
as deprecated.

Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Oleh Kravchenko <oleg@kaa.org.ua>
Reviewed-by: Rob Herring <robh@kernel.org>

+19 -7
+19 -7
Documentation/devicetree/bindings/leds/leds-cr0014114.txt
··· 11 11 apply. In particular, "reg" and "spi-max-frequency" properties must be given. 12 12 13 13 LED sub-node properties: 14 - - label : 14 + - function : 15 15 see Documentation/devicetree/bindings/leds/common.txt 16 + - color : 17 + see Documentation/devicetree/bindings/leds/common.txt 18 + - label : 19 + see Documentation/devicetree/bindings/leds/common.txt (deprecated) 16 20 - linux,default-trigger : (optional) 17 21 see Documentation/devicetree/bindings/leds/common.txt 18 22 19 23 Example 20 24 ------- 25 + 26 + #include <dt-bindings/leds/common.h> 21 27 22 28 led-controller@0 { 23 29 compatible = "crane,cr0014114"; ··· 34 28 35 29 led@0 { 36 30 reg = <0>; 37 - label = "red:coin"; 31 + function = "coin"; 32 + color = <LED_COLOR_ID_RED>; 38 33 }; 39 34 led@1 { 40 35 reg = <1>; 41 - label = "green:coin"; 36 + function = "coin"; 37 + color = <LED_COLOR_ID_GREEN>; 42 38 }; 43 39 led@2 { 44 40 reg = <2>; 45 - label = "blue:coin"; 41 + function = "coin"; 42 + color = <LED_COLOR_ID_BLUE>; 46 43 }; 47 44 led@3 { 48 45 reg = <3>; 49 - label = "red:bill"; 46 + function = "bill"; 47 + color = <LED_COLOR_ID_RED>; 50 48 }; 51 49 led@4 { 52 50 reg = <4>; 53 - label = "green:bill"; 51 + function = "bill"; 52 + color = <LED_COLOR_ID_GREEN>; 54 53 }; 55 54 led@5 { 56 55 reg = <5>; 57 - label = "blue:bill"; 56 + function = "bill"; 57 + color = <LED_COLOR_ID_BLUE>; 58 58 }; 59 59 ... 60 60 };