From: Maxime Ripard Date: Sat, 27 Feb 2016 23:56:21 +0000 (-0800) Subject: ARM: sun5i: chip: Add status LED X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3d3f05e643dbe79c996803fff8de97cb7209d057;p=linux-beck.git ARM: sun5i: chip: Add status LED 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 --- diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts b/arch/arm/boot/dts/sun5i-r8-chip.dts index f694482bdeb6..b68a12374b35 100644 --- a/arch/arm/boot/dts/sun5i-r8-chip.dts +++ b/arch/arm/boot/dts/sun5i-r8-chip.dts @@ -64,6 +64,16 @@ 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 {