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:
mahj8 2021-07-09 16:27:42 +08:00 • committed by panyq6
commit c4a19df189

View file

@ -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"
};
};
};