From cd8d79001c610189b14a3e9f925362bef8adf1a8 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel 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