Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1447255
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 4/4] ARM: sun5i: chip: Add status LED |
| Date | 2016-07-20 16:20 +0200 |
| Message-ID | <rX0vU-2uN-31@gated-at.bofh.it> (permalink) |
| References | <rX0vU-2uN-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 | 10 ++++++++++
1 file changed, 10 insertions(+)
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 {
--
2.9.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/4] Add AXP209 GPIO driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-07-20 16:20 +0200 [PATCH v2 3/4] ARM: dt: axp209: Add AXP209 GPIO driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-07-20 16:20 +0200 [PATCH v2 1/4] gpio: Add AXP209 GPIO driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-07-20 16:20 +0200 [PATCH v2 4/4] ARM: sun5i: chip: Add status LED Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-07-20 16:20 +0200 [PATCH v2 2/4] mfd: axp20x: Add AXP209 GPIO driver to the mfd Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-07-20 16:20 +0200
csiph-web