diff options
author | Daniel Mack <zonque@gmail.com> | 2013-04-28 22:49:52 +0200 |
---|---|---|
committer | Stephen Warren <swarren@wwwdotorg.org> | 2013-05-16 20:29:48 -0600 |
commit | 805b4db8076d47a181032a87db8a732fc8d94596 (patch) | |
tree | 8605864c547489d1a7a2cf9d3f8f92f6d142ec5e /arch/arm/boot/dts/bcm2835-rpi-b.dts | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) | |
download | blackbird-op-linux-805b4db8076d47a181032a87db8a732fc8d94596.tar.gz blackbird-op-linux-805b4db8076d47a181032a87db8a732fc8d94596.zip |
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>
Diffstat (limited to 'arch/arm/boot/dts/bcm2835-rpi-b.dts')
-rw-r--r-- | arch/arm/boot/dts/bcm2835-rpi-b.dts | 11 |
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 @@ memory { reg = <0 0x10000000>; }; + + leds { + compatible = "gpio-leds"; + + act { + label = "ACT"; + gpios = <&gpio 16 1>; + default-state = "keep"; + linux,default-trigger = "heartbeat"; + }; + }; }; &gpio { |