1 Device Tree Bindings for Register Bit LEDs
3 Register bit leds are used with syscon multifunctional devices
4 where single bits in a certain register can turn on/off a
5 single LED. The register bit LEDs appear as children to the
6 syscon device, with the proper compatible string. For the
8 Documentation/devicetree/bindings/mfd/syscon.yaml
10 Each LED is represented as a sub-node of the syscon device. Each
11 node's name represents the name of the corresponding LED.
13 LED sub-node properties:
16 - compatible : must be "register-bit-led"
17 - offset : register offset to the register controlling this LED
18 - mask : bit mask for the bit controlling this LED in the register
19 typically 0x01, 0x02, 0x04 ...
23 see Documentation/devicetree/bindings/leds/common.txt
24 - linux,default-trigger : (optional)
25 see Documentation/devicetree/bindings/leds/common.txt
26 - default-state: (optional) The initial state of the LED
27 see Documentation/devicetree/bindings/leds/common.txt
31 syscon: syscon@10000000 {
32 compatible = "arm,realview-pb1176-syscon", "syscon";
33 reg = <0x10000000 0x1000>;
36 compatible = "register-bit-led";
39 label = "versatile:0";
40 linux,default-trigger = "heartbeat";
44 compatible = "register-bit-led";
47 label = "versatile:1";
48 linux,default-trigger = "mmc0";
49 default-state = "off";
52 compatible = "register-bit-led";
55 label = "versatile:2";
56 linux,default-trigger = "cpu0";
57 default-state = "off";
60 compatible = "register-bit-led";
63 label = "versatile:3";
64 default-state = "off";
67 compatible = "register-bit-led";
70 label = "versatile:4";
71 default-state = "off";
74 compatible = "register-bit-led";
77 label = "versatile:5";
78 default-state = "off";
81 compatible = "register-bit-led";
84 label = "versatile:6";
85 default-state = "off";
88 compatible = "register-bit-led";
91 label = "versatile:7";
92 default-state = "off";