forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/leds/ams,as3645a.txt
....@@ -39,7 +39,9 @@
3939 Optional properties of the flash child node
4040 ===========================================
4141
42
-label : The label of the flash LED.
42
+function : See Documentation/devicetree/bindings/leds/common.txt.
43
+color : See Documentation/devicetree/bindings/leds/common.txt.
44
+label : See Documentation/devicetree/bindings/leds/common.txt (deprecated).
4345
4446
4547 Required properties of the indicator child node (1)
....@@ -52,28 +54,32 @@
5254 Optional properties of the indicator child node
5355 ===============================================
5456
55
-label : The label of the indicator LED.
57
+function : See Documentation/devicetree/bindings/leds/common.txt.
58
+color : See Documentation/devicetree/bindings/leds/common.txt.
59
+label : See Documentation/devicetree/bindings/leds/common.txt (deprecated).
5660
5761
5862 Example
5963 =======
6064
65
+#include <dt-bindings/leds/common.h>
66
+
6167 as3645a@30 {
62
- #address-cells: 1
63
- #size-cells: 0
68
+ #address-cells = <1>;
69
+ #size-cells = <0>;
6470 reg = <0x30>;
6571 compatible = "ams,as3645a";
66
- flash@0 {
72
+ led@0 {
6773 reg = <0x0>;
6874 flash-timeout-us = <150000>;
6975 flash-max-microamp = <320000>;
7076 led-max-microamp = <60000>;
7177 ams,input-max-microamp = <1750000>;
72
- label = "as3645a:flash";
78
+ function = LED_FUNCTION_FLASH;
7379 };
74
- indicator@1 {
80
+ led@1 {
7581 reg = <0x1>;
7682 led-max-microamp = <10000>;
77
- label = "as3645a:indicator";
83
+ function = LED_FUNCTION_INDICATOR;
7884 };
7985 };