以MSM8953平台为例,需要添加以下两条属性(默认为红灯)
&pmi8950_charger {
qcom,battery-data = <&qrd_batterydata>;
qcom,float-voltage-mv = <4350>;
qcom,override-usb-current;
qcom,chg-led-sw-controls;
qcom,chg-led-support;
/*qcom,external-typec;
qcom,typec-psy-name = "typec";*/
qcom,thermal-mitigation = <2250 2250 2250 2250 2200 700 0>;
status = "okay";
}