From c59063c0b8b46180b8c858a61ac72176a8bbf643 Mon Sep 17 00:00:00 2001 From: ansharma Date: Tue, 27 Dec 2016 17:53:13 +0530 Subject: 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 --- arch/arm/boot/dts/qcom/msm-pm660l.dtsi | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/qcom/msm-pm660l.dtsi b/arch/arm/boot/dts/qcom/msm-pm660l.dtsi index a9820cfbc02c..d0033d5bf3bc 100644 --- a/arch/arm/boot/dts/qcom/msm-pm660l.dtsi +++ b/arch/arm/boot/dts/qcom/msm-pm660l.dtsi @@ -167,6 +167,17 @@ qcom,supported-sizes = <6>, <9>; qcom,ramp-index = <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 { @@ -197,8 +208,12 @@ qcom,max-current = <12>; qcom,default-state = "off"; linux,name = "red"; - linux,default-trigger = - "battery-charging"; + qcom,start-idx = <0>; + 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 { @@ -210,7 +225,6 @@ qcom,max-current = <12>; qcom,default-state = "off"; linux,name = "green"; - linux,default-trigger = "battery-full"; }; blue_led: qcom,rgb_2 { @@ -222,7 +236,6 @@ qcom,max-current = <12>; qcom,default-state = "off"; linux,name = "blue"; - linux,default-trigger = "boot-indication"; }; }; -- cgit v1.2.3