ARM: dts: msm: add Tri-color RGB LEDs on pmicobalt
Add RGB LEDs that are present on pmicobalt. These LEDs are used for applications like notification of charging indicator and other user defined applications. Since LPG channels 3,4 and 5 are assigned for Blue, Green and Red LEDs on pmicobalt, keep them enabled in device tree. CRs-Fixed: 1037821 Change-Id: I1a40bbe46e689d8c98f31cfef3a6743856288127 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
parent
f9d0fd115f
commit
f357fc8f60
1 changed files with 44 additions and 3 deletions
|
@ -383,7 +383,6 @@
|
||||||
qcom,supported-sizes = <6>, <9>;
|
qcom,supported-sizes = <6>, <9>;
|
||||||
qcom,ramp-index = <2>;
|
qcom,ramp-index = <2>;
|
||||||
#pwm-cells = <2>;
|
#pwm-cells = <2>;
|
||||||
status = "disabled";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pmicobalt_pwm_4: pwm@b400 {
|
pmicobalt_pwm_4: pwm@b400 {
|
||||||
|
@ -396,7 +395,6 @@
|
||||||
qcom,supported-sizes = <6>, <9>;
|
qcom,supported-sizes = <6>, <9>;
|
||||||
qcom,ramp-index = <3>;
|
qcom,ramp-index = <3>;
|
||||||
#pwm-cells = <2>;
|
#pwm-cells = <2>;
|
||||||
status = "disabled";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pmicobalt_pwm_5: pwm@b500 {
|
pmicobalt_pwm_5: pwm@b500 {
|
||||||
|
@ -409,7 +407,6 @@
|
||||||
qcom,supported-sizes = <6>, <9>;
|
qcom,supported-sizes = <6>, <9>;
|
||||||
qcom,ramp-index = <4>;
|
qcom,ramp-index = <4>;
|
||||||
#pwm-cells = <2>;
|
#pwm-cells = <2>;
|
||||||
status = "disabled";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pmicobalt_pwm_6: pwm@b600 {
|
pmicobalt_pwm_6: pwm@b600 {
|
||||||
|
@ -425,6 +422,50 @@
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
qcom,leds@d000 {
|
||||||
|
compatible = "qcom,leds-qpnp";
|
||||||
|
reg = <0xd000 0x100>;
|
||||||
|
label = "rgb";
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
red_led: qcom,rgb_0 {
|
||||||
|
label = "rgb";
|
||||||
|
qcom,id = <3>;
|
||||||
|
qcom,mode = "pwm";
|
||||||
|
pwms = <&pmicobalt_pwm_5 0 0>;
|
||||||
|
qcom,pwm-us = <1000>;
|
||||||
|
qcom,max-current = <12>;
|
||||||
|
qcom,default-state = "off";
|
||||||
|
linux,name = "red";
|
||||||
|
linux,default-trigger =
|
||||||
|
"battery-charging";
|
||||||
|
};
|
||||||
|
|
||||||
|
green_led: qcom,rgb_1 {
|
||||||
|
label = "rgb";
|
||||||
|
qcom,id = <4>;
|
||||||
|
qcom,mode = "pwm";
|
||||||
|
pwms = <&pmicobalt_pwm_4 0 0>;
|
||||||
|
qcom,pwm-us = <1000>;
|
||||||
|
qcom,max-current = <12>;
|
||||||
|
qcom,default-state = "off";
|
||||||
|
linux,name = "green";
|
||||||
|
linux,default-trigger = "battery-full";
|
||||||
|
};
|
||||||
|
|
||||||
|
blue_led: qcom,rgb_2 {
|
||||||
|
label = "rgb";
|
||||||
|
qcom,id = <5>;
|
||||||
|
qcom,mode = "pwm";
|
||||||
|
pwms = <&pmicobalt_pwm_3 0 0>;
|
||||||
|
qcom,pwm-us = <1000>;
|
||||||
|
qcom,max-current = <12>;
|
||||||
|
qcom,default-state = "off";
|
||||||
|
linux,name = "blue";
|
||||||
|
linux,default-trigger = "boot-indication";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
labibb: qpnp-labibb-regulator {
|
labibb: qpnp-labibb-regulator {
|
||||||
compatible = "qcom,qpnp-labibb-regulator";
|
compatible = "qcom,qpnp-labibb-regulator";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
|
|
Loading…
Add table
Reference in a new issue