From 010eb46e410bd427d73c9dd9ebd2ed555de8b89f Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Mon, 11 Nov 2024 12:53:41 +0530 Subject: [PATCH] ARM: dts: qcom: Update vbat thermal zone and pmxr2230 bcl compatible for tuna This change adds vbat thermal zone and updates pmxr2230 bcl compatible. Change-Id: Ie058a9bb53e4b1c0a4c2fd2ea82f844e3ecddb1c Signed-off-by: Nitesh Kumar --- qcom/pm7550ba.dtsi | 27 +++++++++++++++++++++++++++ qcom/pmxr2230.dtsi | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/qcom/pm7550ba.dtsi b/qcom/pm7550ba.dtsi index 534a7689..d526e3b8 100644 --- a/qcom/pm7550ba.dtsi +++ b/qcom/pm7550ba.dtsi @@ -195,6 +195,33 @@ }; }; + vbat { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm7550ba_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"; + }; + }; + }; + + pm7550ba-bcl-lvl0 { polling-delay-passive = <50>; polling-delay = <0>; diff --git a/qcom/pmxr2230.dtsi b/qcom/pmxr2230.dtsi index 6a3e5b4c..1bc55ab0 100644 --- a/qcom/pmxr2230.dtsi +++ b/qcom/pmxr2230.dtsi @@ -170,7 +170,7 @@ }; pmxr2230_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>,