From da637df205a5f07c311ad7aab78f7740e0248890 Mon Sep 17 00:00:00 2001 From: Anjelique Melendez Date: Tue, 27 Feb 2024 10:55:09 -0800 Subject: [PATCH] ARM: dts: qcom: Add pm8550_pa_therm2 ADC channel for sun Add the pm8550_pa_therm2 ADC channel as well as the corresponding thermal zone device which can be used by thermal SW. Change-Id: I2c583ca8c00a67a122b6c1b7622436bcf8058165 Signed-off-by: Anjelique Melendez --- qcom/sun-pmic-overlay.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/qcom/sun-pmic-overlay.dtsi b/qcom/sun-pmic-overlay.dtsi index 47e438d1..f57bdfed 100644 --- a/qcom/sun-pmic-overlay.dtsi +++ b/qcom/sun-pmic-overlay.dtsi @@ -203,6 +203,15 @@ qcom,adc-tm-type = <1>; }; + pm8550_pa_therm2 { + reg = ; + label = "pm8550_pa_therm_2"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + qcom,adc-tm-type = <1>; + }; + pm8550_rear_tof_therm { reg = ; label = "pm8550_rear_tof_therm"; @@ -476,6 +485,25 @@ }; }; + sys-therm-7 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX1_GPIO3_100K_PU>; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + active-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + sys-therm-8 { polling-delay-passive = <0>; polling-delay = <0>;