forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/leds/leds-lt3593.txt
....@@ -9,8 +9,10 @@
99 configured in a sub-node in the device node.
1010
1111 Optional sub-node properties:
12
-- label: A label for the LED. If none is given, the LED will be
13
- named "lt3595::".
12
+- function: See Documentation/devicetree/bindings/leds/common.txt
13
+- color: See Documentation/devicetree/bindings/leds/common.txt
14
+- label: A label for the LED. If none is given, the LED will be
15
+ named "lt3595::" (deprecated)
1416 - linux,default-trigger: The default trigger for the LED.
1517 See Documentation/devicetree/bindings/leds/common.txt
1618 - default-state: The initial state of the LED.
....@@ -21,12 +23,15 @@
2123
2224 Example:
2325
26
+#include <dt-bindings/leds/common.h>
27
+
2428 led-controller {
2529 compatible = "lltc,lt3593";
2630 lltc,ctrl-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
2731
2832 led {
29
- label = "white:backlight";
33
+ function = LED_FUNCTION_BACKLIGHT;
34
+ color = <LED_COLOR_ID_WHITE>;
3035 default-state = "on";
3136 };
3237 };