OSDN Git Service

dts: xiaomi: msm8998: rewrite notification led configuration
authorDemon000 <demonsingur@gmail.com>
Thu, 16 Nov 2017 19:21:20 +0000 (21:21 +0200)
committerArian <arian.kulmer@web.de>
Tue, 19 Nov 2019 15:24:28 +0000 (16:24 +0100)
Taken from sambar.

* smooth out duty percents
* increase low and high duration
* lower ramp step duration
* allow reverse, high, and low configuration

Change-Id: I9727a923351a3e3403ecfbafb993121bb74112ad

arch/arm/boot/dts/qcom/xiaomi/chiron-msm8998-mtp.dtsi
arch/arm/boot/dts/qcom/xiaomi/sagit-msm8998-mtp.dtsi

index 030d80e..bef28d1 100644 (file)
 
 &red_led { /* Notification LED */
        qcom,use-blink;
+       qcom,start-idx = <0>;
+       qcom,idx-len = <8>;
+       qcom,duty-pcts = [ 00 0E 1C 2A 38 46 54 64 ];
+       qcom,lut-flags = <31>; /* loop, ramp up, reverse, pause hi, pause lo */
+       qcom,pause-lo = <500>;
+       qcom,pause-hi = <500>;
+       qcom,ramp-step-ms = <50>;
        linux,name = "white";
 };
 
index ae157c9..ffc2d1e 100644 (file)
 
 &red_led { /* Notification LED */
        qcom,use-blink;
+       qcom,start-idx = <0>;
+       qcom,idx-len = <8>;
+       qcom,duty-pcts = [ 00 0E 1C 2A 38 46 54 64 ];
+       qcom,lut-flags = <31>; /* loop, ramp up, reverse, pause hi, pause lo */
+       qcom,pause-lo = <500>;
+       qcom,pause-hi = <500>;
+       qcom,ramp-step-ms = <50>;
        linux,name = "white";
 };