From e69d2f203c9b2d2352ff40fff7bbb0aa05d211a9 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Mon, 20 Apr 2020 12:42:11 -0700 Subject: [PATCH 1/2] dt-bindings: thermal: Add support for mmw ADC thermistors Add support for the new mmw related ADC thermistor support. The support includes for the qmi sensors mmw_pa1, mmw_pa2, mmw_pa3, and sdr_mmw_therm. Change-Id: I055194031bba0a617513119b6760f43cf2c4eb98 --- bindings/thermal/qti-qmi-sensor.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/thermal/qti-qmi-sensor.txt b/bindings/thermal/qti-qmi-sensor.txt index e558027e9c91..5c8f0bfc7e80 100644 --- a/bindings/thermal/qti-qmi-sensor.txt +++ b/bindings/thermal/qti-qmi-sensor.txt @@ -57,6 +57,10 @@ Subsystem properties: 24. sys_therm1 25. sys_therm2 26. modem_tsens1 + 27. mmw_pa1 + 28. mmw_pa2 + 29. mmw_pa3 + 30. sdr_mmw_therm Example: From 374ec51be1b78ce3f2abf15ad2d64ebcd1951e55 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Mon, 20 Apr 2020 11:13:51 -0700 Subject: [PATCH 2/2] ARM: dts: msm: Add modem ADC thermistors for Lahaina Add millimeter wave related thermistors from modem to be exposed as thermal zone in lahaina. Change-Id: Ic09b20ba77b17472ab96bddcac0de50730b3d3bb --- qcom/lahaina-thermal-modem.dtsi | 66 ++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/qcom/lahaina-thermal-modem.dtsi b/qcom/lahaina-thermal-modem.dtsi index de5ea26af211..2f48298963ba 100644 --- a/qcom/lahaina-thermal-modem.dtsi +++ b/qcom/lahaina-thermal-modem.dtsi @@ -112,7 +112,11 @@ "qfe_wtr_pa3", "sys_therm1", "sys_therm2", - "modem_tsens1"; + "modem_tsens1", + "mmw_pa1", + "mmw_pa2", + "mmw_pa3", + "sdr_mmw_therm"; }; }; }; @@ -357,4 +361,64 @@ }; }; }; + + modem-mmw-pa1-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&qmi_sensor + (QMI_MODEM_INST_ID+QMI_MMW_PA1)>; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + modem-mmw-pa2-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&qmi_sensor + (QMI_MODEM_INST_ID+QMI_MMW_PA2)>; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + modem-mmw-pa3-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&qmi_sensor + (QMI_MODEM_INST_ID+QMI_MMW_PA3)>; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + modem-sdr-mmw-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&qmi_sensor + (QMI_MODEM_INST_ID+QMI_SDR_MMW)>; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; };