From a2239fe9fce9ededf22c177ea981691d5e1e64c1 Mon Sep 17 00:00:00 2001 From: Minghao Zhang Date: Tue, 23 Feb 2021 09:58:46 +0800 Subject: [PATCH] ARM: dts: qcom: thermal zones definition for thermistors on Lahaina HHG On Lahaina HHG quiet-therm-usr uses PM8350 AMUX2 channel, qtm-w-therm-usr uses PM8350 AMUX4 channel and qtm-n-therm-usr uses PM8350 GPIO1 channel. Meanwhile disable camera-therm-usr, rear-cam-therm-usr and tof-therm-usr using these channels. Change-Id: I4bf20074e2c4f8ef815667ff2e8c3e5574522e47 --- qcom/lahaina-hhg.dtsi | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/qcom/lahaina-hhg.dtsi b/qcom/lahaina-hhg.dtsi index ef489b1ebd86..34f46a9a2a32 100644 --- a/qcom/lahaina-hhg.dtsi +++ b/qcom/lahaina-hhg.dtsi @@ -301,4 +301,61 @@ gpu-skin-avg-step { disable-thermal-zone; }; + + camera-therm-usr { + disable-thermal-zone; + }; + + rear-cam-therm-usr { + disable-thermal-zone; + }; + + tof-therm-usr { + disable-thermal-zone; + }; + + quiet-therm-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PM8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm-w-therm-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PM8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm-n-therm-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PM8350_ADC7_AMUX_THM5_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; };