arm64: dts: allwinner: h6: Add LED device nodes for Pine H64
authorChen-Yu Tsai <wens@csie.org>
Wed, 20 Jun 2018 07:13:41 +0000 (15:13 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 26 Jun 2018 03:28:28 +0000 (11:28 +0800)
The Pine H64 has 3 GPIO-controlled LEDs, which are labeled "heartbeat",
"link", and "status".

Add device nodes for them.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts

index b6f2d6b2ecaea7afd40ba3da6d27b94ffc8b10fb..2e97173c920473b9cdc848480db85ab425a748a3 100644 (file)
        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 {