Rtwo/kernel/motorola/sm8550-devicetrees/bindings/power/supply/qcom,battery-charger.txt
2025-09-30 19:22:48 -05:00

67 lines
2.2 KiB
Text

QTI battery charger binding
This binding describes the Qualcomm Technologies, Inc. battery charger device.
QTI battery charger gets and sets power supply properties by communicating with
charger firmware running on the remote subsystem (e.g. DSP) over PMIC Glink.
Refer to Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.txt for
information on "qcom,pmic_glink" device which is used in the example below.
- compatible:
Usage: required
Value type: <stringlist>
Definition: must be "qcom,battery-charger"
- qcom,thermal-mitigation:
Usage: optional
Value type: <prop-encoded-array>
Definition: Array of fast charge current limit values for different
system thermal mitigation levels. This should be a flat
array that denotes the maximum charging current (in uA) for
each thermal level. Elements should be defined in such a
way that the next element is always less than or equal to
the current element (descending order).
- qcom,thermal-mitigation-step:
Usage: optional
Value type: <u32>
Definition: Fast charging current step (in uA) which if specified
would be used to calculate different system thermal mitigation
levels based on the maximum charging current provided by the
charger firmware. This property can be specified only if
"qcom,thermal-mitigation" property is not specified.
Minimum step value is 500000(500 mA).
- qcom,wireless-fw-name:
Usage: optional
Value type: <string>
Definition: Firmware name that needs to be used for updating wireless
charger firmware.
- qcom,shutdown-voltage:
Usage: optional
Value type: <u32>
Definition: Battery voltage (in mV) when shutdown needs to be initiated
when battery SOC reaches 0 and device is not charging.
- qcom,display-panels:
Usage: optional
Value type: <prop-encoded-array>
Definition: Array of one or more phandles of the display panel(s) that
sends the DRM blank/unblank notifications.
= EXAMPLE
&soc {
qcom,pmic_glink {
...
qcom,battery_charger {
compatible = "qcom,battery-charger";
qcom,thermal-mitigation =
<3000000 1500000 1000000 500000>;
qcom,wireless-fw-name = "idt9412.bin";
qcom,shutdown-voltage = <3100>;
};
...
};
};