1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 05:21:47 +03:00
mobile-nixos/devices/sony-pioneer/kernel/0001-Mobile-NixOS-configure-LEDs.patch

46 lines
1.3 KiB
Diff
Raw Normal View History

From cd8d79001c610189b14a3e9f925362bef8adf1a8 Mon Sep 17 00:00:00 2001
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
Date: Sun, 27 Sep 2020 22:56:36 -0400
Subject: [PATCH] Mobile NixOS: configure LEDs
* green: default-on
* blue: charging
* red: panic indicator
---
arch/arm64/boot/dts/somc/sdm630-ganges-common.dtsi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/somc/sdm630-ganges-common.dtsi b/arch/arm64/boot/dts/somc/sdm630-ganges-common.dtsi
index 65b6ce2bb2a2e..d8b2aed9383fe 100755
--- a/arch/arm64/boot/dts/somc/sdm630-ganges-common.dtsi
+++ b/arch/arm64/boot/dts/somc/sdm630-ganges-common.dtsi
@@ -230,6 +230,7 @@
linux,name = "red";
linux,default-trigger = "none";
somc,color_variation_max_num = <4>;
+ panic-indicator;
somc,max_current = <
45 511 511
46 511 511
@@ -240,7 +241,7 @@
&green_led {
somc,pwm-channel = <1>;
linux,name = "green";
- linux,default-trigger = "none";
+ linux,default-trigger = "default-on";
somc,color_variation_max_num = <4>;
somc,max_current = <
45 511 511
@@ -252,7 +253,7 @@
&blue_led {
somc,pwm-channel = <0>;
linux,name = "blue";
- linux,default-trigger = "none";
+ linux,default-trigger = "battery-charging";
somc,color_variation_max_num = <4>;
somc,max_current = <
45 511 511
--
2.28.0