mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
ARM: dts: msm: Add CPU thermal configuration for yupik
Add CPU frequency, CPU isolation and CPU hotplug cooling device configuration. Add thermal emergency mitigation configuration to mitigate CPU at high temperatures for YUPIK. Change-Id: Iffeb48eb415aa19fb31bfd7c46b44aaee22ce27e
This commit is contained in:
parent
78b0061f2d
commit
a80bb7dcdc
1 changed files with 516 additions and 1 deletions
|
|
@ -32,6 +32,102 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpufreq_hw {
|
||||
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>;
|
||||
};
|
||||
|
||||
cpu4_isolate: cpu4-isolate {
|
||||
qcom,cpu = <&CPU4>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu5_isolate: cpu5-isolate {
|
||||
qcom,cpu = <&CPU5>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu6_isolate: cpu6-isolate {
|
||||
qcom,cpu = <&CPU6>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu7_isolate: cpu7-isolate {
|
||||
qcom,cpu = <&CPU7>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,cpu-hotplug {
|
||||
compatible = "qcom,cpu-hotplug";
|
||||
cpu0_hotplug: cpu0-hotplug {
|
||||
qcom,cpu = <&CPU0>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu1_hotplug: cpu1-hotplug {
|
||||
qcom,cpu = <&CPU1>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu2_hotplug: cpu2-hotplug {
|
||||
qcom,cpu = <&CPU2>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu3_hotplug: cpu3-hotplug {
|
||||
qcom,cpu = <&CPU3>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu4_hotplug: cpu4-hotplug {
|
||||
qcom,cpu = <&CPU4>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu5_hotplug: cpu5-hotplug {
|
||||
qcom,cpu = <&CPU5>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu6_hotplug: cpu6-hotplug {
|
||||
qcom,cpu = <&CPU6>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu7_hotplug: cpu7-hotplug {
|
||||
qcom,cpu = <&CPU7>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,cpu-voltage-cdev {
|
||||
compatible = "qcom,cc-cooling-devices";
|
||||
apc1_cluster: qcom,apc1-cluster {
|
||||
qcom,cpus = <&CPU4 &CPU7>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
aoss-0-usr {
|
||||
polling-delay-passive = <0>;
|
||||
|
|
@ -572,5 +668,424 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-0-0-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 1>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu00_config: cpu00-config {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu00_config1: cpu00-config1 {
|
||||
temperature = <112000>;
|
||||
hysteresis = <12000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu00_cdev {
|
||||
trip = <&cpu00_config>;
|
||||
cooling-device = <&cpu0_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu00_cdev2 {
|
||||
trip = <&cpu00_config1>;
|
||||
cooling-device = <&cpu0_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-0-1-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 2>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu01_config: cpu01-config {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu01_config1: cpu01-config1 {
|
||||
temperature = <112000>;
|
||||
hysteresis = <12000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu01_cdev {
|
||||
trip = <&cpu01_config>;
|
||||
cooling-device = <&cpu1_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu01_cdev2 {
|
||||
trip = <&cpu01_config1>;
|
||||
cooling-device = <&cpu1_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-0-2-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 3>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu02_config: cpu02-config {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu02_config1: cpu02-config1 {
|
||||
temperature = <112000>;
|
||||
hysteresis = <12000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu02_cdev {
|
||||
trip = <&cpu02_config>;
|
||||
cooling-device = <&cpu2_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu02_cdev2 {
|
||||
trip = <&cpu02_config1>;
|
||||
cooling-device = <&cpu2_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-0-3-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 4>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu03_config: cpu03-config {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu03_config1: cpu03-config1 {
|
||||
temperature = <112000>;
|
||||
hysteresis = <12000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu03_cdev {
|
||||
trip = <&cpu03_config>;
|
||||
cooling-device = <&cpu3_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu03_cdev2 {
|
||||
trip = <&cpu03_config1>;
|
||||
cooling-device = <&cpu3_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-1-0-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 7>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu10_config: cpu10-config {
|
||||
temperature = <108000>;
|
||||
hysteresis = <8000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu10_config1: cpu10-config1 {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu10_cdev {
|
||||
trip = <&cpu10_config>;
|
||||
cooling-device = <&cpu4_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu10_cdev1 {
|
||||
trip = <&cpu10_config>;
|
||||
cooling-device = <&apc1_cluster THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
cpu10_cdev2 {
|
||||
trip = <&cpu10_config1>;
|
||||
cooling-device = <&cpu4_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-1-1-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 8>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu11_config: cpu11-config {
|
||||
temperature = <108000>;
|
||||
hysteresis = <8000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu11_config1: cpu11-config1 {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu11_cdev {
|
||||
trip = <&cpu11_config>;
|
||||
cooling-device = <&cpu4_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu11_cdev1 {
|
||||
trip = <&cpu11_config>;
|
||||
cooling-device = <&apc1_cluster THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
cpu11_cdev2 {
|
||||
trip = <&cpu11_config1>;
|
||||
cooling-device = <&cpu4_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-1-2-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 9>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu12_config: cpu12-config {
|
||||
temperature = <108000>;
|
||||
hysteresis = <8000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu12_config1: cpu12-config1 {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu12_cdev {
|
||||
trip = <&cpu12_config>;
|
||||
cooling-device = <&cpu5_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu12_cdev1 {
|
||||
trip = <&cpu12_config>;
|
||||
cooling-device = <&apc1_cluster THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
cpu12_cdev2 {
|
||||
trip = <&cpu12_config1>;
|
||||
cooling-device = <&cpu5_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-1-3-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 10>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu13_config: cpu13-config {
|
||||
temperature = <108000>;
|
||||
hysteresis = <8000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu13_config1: cpu13-config1 {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu13_cdev {
|
||||
trip = <&cpu13_config>;
|
||||
cooling-device = <&cpu5_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu13_cdev1 {
|
||||
trip = <&cpu13_config>;
|
||||
cooling-device = <&apc1_cluster THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
cpu13_cdev2 {
|
||||
trip = <&cpu13_config1>;
|
||||
cooling-device = <&cpu5_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-1-4-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 11>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu14_config: cpu14-config {
|
||||
temperature = <108000>;
|
||||
hysteresis = <8000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu14_config1: cpu14-config1 {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu14_cdev {
|
||||
trip = <&cpu14_config>;
|
||||
cooling-device = <&cpu6_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu14_cdev1 {
|
||||
trip = <&cpu14_config>;
|
||||
cooling-device = <&apc1_cluster THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
cpu14_cdev2 {
|
||||
trip = <&cpu14_config1>;
|
||||
cooling-device = <&cpu6_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-1-5-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 12>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu15_config: cpu15-config {
|
||||
temperature = <108000>;
|
||||
hysteresis = <8000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu15_config1: cpu15-config1 {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu15_cdev {
|
||||
trip = <&cpu15_config>;
|
||||
cooling-device = <&cpu6_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu15_cdev1 {
|
||||
trip = <&cpu15_config>;
|
||||
cooling-device = <&apc1_cluster THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
cpu15_cdev2 {
|
||||
trip = <&cpu15_config1>;
|
||||
cooling-device = <&cpu6_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-1-6-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 13>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu16_config: cpu16-config {
|
||||
temperature = <108000>;
|
||||
hysteresis = <8000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu16_config1: cpu16-config1 {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu16_cdev {
|
||||
trip = <&cpu16_config>;
|
||||
cooling-device = <&cpu7_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu16_cdev2 {
|
||||
trip = <&cpu16_config1>;
|
||||
cooling-device = <&cpu7_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpu-1-7-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 14>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
cpu17_config: cpu17-config {
|
||||
temperature = <108000>;
|
||||
hysteresis = <8000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu17_config1: cpu17-config1 {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu17_cdev {
|
||||
trip = <&cpu17_config>;
|
||||
cooling-device = <&cpu7_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu17_cdev2 {
|
||||
trip = <&cpu17_config1>;
|
||||
cooling-device = <&cpu7_hotplug 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue