mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
arch/dts: enable leds-indicator-pwm driver
As cypfq use pm6375 gpio8 to control charging led, so enable leds-indicator-pwm.ko to control led. Change-Id: Ic96865d46872751eacbc36d351d2266b397cfd4e Signed-off-by: mahj8 <mahj8@lenovo.com> Reviewed-on: https://gerrit.mot.com/2007933 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai <chailu1@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b9f5ddee5e
commit
c4a19df189
1 changed files with 33 additions and 0 deletions
|
|
@ -544,3 +544,36 @@
|
|||
&pm7250b_qg {
|
||||
qcom,qg-iterm-ma = <500>;
|
||||
};
|
||||
|
||||
&pm6125_gpios {
|
||||
indicator_led {
|
||||
indicator_led_default: indicator_led_default {
|
||||
pins = "gpio8";
|
||||
function = "func1";
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
indicator_led {
|
||||
compatible = "qcom,indicator-pwm-led";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&indicator_led_default>;
|
||||
indicator_led {
|
||||
label = "charging";
|
||||
led-sources = <0>;
|
||||
pwms = <&pm6125_pwm 0 1000000>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spmi_bus {
|
||||
qcom,pm6125@1 {
|
||||
#address-cells = <1>;
|
||||
qcom,pwms@b300 {
|
||||
status = "ok"
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue