summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorChen-Yu Tsai2018-06-20 09:13:41 +0200
committerChen-Yu Tsai2018-06-26 05:28:28 +0200
commit6677bbded4c6d0052eed09d1e4d574fb79ebd5bc (patch)
treeca4f570a7e494a13db5dbd30082d8d9438ad132d /arch/arm64
parentarm64: allwinner: a64: allow laptops to wake up from lid (diff)
downloadkernel-qcow2-linux-6677bbded4c6d0052eed09d1e4d574fb79ebd5bc.tar.gz
kernel-qcow2-linux-6677bbded4c6d0052eed09d1e4d574fb79ebd5bc.tar.xz
kernel-qcow2-linux-6677bbded4c6d0052eed09d1e4d574fb79ebd5bc.zip
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. Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
index b6f2d6b2ecae..2e97173c9204 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
@@ -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 {