From c36f6e64a46f75593198d9b9cb9535ae76a4c66a Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Fri, 16 Jul 2021 13:58:24 -0700 Subject: [PATCH 1/2] dt-bindings: add shutdown voltage for qcom,battery-charger Add shutdown voltage which if specified can initiate a shutdown when battery voltage goes below that threshold, battery SOC is 0 and device is not charging. Change-Id: I592e6abe39ec76c64bf87e9e2aeac9b59cd6a7f6 --- bindings/power/supply/qcom,battery-charger.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bindings/power/supply/qcom,battery-charger.txt b/bindings/power/supply/qcom,battery-charger.txt index 29dd7d1e..f0c8ca49 100644 --- a/bindings/power/supply/qcom,battery-charger.txt +++ b/bindings/power/supply/qcom,battery-charger.txt @@ -28,6 +28,12 @@ information on "qcom,pmic_glink" device which is used in the example below. Definition: Firmware name that needs to be used for updating wireless charger firmware. +- qcom,shutdown-voltage: + Usage: optional + Value type: + Definition: Battery voltage (in mV) when shutdown needs to be initiated + when battery SOC reaches 0 and device is not charging. + = EXAMPLE &soc { @@ -38,6 +44,7 @@ information on "qcom,pmic_glink" device which is used in the example below. qcom,thermal-mitigation = <3000000 1500000 1000000 500000>; qcom,wireless-fw-name = "idt9412.bin"; + qcom,shutdown-voltage = <3100>; }; ... }; From 7e0e6abe013dedfa6752ac63b2c932de9ff0b182 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Fri, 16 Jul 2021 14:02:47 -0700 Subject: [PATCH 2/2] ARM: dts: msm: add shutdown voltage for Waipio platforms Add shutdown voltage for battery_charger on Waipio platforms so that a shutdown can be initiated immediately when battery voltage goes below that threshold, battery SOC is 0 and device is not charging. Change-Id: Id7579f2df3093d0ebd63b48c6b818395830c28a8 --- qcom/waipio-mtp.dtsi | 1 + qcom/waipio-qrd-2s.dtsi | 1 + qcom/waipio-qrd.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/qcom/waipio-mtp.dtsi b/qcom/waipio-mtp.dtsi index 8bc0bbf2..57499465 100644 --- a/qcom/waipio-mtp.dtsi +++ b/qcom/waipio-mtp.dtsi @@ -96,6 +96,7 @@ &battery_charger { qcom,thermal-mitigation = <3000000 1500000 1000000 500000>; qcom,wireless-fw-name = "idt9415.bin"; + qcom,shutdown-voltage = <3100>; }; &qupv3_se9_i2c { diff --git a/qcom/waipio-qrd-2s.dtsi b/qcom/waipio-qrd-2s.dtsi index 2a98fb4e..75b2624a 100644 --- a/qcom/waipio-qrd-2s.dtsi +++ b/qcom/waipio-qrd-2s.dtsi @@ -5,4 +5,5 @@ 7500000 7000000 6500000 6000000 5500000 5000000 4500000 4000000 3500000 3000000 2500000 2000000 1500000 1000000 500000>; + qcom,shutdown-voltage = <6200>; }; diff --git a/qcom/waipio-qrd.dtsi b/qcom/waipio-qrd.dtsi index 6f5f120d..9f39f30d 100644 --- a/qcom/waipio-qrd.dtsi +++ b/qcom/waipio-qrd.dtsi @@ -142,6 +142,7 @@ 6000000 5500000 5000000 4500000 4000000 3500000 3000000 2500000 2000000 1500000 1000000 500000>; qcom,wireless-fw-name = "idt9415.bin"; + qcom,shutdown-voltage = <3100>; }; &qupv3_se9_i2c {