Loading Documentation/devicetree/bindings/thermal/qti-qmi-cdev.txt +6 −4 Original line number Diff line number Diff line Loading @@ -35,21 +35,23 @@ Subsystem properties: Definition: Remote subsystem device identifier. Below strings are the only acceptable device names, "pa" -> for pa cooling device, "pa_fr1" -> for pa cooling device, "cpuv_restriction_cold" -> for vdd restriction, "cx_vdd_limit" -> for vdd limit, "modem" -> for processor passive cooling device, "modem_current" -> for current limiting device, "modem_bw" -> for bus bandwidth limiting device, "vbatt_low" -> BCL vbat mitigation device, "charge_state" -> Charge state mitigation device, "mmw0" -> Millimeter wave limiting device 0, "mmw1" -> Millimeter wave limiting device 1, "mmw2" -> Millimeter wave limiting device 2, "mmw3" -> Millimeter wave limiting device 3, "modem_skin" -> Modem skin mitigation device, "modem_skin0" -> Modem skin mitigation device0, "modem_skin1" -> Modem skin mitigation device1, "modem_skin2" -> Modem skin mitigation device2, "modem_skin3" -> Modem skin mitigation device3, "mmw_skin0" -> MMW skin mitigation device0, "mmw_skin1" -> MMW skin mitigation device1, "mmw_skin2" -> MMW skin mitigation device2, "mmw_skin3" -> MMW skin mitigation device3, "cpr_cold" -> for cpr restriction, "cdsp_sw" -> for CDSP DCVS mitigation device, "cdsp_hw" -> for CDSP hardware mitigation device. Loading arch/arm64/boot/dts/qcom/sdxprairie-thermal-common.dtsi 0 → 100644 +392 −0 Original line number Diff line number Diff line /* Copyright (c) 2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <dt-bindings/thermal/qmi_thermal.h> &soc { qmi-tmd-devices { compatible = "qcom,qmi-cooling-devices"; modem { qcom,instance-id = <QMI_MODEM_NR_INST_ID>; modem_pa: modem_pa { qcom,qmi-dev-name = "pa"; #cooling-cells = <2>; }; modem_pa_fr1: modem_pa_fr1 { qcom,qmi-dev-name = "pa_fr1"; #cooling-cells = <2>; }; modem_tj: modem_tj { qcom,qmi-dev-name = "modem"; #cooling-cells = <2>; }; modem_current: modem_current { qcom,qmi-dev-name = "modem_current"; #cooling-cells = <2>; }; modem_skin: modem_skin { qcom,qmi-dev-name = "modem_skin"; #cooling-cells = <2>; }; modem_mmw_skin0: modem_mmw_skin0 { qcom,qmi-dev-name = "mmw_skin0"; #cooling-cells = <2>; }; modem_mmw_skin1: modem_mmw_skin1 { qcom,qmi-dev-name = "mmw_skin1"; #cooling-cells = <2>; }; modem_mmw_skin2: modem_mmw_skin2 { qcom,qmi-dev-name = "mmw_skin2"; #cooling-cells = <2>; }; modem_mmw_skin3: modem_mmw_skin3 { qcom,qmi-dev-name = "mmw_skin3"; #cooling-cells = <2>; }; modem_mmw0: modem_mmw0 { qcom,qmi-dev-name = "mmw0"; #cooling-cells = <2>; }; modem_mmw1: modem_mmw1 { qcom,qmi-dev-name = "mmw1"; #cooling-cells = <2>; }; modem_mmw2: modem_mmw2 { qcom,qmi-dev-name = "mmw2"; #cooling-cells = <2>; }; modem_mmw3: modem_mmw3 { qcom,qmi-dev-name = "mmw3"; #cooling-cells = <2>; }; modem_bcl: modem_bcl { qcom,qmi-dev-name = "vbatt_low"; #cooling-cells = <2>; }; modem_charge_state: modem_charge_state { qcom,qmi-dev-name = "charge_state"; #cooling-cells = <2>; }; modem_vdd: modem_vdd { qcom,qmi-dev-name = "cpuv_restriction_cold"; #cooling-cells = <2>; }; }; }; qmi_sensor: qmi-ts-sensors { compatible = "qcom,qmi-sensors"; #thermal-sensor-cells = <1>; modem { qcom,instance-id = <QMI_MODEM_NR_INST_ID>; 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", "sys_therm2", "modem_tsens1"; }; }; }; &thermal_zones { modem-lte-sub6-pa1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_PA)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-lte-sub6-pa2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_PA_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_0)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw2-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_2)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_3)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-skin-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_XO_THERM)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-wifi-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_SYS_THERM_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-ambient-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_SYS_THERM_2)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_MODEM_TSENS)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_MODEM_TSENS_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-streamer-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_STREAMER_0)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw0-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_0_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw1-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_1_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw2-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_2_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw3-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_3_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; }; arch/arm64/boot/dts/qcom/sdxprairie-thermal.dtsi +1 −49 Original line number Diff line number Diff line Loading @@ -11,55 +11,7 @@ */ #include <dt-bindings/thermal/thermal.h> &soc { qmi-tmd-devices { compatible = "qcom,qmi-cooling-devices"; modem { qcom,instance-id = <0x0>; modem_pa: modem_pa { qcom,qmi-dev-name = "pa"; #cooling-cells = <2>; }; modem_proc: modem_proc { qcom,qmi-dev-name = "modem"; #cooling-cells = <2>; }; modem_current: modem_current { qcom,qmi-dev-name = "modem_current"; #cooling-cells = <2>; }; modem_skin: modem_skin { qcom,qmi-dev-name = "modem_skin"; #cooling-cells = <2>; }; modem_vdd: modem_vdd { qcom,qmi-dev-name = "cpuv_restriction_cold"; #cooling-cells = <2>; }; }; }; qmi_sensor: qmi-ts-sensors { compatible = "qcom,qmi-sensors"; #thermal-sensor-cells = <1>; modem { qcom,instance-id = <0x0>; qcom,qmi-sensor-names = "pa", "pa_1", "qfe_pa0", "qfe_wtr0"; }; }; }; #include "sdxprairie-thermal-common.dtsi" &thermal_zones { aoss0-usr { Loading arch/arm64/boot/dts/qcom/sm8150-sdxprairie.dtsi +1 −365 Original line number Diff line number Diff line Loading @@ -10,8 +10,8 @@ * GNU General Public License for more details. */ #include <dt-bindings/thermal/qmi_thermal.h> #include <dt-bindings/msm/msm-bus-ids.h> #include "sdxprairie-thermal-common.dtsi" &mdm3 { compatible = "qcom,ext-sdxprairie"; Loading Loading @@ -275,367 +275,3 @@ &wil6210 { status = "disabled"; }; &soc { qmi-tmd-devices { compatible = "qcom,qmi-cooling-devices"; modem { qcom,instance-id = <QMI_MODEM_NR_INST_ID>; modem_pa: modem_pa { qcom,qmi-dev-name = "pa"; #cooling-cells = <2>; }; modem_tj: modem_tj { qcom,qmi-dev-name = "modem"; #cooling-cells = <2>; }; modem_current: modem_current { qcom,qmi-dev-name = "modem_current"; #cooling-cells = <2>; }; modem_skin: modem_skin { qcom,qmi-dev-name = "modem_skin"; #cooling-cells = <2>; }; modem_mmw_skin0: modem_mmw_skin0 { qcom,qmi-dev-name = "modem_skin0"; #cooling-cells = <2>; }; modem_mmw_skin1: modem_mmw_skin1 { qcom,qmi-dev-name = "modem_skin1"; #cooling-cells = <2>; }; modem_mmw_skin2: modem_mmw_skin2 { qcom,qmi-dev-name = "modem_skin2"; #cooling-cells = <2>; }; modem_mmw_skin3: modem_mmw_skin3 { qcom,qmi-dev-name = "modem_skin3"; #cooling-cells = <2>; }; modem_mmw0: modem_mmw0 { qcom,qmi-dev-name = "mmw0"; #cooling-cells = <2>; }; modem_mmw1: modem_mmw1 { qcom,qmi-dev-name = "mmw1"; #cooling-cells = <2>; }; modem_mmw2: modem_mmw2 { qcom,qmi-dev-name = "mmw2"; #cooling-cells = <2>; }; modem_mmw3: modem_mmw3 { qcom,qmi-dev-name = "mmw3"; #cooling-cells = <2>; }; modem_bcl: modem_bcl { qcom,qmi-dev-name = "vbatt_low"; #cooling-cells = <2>; }; }; }; qmi_sensor: qmi-ts-sensors { compatible = "qcom,qmi-sensors"; #thermal-sensor-cells = <1>; modem { qcom,instance-id = <QMI_MODEM_NR_INST_ID>; 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", "sys_therm2", "modem_tsens1"; }; }; }; &thermal_zones { modem-lte-sub6-pa1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_PA)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-lte-sub6-pa2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_PA_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_0)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw2-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_2)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_3)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-skin-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_XO_THERM)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-wifi-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_SYS_THERM_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-ambient-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_SYS_THERM_2)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_MODEM_TSENS)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_MODEM_TSENS_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-streamer-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_STREAMER_0)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw0-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_0_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw1-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_1_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw2-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_2_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw3-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_3_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; }; drivers/thermal/qcom/qmi_cooling.c +12 −4 Original line number Diff line number Diff line Loading @@ -69,6 +69,10 @@ static struct qmi_dev_info device_clients[] = { .dev_name = "pa", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "pa_fr1", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "cx_vdd_limit", .type = QMI_CDEV_MAX_LIMIT_TYPE, Loading @@ -93,6 +97,10 @@ static struct qmi_dev_info device_clients[] = { .dev_name = "vbatt_low", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "charge_state", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "mmw0", .type = QMI_CDEV_MAX_LIMIT_TYPE, Loading @@ -110,19 +118,19 @@ static struct qmi_dev_info device_clients[] = { .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "modem_skin0", .dev_name = "mmw_skin0", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "modem_skin1", .dev_name = "mmw_skin1", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "modem_skin2", .dev_name = "mmw_skin2", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "modem_skin3", .dev_name = "mmw_skin3", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { Loading Loading
Documentation/devicetree/bindings/thermal/qti-qmi-cdev.txt +6 −4 Original line number Diff line number Diff line Loading @@ -35,21 +35,23 @@ Subsystem properties: Definition: Remote subsystem device identifier. Below strings are the only acceptable device names, "pa" -> for pa cooling device, "pa_fr1" -> for pa cooling device, "cpuv_restriction_cold" -> for vdd restriction, "cx_vdd_limit" -> for vdd limit, "modem" -> for processor passive cooling device, "modem_current" -> for current limiting device, "modem_bw" -> for bus bandwidth limiting device, "vbatt_low" -> BCL vbat mitigation device, "charge_state" -> Charge state mitigation device, "mmw0" -> Millimeter wave limiting device 0, "mmw1" -> Millimeter wave limiting device 1, "mmw2" -> Millimeter wave limiting device 2, "mmw3" -> Millimeter wave limiting device 3, "modem_skin" -> Modem skin mitigation device, "modem_skin0" -> Modem skin mitigation device0, "modem_skin1" -> Modem skin mitigation device1, "modem_skin2" -> Modem skin mitigation device2, "modem_skin3" -> Modem skin mitigation device3, "mmw_skin0" -> MMW skin mitigation device0, "mmw_skin1" -> MMW skin mitigation device1, "mmw_skin2" -> MMW skin mitigation device2, "mmw_skin3" -> MMW skin mitigation device3, "cpr_cold" -> for cpr restriction, "cdsp_sw" -> for CDSP DCVS mitigation device, "cdsp_hw" -> for CDSP hardware mitigation device. Loading
arch/arm64/boot/dts/qcom/sdxprairie-thermal-common.dtsi 0 → 100644 +392 −0 Original line number Diff line number Diff line /* Copyright (c) 2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <dt-bindings/thermal/qmi_thermal.h> &soc { qmi-tmd-devices { compatible = "qcom,qmi-cooling-devices"; modem { qcom,instance-id = <QMI_MODEM_NR_INST_ID>; modem_pa: modem_pa { qcom,qmi-dev-name = "pa"; #cooling-cells = <2>; }; modem_pa_fr1: modem_pa_fr1 { qcom,qmi-dev-name = "pa_fr1"; #cooling-cells = <2>; }; modem_tj: modem_tj { qcom,qmi-dev-name = "modem"; #cooling-cells = <2>; }; modem_current: modem_current { qcom,qmi-dev-name = "modem_current"; #cooling-cells = <2>; }; modem_skin: modem_skin { qcom,qmi-dev-name = "modem_skin"; #cooling-cells = <2>; }; modem_mmw_skin0: modem_mmw_skin0 { qcom,qmi-dev-name = "mmw_skin0"; #cooling-cells = <2>; }; modem_mmw_skin1: modem_mmw_skin1 { qcom,qmi-dev-name = "mmw_skin1"; #cooling-cells = <2>; }; modem_mmw_skin2: modem_mmw_skin2 { qcom,qmi-dev-name = "mmw_skin2"; #cooling-cells = <2>; }; modem_mmw_skin3: modem_mmw_skin3 { qcom,qmi-dev-name = "mmw_skin3"; #cooling-cells = <2>; }; modem_mmw0: modem_mmw0 { qcom,qmi-dev-name = "mmw0"; #cooling-cells = <2>; }; modem_mmw1: modem_mmw1 { qcom,qmi-dev-name = "mmw1"; #cooling-cells = <2>; }; modem_mmw2: modem_mmw2 { qcom,qmi-dev-name = "mmw2"; #cooling-cells = <2>; }; modem_mmw3: modem_mmw3 { qcom,qmi-dev-name = "mmw3"; #cooling-cells = <2>; }; modem_bcl: modem_bcl { qcom,qmi-dev-name = "vbatt_low"; #cooling-cells = <2>; }; modem_charge_state: modem_charge_state { qcom,qmi-dev-name = "charge_state"; #cooling-cells = <2>; }; modem_vdd: modem_vdd { qcom,qmi-dev-name = "cpuv_restriction_cold"; #cooling-cells = <2>; }; }; }; qmi_sensor: qmi-ts-sensors { compatible = "qcom,qmi-sensors"; #thermal-sensor-cells = <1>; modem { qcom,instance-id = <QMI_MODEM_NR_INST_ID>; 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", "sys_therm2", "modem_tsens1"; }; }; }; &thermal_zones { modem-lte-sub6-pa1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_PA)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-lte-sub6-pa2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_PA_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_0)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw2-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_2)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_3)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-skin-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_XO_THERM)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-wifi-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_SYS_THERM_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-ambient-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_SYS_THERM_2)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_MODEM_TSENS)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_MODEM_TSENS_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-streamer-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_STREAMER_0)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw0-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_0_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw1-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_1_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw2-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_2_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw3-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_3_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; };
arch/arm64/boot/dts/qcom/sdxprairie-thermal.dtsi +1 −49 Original line number Diff line number Diff line Loading @@ -11,55 +11,7 @@ */ #include <dt-bindings/thermal/thermal.h> &soc { qmi-tmd-devices { compatible = "qcom,qmi-cooling-devices"; modem { qcom,instance-id = <0x0>; modem_pa: modem_pa { qcom,qmi-dev-name = "pa"; #cooling-cells = <2>; }; modem_proc: modem_proc { qcom,qmi-dev-name = "modem"; #cooling-cells = <2>; }; modem_current: modem_current { qcom,qmi-dev-name = "modem_current"; #cooling-cells = <2>; }; modem_skin: modem_skin { qcom,qmi-dev-name = "modem_skin"; #cooling-cells = <2>; }; modem_vdd: modem_vdd { qcom,qmi-dev-name = "cpuv_restriction_cold"; #cooling-cells = <2>; }; }; }; qmi_sensor: qmi-ts-sensors { compatible = "qcom,qmi-sensors"; #thermal-sensor-cells = <1>; modem { qcom,instance-id = <0x0>; qcom,qmi-sensor-names = "pa", "pa_1", "qfe_pa0", "qfe_wtr0"; }; }; }; #include "sdxprairie-thermal-common.dtsi" &thermal_zones { aoss0-usr { Loading
arch/arm64/boot/dts/qcom/sm8150-sdxprairie.dtsi +1 −365 Original line number Diff line number Diff line Loading @@ -10,8 +10,8 @@ * GNU General Public License for more details. */ #include <dt-bindings/thermal/qmi_thermal.h> #include <dt-bindings/msm/msm-bus-ids.h> #include "sdxprairie-thermal-common.dtsi" &mdm3 { compatible = "qcom,ext-sdxprairie"; Loading Loading @@ -275,367 +275,3 @@ &wil6210 { status = "disabled"; }; &soc { qmi-tmd-devices { compatible = "qcom,qmi-cooling-devices"; modem { qcom,instance-id = <QMI_MODEM_NR_INST_ID>; modem_pa: modem_pa { qcom,qmi-dev-name = "pa"; #cooling-cells = <2>; }; modem_tj: modem_tj { qcom,qmi-dev-name = "modem"; #cooling-cells = <2>; }; modem_current: modem_current { qcom,qmi-dev-name = "modem_current"; #cooling-cells = <2>; }; modem_skin: modem_skin { qcom,qmi-dev-name = "modem_skin"; #cooling-cells = <2>; }; modem_mmw_skin0: modem_mmw_skin0 { qcom,qmi-dev-name = "modem_skin0"; #cooling-cells = <2>; }; modem_mmw_skin1: modem_mmw_skin1 { qcom,qmi-dev-name = "modem_skin1"; #cooling-cells = <2>; }; modem_mmw_skin2: modem_mmw_skin2 { qcom,qmi-dev-name = "modem_skin2"; #cooling-cells = <2>; }; modem_mmw_skin3: modem_mmw_skin3 { qcom,qmi-dev-name = "modem_skin3"; #cooling-cells = <2>; }; modem_mmw0: modem_mmw0 { qcom,qmi-dev-name = "mmw0"; #cooling-cells = <2>; }; modem_mmw1: modem_mmw1 { qcom,qmi-dev-name = "mmw1"; #cooling-cells = <2>; }; modem_mmw2: modem_mmw2 { qcom,qmi-dev-name = "mmw2"; #cooling-cells = <2>; }; modem_mmw3: modem_mmw3 { qcom,qmi-dev-name = "mmw3"; #cooling-cells = <2>; }; modem_bcl: modem_bcl { qcom,qmi-dev-name = "vbatt_low"; #cooling-cells = <2>; }; }; }; qmi_sensor: qmi-ts-sensors { compatible = "qcom,qmi-sensors"; #thermal-sensor-cells = <1>; modem { qcom,instance-id = <QMI_MODEM_NR_INST_ID>; 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", "sys_therm2", "modem_tsens1"; }; }; }; &thermal_zones { modem-lte-sub6-pa1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_PA)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-lte-sub6-pa2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_PA_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_0)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw2-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_2)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_3)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-skin-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_XO_THERM)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-wifi-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_SYS_THERM_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-ambient-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_SYS_THERM_2)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_MODEM_TSENS)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_MODEM_TSENS_1)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-streamer-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_STREAMER_0)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw0-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_0_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw1-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_1_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw2-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_2_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; modem-mmw3-mod-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&qmi_sensor (QMI_MODEM_NR_INST_ID+QMI_QFE_MMW_3_MOD)>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; };
drivers/thermal/qcom/qmi_cooling.c +12 −4 Original line number Diff line number Diff line Loading @@ -69,6 +69,10 @@ static struct qmi_dev_info device_clients[] = { .dev_name = "pa", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "pa_fr1", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "cx_vdd_limit", .type = QMI_CDEV_MAX_LIMIT_TYPE, Loading @@ -93,6 +97,10 @@ static struct qmi_dev_info device_clients[] = { .dev_name = "vbatt_low", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "charge_state", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "mmw0", .type = QMI_CDEV_MAX_LIMIT_TYPE, Loading @@ -110,19 +118,19 @@ static struct qmi_dev_info device_clients[] = { .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "modem_skin0", .dev_name = "mmw_skin0", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "modem_skin1", .dev_name = "mmw_skin1", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "modem_skin2", .dev_name = "mmw_skin2", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { .dev_name = "modem_skin3", .dev_name = "mmw_skin3", .type = QMI_CDEV_MAX_LIMIT_TYPE, }, { Loading