From 869e35b81973b3b4240021ea7bbb8f1fe407e75e Mon Sep 17 00:00:00 2001 From: Anjelique Melendez Date: Wed, 28 Feb 2024 15:59:38 -0800 Subject: [PATCH] dt-bindings: qcom,battery-charger: Add qcom,ship-mode-immediate property Currently, charger FW configures and enables ship mode in parallel with shutdown activity. This can cause a race condition leaving the device in a bad state if the device is powering down while SW is still issuing SPMI writes. Add new "qcom,ship-mode-immediate" property to flag that ship mode should be immediately configured after user sets ship_mode_en to avoid this race condition. Change-Id: I16b1e307cac8befff7a1136de1cb522e03a95c46 Signed-off-by: Anjelique Melendez --- bindings/power/supply/qcom,battery-charger.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bindings/power/supply/qcom,battery-charger.yaml b/bindings/power/supply/qcom,battery-charger.yaml index b3de6112..b553855e 100644 --- a/bindings/power/supply/qcom,battery-charger.yaml +++ b/bindings/power/supply/qcom,battery-charger.yaml @@ -54,6 +54,12 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle-array minItems: 1 + qcom,ship-mode-immediate: + description: | + Flag indicating that ship mode will be configured immediately and enabled + after shut down is initiated. + $ref: /schemas/types.yaml#/definitions/flag + required: - compatible