mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
ARM: dts: qcom: Add QMI sensors and cooling devices for HOLI
Add QMI sensors, cooling devices and thermal zone configs related to modem, cdsp and adsp for HOLI. Change-Id: Id119d989b07b6ac78b370f1e6099f138e9c0716c
This commit is contained in:
parent
e06a17f4ef
commit
4470063482
2 changed files with 405 additions and 0 deletions
377
qcom/holi-thermal-modem.dtsi
Normal file
377
qcom/holi-thermal-modem.dtsi
Normal file
|
|
@ -0,0 +1,377 @@
|
|||
&soc {
|
||||
qmi-tmd-devices {
|
||||
compatible = "qcom,qmi-cooling-devices";
|
||||
|
||||
modem {
|
||||
qcom,instance-id = <QMI_MODEM_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_bw: modem_bw {
|
||||
qcom,qmi-dev-name = "modem_bw";
|
||||
#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>;
|
||||
};
|
||||
|
||||
modem_wlan: modem_wlan {
|
||||
qcom,qmi-dev-name = "wlan";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
modem_wlan_bw: modem_wlan_bw {
|
||||
qcom,qmi-dev-name = "wlan_bw";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
qmi_sensor: qmi-ts-sensors {
|
||||
compatible = "qcom,qmi-sensors";
|
||||
#thermal-sensor-cells = <1>;
|
||||
|
||||
modem {
|
||||
qcom,instance-id = <QMI_MODEM_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_INST_ID+QMI_PA)>;
|
||||
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_INST_ID+QMI_PA_1)>;
|
||||
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_INST_ID+QMI_QFE_MMW_0)>;
|
||||
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_INST_ID+QMI_QFE_MMW_1)>;
|
||||
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_INST_ID+QMI_QFE_MMW_2)>;
|
||||
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_INST_ID+QMI_QFE_MMW_3)>;
|
||||
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_INST_ID+QMI_XO_THERM)>;
|
||||
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_INST_ID+QMI_SYS_THERM_1)>;
|
||||
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_INST_ID+QMI_SYS_THERM_2)>;
|
||||
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_INST_ID+QMI_MODEM_TSENS)>;
|
||||
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_INST_ID+QMI_MODEM_TSENS_1)>;
|
||||
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_INST_ID+QMI_QFE_MMW_STREAMER_0)>;
|
||||
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_INST_ID+QMI_QFE_MMW_0_MOD)>;
|
||||
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_INST_ID+QMI_QFE_MMW_1_MOD)>;
|
||||
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_INST_ID+QMI_QFE_MMW_2_MOD)>;
|
||||
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_INST_ID+QMI_QFE_MMW_3_MOD)>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
#include <dt-bindings/thermal/thermal_qti.h>
|
||||
#include "holi-thermal-modem.dtsi"
|
||||
|
||||
&soc {
|
||||
tsens0:tsens@4410000 {
|
||||
|
|
@ -32,6 +33,33 @@
|
|||
tsens-reinit-wa;
|
||||
#thermal-sensor-cells = <1>;
|
||||
};
|
||||
|
||||
qmi-tmd-devices {
|
||||
compatible = "qcom,qmi-cooling-devices";
|
||||
|
||||
cdsp {
|
||||
qcom,instance-id = <QMI_CDSP_INST_ID>;
|
||||
|
||||
cdsp_sw: cdsp {
|
||||
qcom,qmi-dev-name = "cdsp_sw";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cdsp_hw: cdsp_hw {
|
||||
qcom,qmi-dev-name = "cdsp_hw";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
adsp {
|
||||
qcom,instance-id = <QMI_ADSP_INST_ID>;
|
||||
|
||||
adsp_vdd: adsp_vdd {
|
||||
qcom,qmi-dev-name = "cpuv_restriction_cold";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&cpufreq_hw {
|
||||
|
|
|
|||
Loading…
Reference in a new issue