Skip to contentSkip to conversation

arm64: dts: allwinner: h6: Add LED device nodes for Pine H64

PATCH New Chen-Yu Tsai 2 participants 3 messages Jun 20, 2018 – Jun 26, 2018

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

PATCH 1/1 arm64: dts: allwinner: h6: Add LED device nodes for Pine H64

The Pine H64 has 3 GPIO-controlled LEDs, which are labeled "heartbeat", "link", and "status".

Add device nodes for them.

---
 .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +19 -0
index b6f2d6b2ecae..2e97173c9204 100644
@@ -20,6 +20,25 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		heartbeat {
+			label = "pine-h64:green:heartbeat";
+			gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+		};
+
+		link {
+			label = "pine-h64:white:link";
+			gpios = <&r_pio 0 3 GPIO_ACTIVE_HIGH>; /* PL3 */
+		};
+
+		status {
+			label = "pine-h64:blue:status";
+			gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
+		};
+	};
 };
 
 &r_i2c {
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 arm64: dts: allwinner: h6: Add LED device nodes for Pine H64

Quoted 7 lines · Chen-Yu Tsai

The Pine H64 has 3 GPIO-controlled LEDs, which are labeled "heartbeat", "link", and "status".

Add device nodes for them.

---

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.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/20180620/3e704fb9/attachment-0001.sig>