From 4a76c88a50e75464f4d12cbaba68fbe990ed4910 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 13 Apr 2021 16:50:05 +0800 Subject: [PATCH] arm/dts: bring up NTC for corfup product arm/dts/ntc bring up NTC for corfup product Change-Id: I7684a2879fbca80b0868c9853c672f014f28136b Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1922731 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yongbin Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 56 ++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 7cc8f784f956..ec7f4925e377 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -284,6 +284,28 @@ }; }; +&pm7250b_vadc { + cp_therm { + reg = ; + label = "cp_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; + + cp_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &thermal_zones { pa-therm0-usr { status = "disabled"; @@ -396,9 +418,9 @@ }; }; }; - cam_flash_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + conn_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; wake-capable-sensor; @@ -410,6 +432,34 @@ }; }; }; + cp_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; xo_therm { polling-delay-passive = <5000>; polling-delay = <20000>;