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:
mahj8 2021-08-31 18:28:40 +08:00 • committed by panyq6
commit 26bcde00e8

View file

@ -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 {