mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-20 06:21:33 +03:00
93039954c2
This sets the red + green LEDs, making it yellow.
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From 32d81a88ad076538d4d1e4ac88dda01fc2165b30 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
|
|
Date: Sat, 28 Mar 2020 01:33:16 -0400
|
|
Subject: [PATCH] dts: pinephone: Setup default on and panic LEDs
|
|
|
|
* The green LED defaults to on.
|
|
* The red LED is the panic indicator.
|
|
|
|
The green LED defaults to on for an expected transition through red,
|
|
yellow and green during the different boot stages.
|
|
---
|
|
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dts | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dts
|
|
index 4981ffd8c945..54629960d48e 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dts
|
|
@@ -66,12 +66,14 @@
|
|
label = "pinephone:green:user";
|
|
gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */
|
|
retain-state-suspended;
|
|
+ linux,default-trigger = "default-on";
|
|
};
|
|
|
|
red {
|
|
label = "pinephone:red:user";
|
|
gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */
|
|
retain-state-suspended;
|
|
+ panic-indicator;
|
|
};
|
|
};
|
|
|
|
--
|
|
2.23.1
|
|
|