Skip to contentSkip to conversation

ARM: sun8i: a83t: cubietruck-plus: Add LED device nodes

PATCH New Chen-Yu Tsai 2 participants 2 messages May 22, 2017

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

PATCH 1/1 ARM: sun8i: a83t: cubietruck-plus: Add LED device nodes

The Cubietruck Plus has 4 LEDs in different colors. Add device nodes for them.

---
 arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +26 -0
index d2614f101ecc..9e10cc6f39d4 100644
@@ -45,6 +45,8 @@
 /dts-v1/;
 #include "sun8i-a83t.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
 	model = "Cubietech Cubietruck Plus";
 	compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t";
@@ -56,6 +58,30 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		blue {
+			label = "cubietruck-plus:blue:usr";
+			gpios = <&pio 3 25 GPIO_ACTIVE_HIGH>; /* PD25 */
+		};
+
+		orange {
+			label = "cubietruck-plus:orange:usr";
+			gpios = <&pio 3 26 GPIO_ACTIVE_HIGH>; /* PD26 */
+		};
+
+		white {
+			label = "cubietruck-plus:white:usr";
+			gpios = <&pio 3 27 GPIO_ACTIVE_HIGH>; /* PD27 */
+		};
+
+		green {
+			label = "cubietruck-plus:green:usr";
+			gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */
+		};
+	};
 };
 
 &uart0 {
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 ARM: sun8i: a83t: cubietruck-plus: Add LED device nodes

Quoted 4 lines · Chen-Yu Tsai

The Cubietruck Plus has 4 LEDs in different colors. Add device nodes for them.

Applied, 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: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170522/fde25b47/attachment.sig>