From 2c18ddc0a1b32a278bfbdff6aff7aad8f965bb3a Mon Sep 17 00:00:00 2001 From: liyiying Date: Tue, 7 Dec 2021 17:32:57 +0800 Subject: [PATCH] rhodec add thermal node Modify: add thermal node to fix tcmd test error problem Change-Id: I0418d3fdc0c0076cb7e10bfdeeb72a67c4a32b38 Signed-off-by: liyiying Reviewed-on: https://gerrit.mot.com/2137203 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 183 +++++++++++++++++---------- 1 file changed, 116 insertions(+), 67 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 97ad8f3f1903..3b69fbfa1e15 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -222,6 +222,40 @@ }; }; +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; @@ -329,9 +363,54 @@ status = "disabled"; }; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -345,8 +424,8 @@ }; quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; @@ -359,69 +438,9 @@ }; }; - msm_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - ufs_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - camera_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - xo_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -433,8 +452,38 @@ }; }; }; -}; + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + +}; &pm6125_gpios { indicator_led {