Skip to contentSkip to conversation

ARM: dts: sun8i: a83t: bananapi-m3: Add LED device nodes

PATCH New Chen-Yu Tsai 2 participants 3 messages Jan 3, 2018 – Feb 13, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sun8i: a83t: bananapi-m3: Add LED device nodes

The Bananapi M3 has two controllable LEDs, blue and green, that are tied to the PMIC's two GPIO pins.

---
 arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +14 -0
index 6550bf0e594b..78fe61d97790 100644
@@ -60,6 +60,20 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	leds {
+		compatible = "gpio-leds";
+
+		blue {
+			label = "bananapi-m3:blue:usr";
+			gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>;
+		};
+
+		green {
+			label = "bananapi-m3:green:usr";
+			gpios = <&axp_gpio 0 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	reg_usb1_vbus: reg-usb1-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "usb1-vbus";
Signature · 1 line
2.15.1
#1 lore raw

PATCH 1/1 ARM: dts: sun8i: a83t: bananapi-m3: Add LED device nodes

Quoted 4 lines · Chen-Yu Tsai

The Bananapi M3 has two controllable LEDs, blue and green, that are tied to the PMIC's two GPIO pins.

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180104/6df6ab79/attachment.sig>