From e0e4908332e45f68d911a6a697bd14e8f92af68d Mon Sep 17 00:00:00 2001 From: Jiacheng Ou Date: Thu, 7 Apr 2022 11:13:05 +0800 Subject: [PATCH] arm64/dts:miami ntc config miami: ntc bringup Change-Id: I777ada48c9919fc250d76288384f2e2546607f7a Signed-off-by: Jiacheng Ou Reviewed-on: https://gerrit.mot.com/2235699 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 124 ++++++++++++++++----------- 1 file changed, 75 insertions(+), 49 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 4a00384b88b0..552520908b12 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -26,6 +26,7 @@ #include "discrete_charging_miami.dtsi" #include "discrete-rt-pd-manger.dtsi" #include "blair-miami-audio-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -360,6 +361,47 @@ }; }; +&pmr735a_gpios { + camera_therm { + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + &thermal_zones { sdm-skin-therm-usr { status = "disabled"; @@ -382,36 +424,6 @@ xo-therm-usr { status = "disabled"; }; - chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - 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"; - }; - }; - }; - - usb_conn_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - 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"; - }; - }; - }; - msm_therm { polling-delay-passive = <0>; polling-delay = <0>; @@ -427,8 +439,7 @@ }; }; - - rfc_camera_therm { + chg_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -443,22 +454,7 @@ }; }; - cam_flash_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_therm1 { + pa_therm2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -473,7 +469,7 @@ }; }; - pa_therm2 { + pa_therm1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -502,6 +498,36 @@ }; }; }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; }; &gcc {