OSDN Git Service

ARM: sun5i: chip: Add status LED
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 27 Feb 2016 23:56:21 +0000 (15:56 -0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 22 Aug 2016 13:16:49 +0000 (15:16 +0200)
The CHIP has a status LED connected to one of the AXP GPIOs. Add the
gpio-leds node to be able to use the proper LED framework to control it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun5i-r8-chip.dts

index f694482..b68a123 100644 (file)
        chosen {
                stdout-path = "serial0:115200n8";
        };
+
+       leds {
+               compatible = "gpio-leds";
+
+               status {
+                       label = "chip:white:status";
+                       gpios = <&axp_gpio 2 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
+               };
+       };
 };
 
 &be0 {