From 074164c29501145ae2faf67f2eb273a40402c03a Mon Sep 17 00:00:00 2001 From: zhongfeihong Date: Thu, 20 Jul 2023 16:05:23 +0800 Subject: [PATCH] vendor/qcom:fogo:Fogo Thermal bringup Adapt to NTC driver fogo: THermal bringup Adapt to NTC driver Change-Id: I8ba63643c13a730b9fccbd804c0e290b458c2b39 Signed-off-by: zhongfeihong Reviewed-on: https://gerrit.mot.com/2682975 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index dfbc3a8cfdb9..95d805f4a8e5 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -299,7 +299,76 @@ }; }; +&pm6125_vadc { + pinctrl-0 = < + &pa_therm2_default + &msm_therm_default + &cam_flash_therm_default + &spk_therm_default>; + + /delete-node/ rfc_cam_therm; + /delete-node/ rear_cam_flash_therm; + + cam_flash_therm { + reg = ; + label = "cam_flash_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + spk_therm { + reg = ; + label = "spk_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm6125_gpios { + /delete-node/ rfc_cam_therm; + /delete-node/ rear_cam_flash_therm; + + cam_flash_therm { + cam_flash_therm_default: cam_flash_therm_default { + pins = "gpio4"; + bias-high-impedance; + }; + }; + + spk_therm { + spk_therm_default: spk_therm_default { + pins = "gpio6"; + bias-high-impedance; + }; + }; +}; + +&pm6125_adc_tm { + /delete-node/ rear_cam_flash_therm; + + spk_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pm6125_adc_tm_iio { + /delete-node/ rfc_cam_therm; + + cam_flash_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &thermal_zones { + /delete-node/ sdm-skin-therm-usr; + /delete-node/ rear-cam-therm-usr; + /delete-node/ camera-therm-usr; sdm-skin-therm-usr { status = "disabled"; };