From 6e00fa0eee88015a287eb32e5db84ae948f2a60a Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Sat, 27 Jun 2020 21:39:26 -0400 Subject: [PATCH] xiaomi-begonia: LED now defaults to on --- ...0001-mt6360-white-led-defaults-to-on.patch | 25 +++++++++++++++++++ devices/xiaomi-begonia/kernel/default.nix | 1 + 2 files changed, 26 insertions(+) create mode 100644 devices/xiaomi-begonia/kernel/0001-mt6360-white-led-defaults-to-on.patch diff --git a/devices/xiaomi-begonia/kernel/0001-mt6360-white-led-defaults-to-on.patch b/devices/xiaomi-begonia/kernel/0001-mt6360-white-led-defaults-to-on.patch new file mode 100644 index 00000000..3d85da53 --- /dev/null +++ b/devices/xiaomi-begonia/kernel/0001-mt6360-white-led-defaults-to-on.patch @@ -0,0 +1,25 @@ +From 7596d9c5fddf7b1fc81c24a5f71800d52af31527 Mon Sep 17 00:00:00 2001 +From: Samuel Dionne-Riel +Date: Sat, 27 Jun 2020 21:24:22 -0400 +Subject: [PATCH] mt6360: white led defaults to on + +--- + arch/arm64/boot/dts/mediatek/mt6360.dtsi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/mediatek/mt6360.dtsi b/arch/arm64/boot/dts/mediatek/mt6360.dtsi +index 19bc396041e3..373c1687a06a 100644 +--- a/arch/arm64/boot/dts/mediatek/mt6360.dtsi ++++ b/arch/arm64/boot/dts/mediatek/mt6360.dtsi +@@ -93,7 +93,7 @@ + compatible = "mediatek,mt6360_pmu_rgbled"; + mt,led_name = "white", "mt6360_pmu_led2", + "mt6360_pmu_led3", "mt6360_pmu_led4"; +- mt,led_default_trigger = "cc_mode", "cc_mode", ++ mt,led_default_trigger = "default-on", "cc_mode", + "cc_mode", "none"; + }; + core { +-- +2.25.4 + diff --git a/devices/xiaomi-begonia/kernel/default.nix b/devices/xiaomi-begonia/kernel/default.nix index 6d6eba79..bfa88452 100644 --- a/devices/xiaomi-begonia/kernel/default.nix +++ b/devices/xiaomi-begonia/kernel/default.nix @@ -67,6 +67,7 @@ in ./0001-mtkfb-Default-to-RGB-order.patch ./0001-fix-teei-mediatek.patch ./0001-center-logo.patch + ./0001-mt6360-white-led-defaults-to-on.patch ./0003-arch-arm64-Add-config-option-to-fix-bootloader-cmdli.patch ];