OSDN Git Service

ARM: dts: msm: modify charging LED configuration for msm8998 MTP/QRD
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Mon, 20 Mar 2017 19:36:22 +0000 (12:36 -0700)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Mon, 20 Mar 2017 19:52:48 +0000 (12:52 -0700)
Currently, red and green LEDs are used for showing charging and
full status. Since they're configured with battery-charging and
battery-full LED triggers, power supply framework updates these
LEDS for battery power supply based on charging status. Remove
these default trigger configurations so that these LEDs can be
controlled by userspace in a better way. Also, specify blinking
configuration for red LED so that it can be used for indicating
HVDCP chargers.

CRs-Fixed: 2007466
Change-Id: I3e06582e7e1b6b8a588e7f5fb7b31bd01be16cea
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
arch/arm/boot/dts/qcom/msm8998-mtp.dtsi
arch/arm/boot/dts/qcom/msm8998-qrd.dtsi

index dd10c3b..f7dcfc7 100644 (file)
        qcom,led-strings-list = [00 01];
 };
 
+&red_led {
+       /delete-property/ linux,default-trigger;
+       qcom,start-idx = <0>;
+       qcom,idx-len = <10>;
+       qcom,duty-pcts = [00 19 32 4b 64
+                       64 4b 32 19 00];
+       qcom,use-blink;
+};
+
+&green_led {
+       /delete-property/ linux,default-trigger;
+};
+
 &dsi_dual_nt35597_video {
        qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
        qcom,mdss-dsi-bl-min-level = <1>;
index d67d23b..1c2db68 100644 (file)
        qcom,led-strings-list = [01 02];
 };
 
+&red_led {
+       /delete-property/ linux,default-trigger;
+       qcom,start-idx = <0>;
+       qcom,idx-len = <10>;
+       qcom,duty-pcts = [00 19 32 4b 64
+                       64 4b 32 19 00];
+       qcom,use-blink;
+};
+
+&green_led {
+       /delete-property/ linux,default-trigger;
+};
+
 &dsi_dual_nt35597_video {
        qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
        qcom,mdss-dsi-bl-min-level = <1>;