aboutsummaryrefslogtreecommitdiff
path: root/Bindings/leds/leds-cr0014114.txt
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2019-11-28 19:05:03 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2019-11-28 19:05:03 +0000
commitc3f1cfc76c9a579767282ac81d2be1cfb20aea92 (patch)
tree2ceec207f54ea88f7e65cbfc01d27ccf39cb9693 /Bindings/leds/leds-cr0014114.txt
parent01e5ca170569c10889ed1bb2efcf4d19eae1353c (diff)
downloadsrc-c3f1cfc76c9a579767282ac81d2be1cfb20aea92.tar.gz
src-c3f1cfc76c9a579767282ac81d2be1cfb20aea92.zip
Import devicetree files from Linux 5.4vendor/device-tree/5.4
Notes
Notes: svn path=/vendor/device-tree/dist/; revision=355185 svn path=/vendor/device-tree/5.4/; revision=355186; tag=vendor/device-tree/5.4
Diffstat (limited to 'Bindings/leds/leds-cr0014114.txt')
-rw-r--r--Bindings/leds/leds-cr0014114.txt26
1 files changed, 19 insertions, 7 deletions
diff --git a/Bindings/leds/leds-cr0014114.txt b/Bindings/leds/leds-cr0014114.txt
index 4255b19ad25c..f8de7516a39b 100644
--- a/Bindings/leds/leds-cr0014114.txt
+++ b/Bindings/leds/leds-cr0014114.txt
@@ -11,14 +11,20 @@ Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt
apply. In particular, "reg" and "spi-max-frequency" properties must be given.
LED sub-node properties:
-- label :
+- 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)
- linux,default-trigger : (optional)
see Documentation/devicetree/bindings/leds/common.txt
Example
-------
+#include <dt-bindings/leds/common.h>
+
led-controller@0 {
compatible = "crane,cr0014114";
reg = <0>;
@@ -28,27 +34,33 @@ led-controller@0 {
led@0 {
reg = <0>;
- label = "red:coin";
+ function = "coin";
+ color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <1>;
- label = "green:coin";
+ function = "coin";
+ color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
- label = "blue:coin";
+ function = "coin";
+ color = <LED_COLOR_ID_BLUE>;
};
led@3 {
reg = <3>;
- label = "red:bill";
+ function = "bill";
+ color = <LED_COLOR_ID_RED>;
};
led@4 {
reg = <4>;
- label = "green:bill";
+ function = "bill";
+ color = <LED_COLOR_ID_GREEN>;
};
led@5 {
reg = <5>;
- label = "blue:bill";
+ function = "bill";
+ color = <LED_COLOR_ID_BLUE>;
};
...
};