mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
arm/dts: enable leds-indicator-pwm driver
As milan 5G use pm6375 gpio8 to control charging led, so enable leds-indicator-pwm.ko to control led. Change-Id: Id3287569523ec3d4c7e47299ffcaf7b2a9e91450 Signed-off-by: mahj8 <mahj8@lenovo.com> Reviewed-on: https://gerrit.mot.com/2055599 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
d2789148c0
commit
26bcde00e8
1 changed files with 31 additions and 0 deletions
|
|
@ -44,6 +44,37 @@
|
|||
bias-high-impedance;
|
||||
};
|
||||
};
|
||||
|
||||
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"
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&qupv3_se8_i2c {
|
||||
|
|
|
|||
Loading…
Reference in a new issue