Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61792746 authored by yutingshih's avatar yutingshih Committed by yutingshih(97855)
Browse files

The ramp steps and timing of LED breath display modified

Root cause:
N/A

How to fix:
Ramp steps and timing modified

Feature:
Issue:
Depends-On:

RiskArea:
LED

Change-Id: Ie4eda07475a3ab543d77563b4ac5f4bc0bd94e58
(cherry picked from commit 82edac0eb7620bf66b6778be6e64e889f1f77c04)
parent 95029761
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
@@ -581,30 +581,80 @@
			nvmem = <&pmi632_sdam7>;
			qcom,pbs-client = <&pmi632_pbs_client3>;
			qcom,lut-sdam-base = <0x80>;
		//<2019/10/25-Yuting Shih.[FAIRPHONE][MISC][COMMON][LED][][]Modified for breath ramp and timing.
		#if 1
			qcom,lut-patterns = <0 0 0 0 0 0 0 0 0 0 2 16 30 44 58 72 86 100 100
						100 100 86 72 58 44 30 16 2 0 0 0 0 0 0 0 0 0 0>;
		#else
			/* Code default */
			qcom,lut-patterns = <0 0 0 14 28 42 56 70 84 100
						100 84 70 56 42 28 14 0 0 0>;
		#endif
		//>2019/10/25-Yuting Shih.[FAIRPHONE][MISC][COMMON][LED][][].
			lpg@1 {
				qcom,lpg-chan-id = <1>;
		//<2019/10/25-Yuting Shih.[FAIRPHONE][MISC][COMMON][LED][][]Modified for breath ramp and timing.
		#if 1
				qcom,ramp-step-ms = <80>;
				qcom,ramp-pause-hi-count = <80>;
				qcom,ramp-pause-lo-count = <80>;
				qcom,ramp-low-index = <0>;
				qcom,ramp-high-index = <37>;
				//qcom,ramp-toggle; /* ramp from high to low */
				//qcom,ramp-from-low-to-high;
				qcom,ramp-pattern-repeat;
		#else
			/* Code default */
				qcom,ramp-step-ms = <200>;
				qcom,ramp-low-index = <0>;
				qcom,ramp-high-index = <19>;
				qcom,ramp-pattern-repeat;
		#endif
		//>2019/10/25-Yuting Shih.[FAIRPHONE][MISC][COMMON][LED][][].
				qcom,lpg-sdam-base = <0x48>;
			};
			lpg@2 {
				qcom,lpg-chan-id = <2>;
		//<2019/10/25-Yuting Shih.[FAIRPHONE][MISC][COMMON][LED][][]Modified for breath ramp and timing.
		#if 1
				qcom,ramp-step-ms = <80>;
				qcom,ramp-pause-hi-count = <80>;
				qcom,ramp-pause-lo-count = <80>;
				qcom,ramp-low-index = <0>;
				qcom,ramp-high-index = <37>;
				//qcom,ramp-toggle; /* ramp from high to low */
				//qcom,ramp-from-low-to-high;
				qcom,ramp-pattern-repeat;
		#else
			/* Code default */
				qcom,ramp-step-ms = <200>;
				qcom,ramp-low-index = <0>;
				qcom,ramp-high-index = <19>;
				qcom,ramp-pattern-repeat;
		#endif
		//>2019/10/25-Yuting Shih.[FAIRPHONE][MISC][COMMON][LED][][].
				qcom,lpg-sdam-base = <0x56>;
			};
			lpg@3 {
				qcom,lpg-chan-id = <3>;
		//<2019/10/25-Yuting Shih.[FAIRPHONE][MISC][COMMON][LED][][]Modified for breath ramp and timing.
		#if 1
				qcom,ramp-step-ms = <80>;
				qcom,ramp-pause-hi-count = <80>;
				qcom,ramp-pause-lo-count = <80>;
				qcom,ramp-low-index = <0>;
				qcom,ramp-high-index = <37>;
				//qcom,ramp-toggle; /* ramp from high to low */
				//qcom,ramp-from-low-to-high;
				qcom,ramp-pattern-repeat;
		#else
			/* Code default */
				qcom,ramp-step-ms = <200>;
				qcom,ramp-low-index = <0>;
				qcom,ramp-high-index = <19>;
				qcom,ramp-pattern-repeat;
		#endif
		//>2019/10/25-Yuting Shih.[FAIRPHONE][MISC][COMMON][LED][][].
				qcom,lpg-sdam-base = <0x64>;
			};
		};