aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-04-28 16:49:52 -0400
committerStephen Warren <swarren@wwwdotorg.org>2013-05-16 22:29:48 -0400
commit805b4db8076d47a181032a87db8a732fc8d94596 (patch)
tree8605864c547489d1a7a2cf9d3f8f92f6d142ec5e
parentf722406faae2d073cc1d01063d1123c35425939e (diff)
ARM: bcm2835: Add Raspberry Pi's ACT LED to DT
The Raspberry Pi board has one GPIO-controlled LED labeled "ACT". Add it to the DT via the gpio-leds driver, so users can control it from userspace. If CONFIG_LEDS_TRIGGER_HEARTBEAT is set, the LED will also signal some sign of life. The GPIO circuitry is low-active. And as the bootloader may decide to switch the LED on at boot time, the default state is 'keep'. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
-rw-r--r--arch/arm/boot/dts/bcm2835-rpi-b.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts
index aafda174a605..6e9deb786a7d 100644
--- a/arch/arm/boot/dts/bcm2835-rpi-b.dts
+++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts
@@ -8,6 +8,17 @@
8 memory { 8 memory {
9 reg = <0 0x10000000>; 9 reg = <0 0x10000000>;
10 }; 10 };
11
12 leds {
13 compatible = "gpio-leds";
14
15 act {
16 label = "ACT";
17 gpios = <&gpio 16 1>;
18 default-state = "keep";
19 linux,default-trigger = "heartbeat";
20 };
21 };
11}; 22};
12 23
13&gpio { 24&gpio {