1 LEDs connected to GPIO lines
4 - compatible : should be "gpio-leds".
6 Each LED is represented as a sub-node of the gpio-leds device. Each
7 node's name represents the name of the corresponding LED.
9 LED sub-node properties:
10 - gpios : Should specify the LED's GPIO, see "gpios property" in
11 Documentation/devicetree/bindings/gpio/gpio.txt. Active low LEDs should be
12 indicated using flags in the GPIO specifier.
14 see Documentation/devicetree/bindings/leds/common.txt
15 - linux,default-trigger : (optional)
16 see Documentation/devicetree/bindings/leds/common.txt
17 - default-state: (optional) The initial state of the LED.
18 see Documentation/devicetree/bindings/leds/common.txt
19 - retain-state-suspended: (optional) The suspend state can be retained.Such
21 - panic-indicator : (optional)
22 see Documentation/devicetree/bindings/leds/common.txt
26 #include <dt-bindings/gpio/gpio.h>
29 compatible = "gpio-leds";
31 label = "Disk Activity";
32 gpios = <&mcu_pio 0 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "disk-activity";
37 gpios = <&mcu_pio 1 GPIO_ACTIVE_HIGH>;
38 /* Keep LED on if BIOS detected hardware fault */
39 default-state = "keep";
44 compatible = "gpio-leds";
46 gpios = <&mpc8572 6 GPIO_ACTIVE_HIGH>;
47 default-state = "off";
50 gpios = <&mpc8572 7 GPIO_ACTIVE_HIGH>;
56 compatible = "gpio-leds";
59 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "max8903-charger-charging";
61 retain-state-suspended;