blob: 4fe14deedc0a3e5aa3988288873c5e4f9a2ee01c [file] [log] [blame]
Trent Piephoa7d878a2009-01-10 17:26:01 +00001LEDs connected to GPIO lines
Anton Vorontsov89ae5b22008-07-04 20:53:28 +04002
3Required properties:
Trent Piephoa7d878a2009-01-10 17:26:01 +00004- compatible : should be "gpio-leds".
5
6Each LED is represented as a sub-node of the gpio-leds device. Each
7node's name represents the name of the corresponding LED.
8
9LED sub-node properties:
10- gpios : Should specify the LED's GPIO, see "Specifying GPIO information
11 for devices" in Documentation/powerpc/booting-without-of.txt. Active
12 low LEDs should be indicated using flags in the GPIO specifier.
13- label : (optional) The label for this LED. If omitted, the label is
Anton Vorontsov89ae5b22008-07-04 20:53:28 +040014 taken from the node name (excluding the unit address).
Trent Piephoa7d878a2009-01-10 17:26:01 +000015- linux,default-trigger : (optional) This parameter, if present, is a
16 string defining the trigger assigned to the LED. Current triggers are:
17 "backlight" - LED will act as a back-light, controlled by the framebuffer
18 system
19 "default-on" - LED will turn on
20 "heartbeat" - LED "double" flashes at a load average based rate
21 "ide-disk" - LED indicates disk activity
22 "timer" - LED flashes at a fixed, configurable rate
Anton Vorontsov89ae5b22008-07-04 20:53:28 +040023
Trent Piephoa7d878a2009-01-10 17:26:01 +000024Examples:
Anton Vorontsov89ae5b22008-07-04 20:53:28 +040025
Trent Piephoa7d878a2009-01-10 17:26:01 +000026leds {
27 compatible = "gpio-leds";
28 hdd {
29 label = "IDE Activity";
30 gpios = <&mcu_pio 0 1>; /* Active low */
31 linux,default-trigger = "ide-disk";
32 };
Anton Vorontsov89ae5b22008-07-04 20:53:28 +040033};
Trent Piephoa7d878a2009-01-10 17:26:01 +000034
35run-control {
36 compatible = "gpio-leds";
37 red {
38 gpios = <&mpc8572 6 0>;
39 };
40 green {
41 gpios = <&mpc8572 7 0>;
42 };
43}