ARM: dts: msm: Enable red LED blinking for pm660

Add LPG and PWM parameters to blink the red LED. This is controlled by
userspace during charging.
Disable the battery-charging LED triggers to avoid conflicting LED control
by userspace and kernel battery-charging events.

CRs-Fixed: 1106738
Change-Id: Ic1c0f7ef7f8144fade05cc06db3cf87bce55c236
Signed-off-by: ansharma <ansharma@codeaurora.org>
This commit is contained in:
ansharma 2016-12-27 17:53:13 +05:30
parent 2f817b68f0
commit c59063c0b8

View file

@ -167,6 +167,17 @@
qcom,supported-sizes = <6>, <9>; qcom,supported-sizes = <6>, <9>;
qcom,ramp-index = <2>; qcom,ramp-index = <2>;
#pwm-cells = <2>; #pwm-cells = <2>;
qcom,period = <6000000>;
qcom,lpg {
label = "lpg";
cell-index = <0>;
qcom,duty-percents =
<0x01 0x0a 0x14 0x1e 0x28 0x32 0x3c
0x46 0x50 0x5a 0x64
0x64 0x5a 0x50 0x46 0x3c 0x32 0x28 0x1e
0x14 0x0a 0x01>;
};
}; };
pm660l_pwm_4: pwm@b400 { pm660l_pwm_4: pwm@b400 {
@ -197,8 +208,12 @@
qcom,max-current = <12>; qcom,max-current = <12>;
qcom,default-state = "off"; qcom,default-state = "off";
linux,name = "red"; linux,name = "red";
linux,default-trigger = qcom,start-idx = <0>;
"battery-charging"; qcom,idx-len = <22>;
qcom,duty-pcts =
[01 0a 14 1e 28 32 3c 46 50 5a 64
64 5a 50 46 3c 32 28 1e 14 0a 01];
qcom,use-blink;
}; };
green_led: qcom,rgb_1 { green_led: qcom,rgb_1 {
@ -210,7 +225,6 @@
qcom,max-current = <12>; qcom,max-current = <12>;
qcom,default-state = "off"; qcom,default-state = "off";
linux,name = "green"; linux,name = "green";
linux,default-trigger = "battery-full";
}; };
blue_led: qcom,rgb_2 { blue_led: qcom,rgb_2 {
@ -222,7 +236,6 @@
qcom,max-current = <12>; qcom,max-current = <12>;
qcom,default-state = "off"; qcom,default-state = "off";
linux,name = "blue"; linux,name = "blue";
linux,default-trigger = "boot-indication";
}; };
}; };