diff --git a/bindings/thermal/qti-qmi-cdev.txt b/bindings/thermal/qti-qmi-cdev.txt index 127a9d8caecf..d22547641936 100644 --- a/bindings/thermal/qti-qmi-cdev.txt +++ b/bindings/thermal/qti-qmi-cdev.txt @@ -41,6 +41,9 @@ Subsystem properties: "modem" -> for processor passive cooling device, "modem_current" -> for current limiting device, "modem_bw" -> for bus bandwidth limiting device, + "modem_bw_backoff" -> for bus bandwidth limit device with + absolute bandwidth reduction from max bandwidth + in 100mbbs resolution, "vbatt_low" -> BCL vbat mitigation device, "mmw0" -> Millimeter wave limiting device 0, "mmw1" -> Millimeter wave limiting device 1, @@ -53,6 +56,7 @@ Subsystem properties: "mmw_skin3" -> MMW skin mitigation device3, "cpr_cold" -> for cpr restriction, "wlan" -> for modem wlan mitigation device, + "wlan_bw" -> for bus bandwidth limiting device, "cdsp_sw" -> for CDSP DCVS mitigation device, "cdsp_hw" -> for CDSP hardware mitigation device, "mmw_skin0_dsc" -> DSC based MMW skin mitigation diff --git a/bindings/thermal/qti-qmi-sensor.txt b/bindings/thermal/qti-qmi-sensor.txt index 5c8f0bfc7e80..b9a703cf1a14 100644 --- a/bindings/thermal/qti-qmi-sensor.txt +++ b/bindings/thermal/qti-qmi-sensor.txt @@ -61,6 +61,7 @@ Subsystem properties: 28. mmw_pa2 29. mmw_pa3 30. sdr_mmw_therm + 31. msm_skin_therm Example: diff --git a/qcom/shima-thermal.dtsi b/qcom/shima-thermal.dtsi index 400c81e2b65a..fc97b1dddafa 100644 --- a/qcom/shima-thermal.dtsi +++ b/qcom/shima-thermal.dtsi @@ -2,6 +2,23 @@ #include "lahaina-thermal-modem.dtsi" &qmi_tmd { + modem { + modem_current: modem_current { + qcom,qmi-dev-name = "modem_current"; + #cooling-cells = <2>; + }; + + modem_bw_backoff: modem_bw_backoff { + qcom,qmi-dev-name = "modem_bw_backoff"; + #cooling-cells = <2>; + }; + + modem_wlan_bw: modem_wlan_bw { + qcom,qmi-dev-name = "wlan_bw"; + #cooling-cells = <2>; + }; + }; + cdsp { qcom,instance-id = ; @@ -17,6 +34,38 @@ }; }; +&soc { + qmi-ts-sensors { + modem { + qcom,qmi-sensor-names = "pa", + "pa_1", + "qfe_wtr0", + "modem_tsens", + "qfe_mmw0", + "qfe_mmw1", + "qfe_mmw2", + "qfe_mmw3", + "xo_therm", + "qfe_mmw_streamer0", + "qfe_mmw0_mod", + "qfe_mmw1_mod", + "qfe_mmw2_mod", + "qfe_mmw3_mod", + "qfe_ret_pa0", + "qfe_wtr_pa0", + "qfe_wtr_pa1", + "qfe_wtr_pa2", + "qfe_wtr_pa3", + "sys_therm1", + "modem_tsens1", + "mmw_pa1", + "mmw_pa2", + "mmw_pa3", + "msm_skin_therm"; + }; + }; +}; + &cpufreq_hw { qcom,cpu-isolation { compatible = "qcom,cpu-isolate"; @@ -75,6 +124,24 @@ }; &thermal_zones { + /delete-node/ modem-sdr-mmw-usr; + /delete-node/ modem-ambient-usr; + + msm-skin-therm-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&qmi_sensor + (QMI_MODEM_INST_ID+QMI_MSM_SKIN)>; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + aoss-0-usr { polling-delay-passive = <0>; polling-delay = <0>;