diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-02-28 00:56:21 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-08-22 15:16:49 +0200 |
commit | 3d3f05e643dbe79c996803fff8de97cb7209d057 (patch) | |
tree | 4892493eb7f52260c5102ba93a2f2428a29242af /arch/arm/boot/dts | |
parent | ARM: dt: axp209: Add AXP209 GPIO driver (diff) | |
download | linux-3d3f05e643dbe79c996803fff8de97cb7209d057.tar.xz linux-3d3f05e643dbe79c996803fff8de97cb7209d057.zip |
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 <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r-- | arch/arm/boot/dts/sun5i-r8-chip.dts | 10 |
1 files changed, 10 insertions, 0 deletions
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 { |