Add cpu clock controller support for QM215 targets. Change-Id: I9f29cf9424411be1a60016a4df4a0599c252f8f6
365 lines
6.4 KiB
Devicetree
365 lines
6.4 KiB
Devicetree
#include <dt-bindings/thermal/thermal.h>
|
|
|
|
&apsscc {
|
|
qcom,cpu-isolation {
|
|
compatible = "qcom,cpu-isolate";
|
|
cpu0_isolate: cpu0-isolate {
|
|
qcom,cpu = <&CPU0>;
|
|
#cooling-cells = <2>;
|
|
};
|
|
|
|
cpu1_isolate: cpu1-isolate {
|
|
qcom,cpu = <&CPU1>;
|
|
#cooling-cells = <2>;
|
|
};
|
|
|
|
cpu2_isolate: cpu2-isolate {
|
|
qcom,cpu = <&CPU2>;
|
|
#cooling-cells = <2>;
|
|
};
|
|
|
|
cpu3_isolate: cpu3-isolate {
|
|
qcom,cpu = <&CPU3>;
|
|
#cooling-cells = <2>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&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_vdd: modem_vdd {
|
|
qcom,qmi-dev-name = "cpuv_restriction_cold";
|
|
#cooling-cells = <2>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&thermal_zones {
|
|
aoss0-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";
|
|
};
|
|
};
|
|
};
|
|
|
|
mdm-core-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";
|
|
};
|
|
};
|
|
};
|
|
|
|
q6-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";
|
|
};
|
|
};
|
|
};
|
|
|
|
camera-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";
|
|
};
|
|
};
|
|
};
|
|
|
|
cpuss-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 4>;
|
|
thermal-governor = "user_space";
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
apc1-cpu0-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 5>;
|
|
thermal-governor = "user_space";
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
apc1-cpu1-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 6>;
|
|
thermal-governor = "user_space";
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
apc1-cpu2-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 7>;
|
|
thermal-governor = "user_space";
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
apc1-cpu3-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 8>;
|
|
thermal-governor = "user_space";
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
gpu0-usr {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 9>;
|
|
thermal-governor = "user_space";
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
penta-cpu-max-step {
|
|
polling-delay-passive = <50>;
|
|
polling-delay = <100>;
|
|
thermal-governor = "step_wise";
|
|
trips {
|
|
cpu_trip:cpu-trip {
|
|
temperature = <85000>;
|
|
hysteresis = <0>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
cpu0_cdev {
|
|
trip = <&cpu_trip>;
|
|
cooling-device =
|
|
<&CPU0 THERMAL_NO_LIMIT
|
|
THERMAL_NO_LIMIT>;
|
|
};
|
|
};
|
|
};
|
|
|
|
gpu0-step {
|
|
polling-delay-passive = <250>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 9>;
|
|
thermal-governor = "step_wise";
|
|
trips {
|
|
gpu_step_trip: gpu-step-trip {
|
|
temperature = <95000>;
|
|
hysteresis = <0>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
gpu_cdev0 {
|
|
trip = <&gpu_step_trip>;
|
|
cooling-device =
|
|
<&msm_gpu THERMAL_NO_LIMIT
|
|
THERMAL_NO_LIMIT>;
|
|
};
|
|
};
|
|
};
|
|
|
|
apc1-cpu0-step {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 5>;
|
|
thermal-governor = "step_wise";
|
|
trips {
|
|
apc1_cpu0_trip: apc1-cpu0-trip {
|
|
temperature = <105000>;
|
|
hysteresis = <15000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
cpu0_cdev {
|
|
trip = <&apc1_cpu0_trip>;
|
|
cooling-device =
|
|
<&cpu0_isolate 1 1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
apc1-cpu1-step {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 6>;
|
|
thermal-governor = "step_wise";
|
|
trips {
|
|
apc1_cpu1_trip: apc1-cpu1--trip {
|
|
temperature = <105000>;
|
|
hysteresis = <15000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
cpu1_cdev {
|
|
trip = <&apc1_cpu1_trip>;
|
|
cooling-device =
|
|
<&cpu1_isolate 1 1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
apc1-cpu2-step {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 7>;
|
|
thermal-governor = "step_wise";
|
|
trips {
|
|
apc1_cpu2_trip: apc1-cpu2-trip {
|
|
temperature = <105000>;
|
|
hysteresis = <15000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
cpu2_cdev {
|
|
trip = <&apc1_cpu2_trip>;
|
|
cooling-device =
|
|
<&cpu2_isolate 1 1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
apc1-cpu3-step {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&tsens0 8>;
|
|
thermal-governor = "step_wise";
|
|
trips {
|
|
apc1_cpu3_trip: apc1-cpu3-trip {
|
|
temperature = <105000>;
|
|
hysteresis = <15000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
cpu3_cdev {
|
|
trip = <&apc1_cpu3_trip>;
|
|
cooling-device =
|
|
<&cpu3_isolate 1 1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
aoss0-lowf {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "low_limits_floor";
|
|
thermal-sensors = <&tsens0 0>;
|
|
tracks-low;
|
|
trips {
|
|
aoss_lowf: aoss-lowf {
|
|
temperature = <5000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
cpu0_cdev {
|
|
trip = <&aoss_lowf>;
|
|
cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
|
|
(THERMAL_MAX_LIMIT-2)>;
|
|
};
|
|
|
|
cx_vdd_cdev {
|
|
trip = <&aoss_lowf>;
|
|
cooling-device = <&pm8937_cx_cdev 0 0>;
|
|
};
|
|
|
|
modem_vdd_cdev {
|
|
trip = <&aoss_lowf>;
|
|
cooling-device = <&modem_vdd 0 0>;
|
|
};
|
|
};
|
|
};
|
|
};
|