forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/leds/leds-lm3601x.txt
....@@ -22,9 +22,14 @@
2222 - led-max-microamp : Range from 2.4mA - 376mA
2323
2424 Optional child properties:
25
- - label : see Documentation/devicetree/bindings/leds/common.txt
25
+ - function : see Documentation/devicetree/bindings/leds/common.txt
26
+ - color : see Documentation/devicetree/bindings/leds/common.txt
27
+ - label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
2628
2729 Example:
30
+
31
+#include <dt-bindings/leds/common.h>
32
+
2833 led-controller@64 {
2934 compatible = "ti,lm36010";
3035 #address-cells = <1>;
....@@ -33,7 +38,8 @@
3338
3439 led@0 {
3540 reg = <1>;
36
- label = "white:torch";
41
+ function = LED_FUNCTION_TORCH;
42
+ color = <LED_COLOR_ID_WHITE>;
3743 led-max-microamp = <376000>;
3844 flash-max-microamp = <1500000>;
3945 flash-max-timeout-us = <1600000>;
....@@ -41,5 +47,5 @@
4147 }
4248
4349 For more product information please see the links below:
44
-http://www.ti.com/product/LM36010
45
-http://www.ti.com/product/LM36011
50
+https://www.ti.com/product/LM36010
51
+https://www.ti.com/product/LM36011