hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/Documentation/devicetree/bindings/leds/leds-cr0014114.txt
....@@ -11,13 +11,19 @@
1111 apply. In particular, "reg" and "spi-max-frequency" properties must be given.
1212
1313 LED sub-node properties:
14
-- label :
14
+- function :
1515 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)
1620 - linux,default-trigger : (optional)
1721 see Documentation/devicetree/bindings/leds/common.txt
1822
1923 Example
2024 -------
25
+
26
+#include <dt-bindings/leds/common.h>
2127
2228 led-controller@0 {
2329 compatible = "crane,cr0014114";
....@@ -28,27 +34,33 @@
2834
2935 led@0 {
3036 reg = <0>;
31
- label = "red:coin";
37
+ function = "coin";
38
+ color = <LED_COLOR_ID_RED>;
3239 };
3340 led@1 {
3441 reg = <1>;
35
- label = "green:coin";
42
+ function = "coin";
43
+ color = <LED_COLOR_ID_GREEN>;
3644 };
3745 led@2 {
3846 reg = <2>;
39
- label = "blue:coin";
47
+ function = "coin";
48
+ color = <LED_COLOR_ID_BLUE>;
4049 };
4150 led@3 {
4251 reg = <3>;
43
- label = "red:bill";
52
+ function = "bill";
53
+ color = <LED_COLOR_ID_RED>;
4454 };
4555 led@4 {
4656 reg = <4>;
47
- label = "green:bill";
57
+ function = "bill";
58
+ color = <LED_COLOR_ID_GREEN>;
4859 };
4960 led@5 {
5061 reg = <5>;
51
- label = "blue:bill";
62
+ function = "bill";
63
+ color = <LED_COLOR_ID_BLUE>;
5264 };
5365 ...
5466 };