From 3d6fc498cb712c2b9de5bc81a9929c9849c4a8b4 Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Wed, 19 Oct 2022 15:43:19 +0530 Subject: [PATCH] ARM: dts: qcom: Add support to read external pmic temperature and voltage Add devicetree nodes to initialize external temperature and voltage reading driver. Change-Id: Iae5c3abbf30fab0ad18214bb2e5da3b34974ba2c --- qcom/cinder-thermal.dtsi | 96 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/qcom/cinder-thermal.dtsi b/qcom/cinder-thermal.dtsi index d35287d6..29dee327 100644 --- a/qcom/cinder-thermal.dtsi +++ b/qcom/cinder-thermal.dtsi @@ -26,6 +26,43 @@ qcom,logic = <1>; }; }; + + aop_pmic_sensor: aop-pmic-sensor@c3f03d8 { + compatible = "qcom,aop-pmic-sensor"; + reg = <0x0c3f03d8 0x28>; + mboxes = <&qmp_aop 0>; + #thermal-sensor-cells = <1>; + + mss-temp { + qcom,pmic-id = <1>; + qcom,type = <0>; + }; + + mx-temp { + qcom,pmic-id = <2>; + qcom,type = <0>; + }; + + cx-temp { + qcom,pmic-id = <3>; + qcom,type = <0>; + }; + + mss-volt { + qcom,pmic-id = <1>; + qcom,type = <1>; + }; + + mx-volt { + qcom,pmic-id = <2>; + qcom,type = <1>; + }; + + cx-volt { + qcom,pmic-id = <3>; + qcom,type = <1>; + }; + }; }; &thermal_zones { @@ -394,4 +431,61 @@ }; }; }; -}; + + cx_temp { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&aop_pmic_sensor 1>; + trips { + thermal-engine-config { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + reset-mon-cfg { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + mx_temp { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&aop_pmic_sensor 2>; + trips { + thermal-engine-config { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + reset-mon-cfg { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + mss_temp { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&aop_pmic_sensor 3>; + trips { + thermal-engine-config { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + reset-mon-cfg { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; +}; \ No newline at end of file