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

Commit 8fc5836b authored by Abinaya P's avatar Abinaya P
Browse files

ARM: dts: msm: add blink support for GPLED



Existing implementation does not support blink functionality for
GPLED. Add a DT parameter qcom,use-blink to add blink sysfs entry
for switching into lpg mode when GPLED is to be used for blinking.

Change-Id: I1d502eba30d87f3f7e6439d6a4d4e4d286d84528
Signed-off-by: default avatarAbinaya P <abinayap@codeaurora.org>
parent 5345f828
Loading
Loading
Loading
Loading
+26 −5
Original line number Diff line number Diff line
@@ -139,21 +139,30 @@
			qcom,row-id = <0>;
			qcom,row-src-en;
			qcom,always-on;
			qcom,start-idx = <1>;
			qcom,ramp-step-ms = <120>;
			qcom,duty-pcts = [00 00 00 00 64
					64 00 00 00 00];
			qcom,use-blink;
			qcom,in-order-command-processing;
		};

		qcom,kpdbl2 {
			label = "kpdbl";
			linux,name = "kpdbl-lut-2";
			qcom,mode = "lpg";
			linux,name = "kpdbl-pwm-2";
			qcom,mode = "pwm";
			pwms = <&pm8941_pwm_10 0 0>;
			qcom,pwm-us = <1000>;
			qcom,start-idx = <1>;
			qcom,duty-pcts = [00 00 00 00 64
					64 00 00 00 00];
			qcom,id = <7>;
			qcom,max-current = <20>;
			qcom,row-id = <1>;
			qcom,row-src-en;
			qcom,start-idx = <1>;
			qcom,ramp-step-ms = <120>;
			qcom,duty-pcts = [00 00 00 00 64
					64 00 00 00 00];
			qcom,use-blink;
			qcom,in-order-command-processing;
		};

		qcom,kpdbl3 {
@@ -166,6 +175,12 @@
			qcom,max-current = <20>;
			qcom,row-id = <2>;
			qcom,row-src-en;
			qcom,start-idx = <1>;
			qcom,ramp-step-ms = <120>;
			qcom,duty-pcts = [00 00 00 00 64
					64 00 00 00 00];
			qcom,use-blink;
			qcom,in-order-command-processing;
		};

		qcom,kpdbl4 {
@@ -178,6 +193,12 @@
			qcom,max-current = <20>;
			qcom,row-id = <3>;
			qcom,row-src-en;
			qcom,start-idx = <1>;
			qcom,ramp-step-ms = <120>;
			qcom,duty-pcts = [00 00 00 00 64
					64 00 00 00 00];
			qcom,use-blink;
			qcom,in-order-command-processing;
		};
	};
};