Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1LED driver for MAX77650 PMIC from Maxim Integrated.
2
3This module is part of the MAX77650 MFD device. For more details
4see Documentation/devicetree/bindings/mfd/max77650.txt.
5
6The LED controller is represented as a sub-node of the PMIC node on
7the device tree.
8
9This device has three current sinks.
10
11Required properties:
12--------------------
13- compatible: Must be "maxim,max77650-led"
14- #address-cells: Must be <1>.
15- #size-cells: Must be <0>.
16
17Each LED is represented as a sub-node of the LED-controller node. Up to
18three sub-nodes can be defined.
19
20Required properties of the sub-node:
21------------------------------------
22
23- reg: Must be <0>, <1> or <2>.
24
25Optional properties of the sub-node:
26------------------------------------
27
28- label: See Documentation/devicetree/bindings/leds/common.txt
29- linux,default-trigger: See Documentation/devicetree/bindings/leds/common.txt
30
31For more details, please refer to the generic GPIO DT binding document
32<devicetree/bindings/gpio/gpio.txt>.
33
34Example:
35--------
36
37 leds {
38 compatible = "maxim,max77650-led";
39 #address-cells = <1>;
40 #size-cells = <0>;
41
42 led@0 {
43 reg = <0>;
44 label = "blue:usr0";
45 };
46
47 led@1 {
48 reg = <1>;
49 label = "red:usr1";
50 linux,default-trigger = "heartbeat";
51 };
52
53 led@2 {
54 reg = <2>;
55 label = "green:usr2";
56 };
57 };