1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/devices/pine64-pinephone/kernel/0001-dts-pinephone-Setup-default-on-and-panic-LEDs.patch
Johnny Kirchman a047bdda03
pinephone-braveheart: Generalize Pinephone devices
* Remove braveheart specific naming
2020-10-06 21:27:01 -04:00

39 lines
1.1 KiB
Diff

From: Samuel Dionne-Riel <samuel@dionne-riel.com>
Date: Tue, 14 Jul 2020 17:34:13 +0700
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.
Co-authored-by: S Dao <si.dao@outlook.com>
---
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
index 8376d6e8a9cc..e2b601dcc950 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
@@ -63,6 +63,7 @@ green {
color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */
retain-state-suspended;
+ linux,default-trigger = "default-on";
};
red {
@@ -70,6 +71,7 @@ red {
color = <LED_COLOR_ID_RED>;
gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */
retain-state-suspended;
+ panic-indicator;
};
};
--
2.25.4