From adfe4faf765df0a56afae35c23e801b8ad718946 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Wed, 7 Jul 2021 14:18:48 +0800 Subject: [PATCH] arm/dts: config ntc for corfuq and corfur dts/ntc config ntc for corfuq and corfur product Change-Id: Ia75809ce649690ce41d6466bc3bb364c088a7e3d Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2004470 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-corfuq-common-overlay.dtsi | 33 +++++++++++++++------------- qcom/holi-corfur-common-overlay.dtsi | 32 ++++++++++++++------------- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index d0ab4053520f..1c1bc992e88f 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -15,7 +15,6 @@ //#include "corfup-touchscreen.dtsi" //#include "corfup-fps-overlay.dtsi" //#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -//#include "moto_therm_sys_temp.dtsi" #include "holi-pm6125-moto-common-overlay.dtsi" @@ -30,6 +29,7 @@ #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" #include "corfup-charger.dtsi" #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" @@ -544,7 +544,6 @@ }; }; -/* &thermal_zones { pa-therm0-usr { status = "disabled"; @@ -573,11 +572,15 @@ xo-therm-usr { status = "disabled"; }; + rear-cam-therm-usr { + status = "disabled"; + }; + pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -587,11 +590,12 @@ }; }; }; + msm_therm { polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -602,10 +606,10 @@ }; }; pa_therm3 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -616,10 +620,10 @@ }; }; pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -633,7 +637,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -689,7 +693,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -714,7 +718,6 @@ }; }; }; -*/ &pm8008_8 { status = "disabled"; diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 08723770fba7..56b2b9f0fd2b 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -15,7 +15,6 @@ //#include "corfup-touchscreen.dtsi" //#include "corfup-fps-overlay.dtsi" //#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -//#include "moto_therm_sys_temp.dtsi" #include "holi-pm6125-moto-common-overlay.dtsi" @@ -31,6 +30,7 @@ #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" #include "corfup-charger.dtsi" &smb1394 { @@ -545,7 +545,6 @@ }; }; -/* &thermal_zones { pa-therm0-usr { status = "disabled"; @@ -574,11 +573,15 @@ xo-therm-usr { status = "disabled"; }; + rear-cam-therm-usr { + status = "disabled"; + }; + pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -592,7 +595,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -603,10 +606,10 @@ }; }; pa_therm3 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -617,10 +620,10 @@ }; }; pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -634,7 +637,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -690,7 +693,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -715,7 +718,6 @@ }; }; }; -*/ &pm8008_8 { status = "disabled";