From f040ca6b4d4b535e970f2f44e3060f055b23be71 Mon Sep 17 00:00:00 2001 From: Minghao Zhang Date: Thu, 26 Sep 2024 14:54:31 +0800 Subject: [PATCH] ARM: dts: qcom: Update vbat thermal zone and pm8550 bcl compatible for sun This change adds vbat thermal zone and updates pm8550 bcl compatible. Change-Id: Icaabef50e510ba9a8dc2f40504d8139518f2ea88 Signed-off-by: Minghao Zhang --- qcom/pm8550.dtsi | 2 +- qcom/pmih010x.dtsi | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/qcom/pm8550.dtsi b/qcom/pm8550.dtsi index 59e97e28..8a4da186 100644 --- a/qcom/pm8550.dtsi +++ b/qcom/pm8550.dtsi @@ -63,7 +63,7 @@ }; pm8550_bcl: bcl@4700 { - compatible = "qcom,bcl-v5"; + compatible = "qcom,pm8550-bcl-v5"; reg = <0x4700 0x100>; interrupts = <0x1 0x47 0x0 IRQ_TYPE_NONE>, <0x1 0x47 0x1 IRQ_TYPE_NONE>, diff --git a/qcom/pmih010x.dtsi b/qcom/pmih010x.dtsi index 0bcc96fb..d35855b9 100644 --- a/qcom/pmih010x.dtsi +++ b/qcom/pmih010x.dtsi @@ -353,6 +353,32 @@ }; }; + vbat { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pmih010x_bcl 2>; + + trips { + vbat_lvl0:vbat-lvl0 { + temperature = <2800>; + hysteresis = <100>; + type = "passive"; + }; + + vbat_lvl1:vbat-lvl1 { + temperature = <2600>; + hysteresis = <100>; + type = "passive"; + }; + + vbat_lvl2:vbat-lvl2 { + temperature = <2300>; + hysteresis = <100>; + type = "passive"; + }; + }; + }; + pmih010x-bcl-lvl0 { polling-delay-passive = <50>; polling-delay = <0>;