mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Enable TSENS driver, default userspace thermal zone rules for each TSENS, enable QMI cooling device, regulator cooling device and enable modem junction temperature mitigation thermal zone rule for sdxnightjar. Change-Id: I67efdb252e3fb59a6d6256b03613b14e8a5e2c56
177 lines
3.3 KiB
Devicetree
177 lines
3.3 KiB
Devicetree
#include <dt-bindings/thermal/thermal_qti.h>
|
|
|
|
&soc {
|
|
tsens0: tsens@4a8000 {
|
|
compatible = "qcom,msm8996-tsens";
|
|
reg = <0x4a8000 0x152>,
|
|
<0x4a9000 0x1ff>;
|
|
reg-names = "tsens_srot_physical",
|
|
"tsens_tm_physical";
|
|
interrupts-extended = <&intc GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>,
|
|
<&intc GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "tsens-upper-lower", "tsens-critical";
|
|
#thermal-sensor-cells = <1>;
|
|
};
|
|
|
|
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_proc: modem_proc {
|
|
qcom,qmi-dev-name = "modem";
|
|
#cooling-cells = <2>;
|
|
};
|
|
|
|
modem_vdd: modem_vdd {
|
|
qcom,qmi-dev-name = "cpuv_restriction_cold";
|
|
#cooling-cells = <2>;
|
|
};
|
|
|
|
modem_cpr_cold: modem_cpr_cold {
|
|
qcom,qmi-dev-name = "cpr_cold";
|
|
#cooling-cells = <2>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&thermal_zones {
|
|
aoss-0-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&tsens0 0>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
reset-mon-cfg {
|
|
temperature = <115000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
q6-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&tsens0 1>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
reset-mon-cfg {
|
|
temperature = <115000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
ipa-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&tsens0 2>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
reset-mon-cfg {
|
|
temperature = <115000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
cpuss-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&tsens0 3>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
reset-mon-cfg {
|
|
temperature = <115000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
mdm-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&tsens0 6>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
reset-mon-cfg {
|
|
temperature = <115000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
mdm-step {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 6>;
|
|
thermal-governor = "step_wise";
|
|
trips {
|
|
tj_config0: active-config0 {
|
|
temperature = <95000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
|
|
tj_config1: active-config1 {
|
|
temperature = <105000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
modem_proc_cdev1 {
|
|
trip = <&tj_config0>;
|
|
cooling-device = <&modem_proc 1 1>;
|
|
};
|
|
|
|
modem_proc_cdev2 {
|
|
trip = <&tj_config1>;
|
|
cooling-device = <&modem_proc 3 3>;
|
|
};
|
|
};
|
|
};
|
|
};
|