From dc4c75aa136601bd160f187d761d76366ea4446b Mon Sep 17 00:00:00 2001 From: Rakesh Kota Date: Mon, 5 Sep 2022 12:53:50 +0530 Subject: [PATCH] ARM: dts: msm: Add wailua ADC for neo sg idp hmt Add wailua ADC channels and ADC_TM for neo sg idp with hamilton attach. Change-Id: I570b437f5449d3804c4766e4a6ab3eb1277e9ab4 --- qcom/neo-sg-idp-hmt.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/neo-sg-idp-hmt.dtsi b/qcom/neo-sg-idp-hmt.dtsi index f9e058d5..202ee883 100644 --- a/qcom/neo-sg-idp-hmt.dtsi +++ b/qcom/neo-sg-idp-hmt.dtsi @@ -3,3 +3,30 @@ &soc { }; +&pm8150_vadc { + pm8150_wlan_therm { + reg = ; + label = "pm8150_wlan_temp"; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm8150_adc_tm { + io-channels = <&pm8150_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm8150_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm8150_vadc ADC5_XO_THERM_100K_PU>; + + pm8150_wlan_therm { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + }; +}; + +&thermal_zones { + sys-therm-1 { + thermal-sensors = <&pm8150_adc_tm ADC5_AMUX_THM2_100K_PU>; + }; +};