Loading arch/arm64/boot/dts/qcom/sdmshrike-cdp.dtsi +2 −1 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018-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 Loading @@ -16,6 +16,7 @@ #include "sdmshrike-pmic-overlay.dtsi" #include "sdmshrike-audio-overlay.dtsi" #include "sdmshrike-thermal-overlay.dtsi" &soc { gpio_keys { Loading arch/arm64/boot/dts/qcom/sdmshrike-mtp.dtsi +1 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #include "sdmshrike-pmic-overlay.dtsi" #include "sdmshrike-audio-overlay.dtsi" #include "sdmshrike-thermal-overlay.dtsi" &soc { gpio_keys { Loading arch/arm64/boot/dts/qcom/sdmshrike-thermal-overlay.dtsi 0 → 100644 +166 −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/thermal.h> &thermal_zones { pm8150_tz { cooling-maps { trip0_cpu0 { trip = <&pm8150_trip0>; cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu1 { trip = <&pm8150_trip0>; cooling-device = <&CPU1 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu2 { trip = <&pm8150_trip0>; cooling-device = <&CPU2 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu3 { trip = <&pm8150_trip0>; cooling-device = <&CPU3 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu4 { trip = <&pm8150_trip0>; cooling-device = <&CPU4 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu5 { trip = <&pm8150_trip0>; cooling-device = <&CPU5 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu6 { trip = <&pm8150_trip0>; cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu7 { trip = <&pm8150_trip0>; cooling-device = <&CPU7 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip1_cpu1 { trip = <&pm8150_trip1>; cooling-device = <&CPU1 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu2 { trip = <&pm8150_trip1>; cooling-device = <&CPU2 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu3 { trip = <&pm8150_trip1>; cooling-device = <&CPU3 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu4 { trip = <&pm8150_trip1>; cooling-device = <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu5 { trip = <&pm8150_trip1>; cooling-device = <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu6 { trip = <&pm8150_trip1>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu7 { trip = <&pm8150_trip1>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; pm8150l-vph-lvl0 { cooling-maps { vph_cpu4 { trip = <&vph_lvl0>; cooling-device = <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; vph_cpu5 { trip = <&vph_lvl0>; cooling-device = <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; vph_gpu0 { trip = <&vph_lvl0>; cooling-device = <&msm_gpu 2 2>; }; }; }; pm8150l-vph-lvl1 { cooling-maps { vph_cpu6 { trip = <&vph_lvl1>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; vph_cpu7 { trip = <&vph_lvl1>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; vph_gpu1 { trip = <&vph_lvl1>; cooling-device = <&msm_gpu 4 4>; }; }; }; pm8150l-vph-lvl2 { cooling-maps { vph_gpu2 { trip = <&vph_lvl2>; cooling-device = <&msm_gpu THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; }; &mdss_mdp { #cooling-cells = <2>; }; arch/arm64/boot/dts/qcom/sdmshrike-thermal.dtsi +621 −0 Original line number Diff line number Diff line Loading @@ -739,4 +739,625 @@ }; }; }; quad-gpuss-max-step { polling-delay-passive = <10>; polling-delay = <100>; thermal-governor = "step_wise"; wake-capable-sensor; trips { gpu_trip0: gpu-trip0 { temperature = <85000>; hysteresis = <0>; type = "passive"; }; }; cooling-maps { gpu_cdev { trip = <&gpu_trip0>; cooling-device = <&msm_gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; apc-0-max-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; wake-capable-sensor; trips { silver-trip { temperature = <120000>; hysteresis = <0>; type = "passive"; }; }; }; apc-1-max-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; wake-capable-sensor; trips { gold-trip { temperature = <120000>; hysteresis = <0>; type = "passive"; }; }; }; cpu-0-0-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 1>; wake-capable-sensor; trips { cpu00_config: cpu00-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu00_cdev { trip = <&cpu00_config>; cooling-device = <&CPU0 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-1-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 2>; wake-capable-sensor; trips { cpu01_config: cpu01-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu01_cdev { trip = <&cpu01_config>; cooling-device = <&CPU1 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-2-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 3>; wake-capable-sensor; trips { cpu02_config: cpu02-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu02_cdev { trip = <&cpu02_config>; cooling-device = <&CPU2 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-3-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 4>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu03_config: cpu03-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu03_cdev { trip = <&cpu03_config>; cooling-device = <&CPU3 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-0-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 7>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu10_config: cpu10-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu10_cdev { trip = <&cpu10_config>; cooling-device = <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-1-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 8>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu11_config: cpu11-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu11_cdev { trip = <&cpu11_config>; cooling-device = <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-2-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 9>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu12_config: cpu12-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu12_cdev { trip = <&cpu12_config>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-3-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 10>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu13_config: cpu13-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu13_cdev { trip = <&cpu13_config>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-4-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 11>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu14_config: cpu14-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu14_cdev { trip = <&cpu14_config>; cooling-device = <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-5-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 12>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu15_config: cpu15-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu15_cdev { trip = <&cpu15_config>; cooling-device = <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-6-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 13>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu16_config: cpu16-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu16_cdev { trip = <&cpu16_config>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-7-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 14>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu17_config: cpu17-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu17_cdev { trip = <&cpu17_config>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-7-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 14>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { cpu17_trip: cpu17-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&cpu17_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&cpu17_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; gpuss-0-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 15>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { gpuss0_trip: gpuss0-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&gpuss0_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&gpuss0_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; camera-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 5>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { camera_trip: camera-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&camera_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&camera_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&camera_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&camera_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&camera_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&camera_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&camera_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&camera_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&camera_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&camera_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; mdm-scl-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 10>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { mdms_trip: mdms-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&mdms_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&mdms_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; pcie-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 15>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { pcie_trip: pcie-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&pcie_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&pcie_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; }; arch/arm64/boot/dts/qcom/sdmshrike.dtsi +8 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_0>; qcom,lmh-dcvs = <&lmh_dcvs0>; #cooling-cells = <2>; L2_0: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -88,6 +89,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_1>; qcom,lmh-dcvs = <&lmh_dcvs0>; #cooling-cells = <2>; L2_1: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading @@ -114,6 +116,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_2>; qcom,lmh-dcvs = <&lmh_dcvs0>; #cooling-cells = <2>; L2_2: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading @@ -140,6 +143,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_3>; qcom,lmh-dcvs = <&lmh_dcvs0>; #cooling-cells = <2>; L2_3: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading @@ -166,6 +170,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_4>; qcom,lmh-dcvs = <&lmh_dcvs1>; #cooling-cells = <2>; L2_4: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading @@ -192,6 +197,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_5>; qcom,lmh-dcvs = <&lmh_dcvs1>; #cooling-cells = <2>; L2_5: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading @@ -218,6 +224,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_6>; qcom,lmh-dcvs = <&lmh_dcvs1>; #cooling-cells = <2>; L2_6: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading @@ -244,6 +251,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_7>; qcom,lmh-dcvs = <&lmh_dcvs1>; #cooling-cells = <2>; L2_7: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading Loading
arch/arm64/boot/dts/qcom/sdmshrike-cdp.dtsi +2 −1 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018-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 Loading @@ -16,6 +16,7 @@ #include "sdmshrike-pmic-overlay.dtsi" #include "sdmshrike-audio-overlay.dtsi" #include "sdmshrike-thermal-overlay.dtsi" &soc { gpio_keys { Loading
arch/arm64/boot/dts/qcom/sdmshrike-mtp.dtsi +1 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #include "sdmshrike-pmic-overlay.dtsi" #include "sdmshrike-audio-overlay.dtsi" #include "sdmshrike-thermal-overlay.dtsi" &soc { gpio_keys { Loading
arch/arm64/boot/dts/qcom/sdmshrike-thermal-overlay.dtsi 0 → 100644 +166 −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/thermal.h> &thermal_zones { pm8150_tz { cooling-maps { trip0_cpu0 { trip = <&pm8150_trip0>; cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu1 { trip = <&pm8150_trip0>; cooling-device = <&CPU1 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu2 { trip = <&pm8150_trip0>; cooling-device = <&CPU2 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu3 { trip = <&pm8150_trip0>; cooling-device = <&CPU3 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu4 { trip = <&pm8150_trip0>; cooling-device = <&CPU4 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu5 { trip = <&pm8150_trip0>; cooling-device = <&CPU5 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu6 { trip = <&pm8150_trip0>; cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip0_cpu7 { trip = <&pm8150_trip0>; cooling-device = <&CPU7 (THERMAL_MAX_LIMIT-1) (THERMAL_MAX_LIMIT-1)>; }; trip1_cpu1 { trip = <&pm8150_trip1>; cooling-device = <&CPU1 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu2 { trip = <&pm8150_trip1>; cooling-device = <&CPU2 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu3 { trip = <&pm8150_trip1>; cooling-device = <&CPU3 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu4 { trip = <&pm8150_trip1>; cooling-device = <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu5 { trip = <&pm8150_trip1>; cooling-device = <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu6 { trip = <&pm8150_trip1>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; trip1_cpu7 { trip = <&pm8150_trip1>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; pm8150l-vph-lvl0 { cooling-maps { vph_cpu4 { trip = <&vph_lvl0>; cooling-device = <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; vph_cpu5 { trip = <&vph_lvl0>; cooling-device = <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; vph_gpu0 { trip = <&vph_lvl0>; cooling-device = <&msm_gpu 2 2>; }; }; }; pm8150l-vph-lvl1 { cooling-maps { vph_cpu6 { trip = <&vph_lvl1>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; vph_cpu7 { trip = <&vph_lvl1>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; vph_gpu1 { trip = <&vph_lvl1>; cooling-device = <&msm_gpu 4 4>; }; }; }; pm8150l-vph-lvl2 { cooling-maps { vph_gpu2 { trip = <&vph_lvl2>; cooling-device = <&msm_gpu THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; }; &mdss_mdp { #cooling-cells = <2>; };
arch/arm64/boot/dts/qcom/sdmshrike-thermal.dtsi +621 −0 Original line number Diff line number Diff line Loading @@ -739,4 +739,625 @@ }; }; }; quad-gpuss-max-step { polling-delay-passive = <10>; polling-delay = <100>; thermal-governor = "step_wise"; wake-capable-sensor; trips { gpu_trip0: gpu-trip0 { temperature = <85000>; hysteresis = <0>; type = "passive"; }; }; cooling-maps { gpu_cdev { trip = <&gpu_trip0>; cooling-device = <&msm_gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; apc-0-max-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; wake-capable-sensor; trips { silver-trip { temperature = <120000>; hysteresis = <0>; type = "passive"; }; }; }; apc-1-max-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; wake-capable-sensor; trips { gold-trip { temperature = <120000>; hysteresis = <0>; type = "passive"; }; }; }; cpu-0-0-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 1>; wake-capable-sensor; trips { cpu00_config: cpu00-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu00_cdev { trip = <&cpu00_config>; cooling-device = <&CPU0 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-1-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 2>; wake-capable-sensor; trips { cpu01_config: cpu01-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu01_cdev { trip = <&cpu01_config>; cooling-device = <&CPU1 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-2-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 3>; wake-capable-sensor; trips { cpu02_config: cpu02-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu02_cdev { trip = <&cpu02_config>; cooling-device = <&CPU2 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-3-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 4>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu03_config: cpu03-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu03_cdev { trip = <&cpu03_config>; cooling-device = <&CPU3 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-0-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 7>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu10_config: cpu10-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu10_cdev { trip = <&cpu10_config>; cooling-device = <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-1-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 8>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu11_config: cpu11-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu11_cdev { trip = <&cpu11_config>; cooling-device = <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-2-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 9>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu12_config: cpu12-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu12_cdev { trip = <&cpu12_config>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-3-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 10>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu13_config: cpu13-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu13_cdev { trip = <&cpu13_config>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-4-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 11>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu14_config: cpu14-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu14_cdev { trip = <&cpu14_config>; cooling-device = <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-5-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 12>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu15_config: cpu15-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu15_cdev { trip = <&cpu15_config>; cooling-device = <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-6-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 13>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu16_config: cpu16-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu16_cdev { trip = <&cpu16_config>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-7-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 14>; thermal-governor = "step_wise"; wake-capable-sensor; trips { cpu17_config: cpu17-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu17_cdev { trip = <&cpu17_config>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-1-7-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 14>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { cpu17_trip: cpu17-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&cpu17_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&cpu17_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&cpu17_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; gpuss-0-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 15>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { gpuss0_trip: gpuss0-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&gpuss0_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&gpuss0_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&gpuss0_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; camera-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 5>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { camera_trip: camera-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&camera_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&camera_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&camera_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&camera_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&camera_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&camera_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&camera_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&camera_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&camera_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&camera_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; mdm-scl-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 10>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { mdms_trip: mdms-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&mdms_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&mdms_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&mdms_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; pcie-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 15>; thermal-governor = "low_limits_floor"; wake-capable-sensor; tracks-low; trips { pcie_trip: pcie-trip { temperature = <5000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&pcie_trip>; cooling-device = <&CPU0 1 1>; }; cpu1_cdev { trip = <&pcie_trip>; cooling-device = <&CPU4 5 5>; }; cx_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&cx_cdev 0 0>; }; mx_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&mx_cdev 0 0>; }; ebi_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&ebi_cdev 0 0>; }; mmcx_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&mm_cx_cdev 0 0>; }; adsp_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&adsp_vdd 0 0>; }; cdsp_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&cdsp_vdd 0 0>; }; slpi_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&slpi_vdd 0 0>; }; gpu_vdd_cdev { trip = <&pcie_trip>; cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3) (THERMAL_MAX_LIMIT-3)>; }; }; }; };
arch/arm64/boot/dts/qcom/sdmshrike.dtsi +8 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_0>; qcom,lmh-dcvs = <&lmh_dcvs0>; #cooling-cells = <2>; L2_0: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -88,6 +89,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_1>; qcom,lmh-dcvs = <&lmh_dcvs0>; #cooling-cells = <2>; L2_1: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading @@ -114,6 +116,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_2>; qcom,lmh-dcvs = <&lmh_dcvs0>; #cooling-cells = <2>; L2_2: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading @@ -140,6 +143,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_3>; qcom,lmh-dcvs = <&lmh_dcvs0>; #cooling-cells = <2>; L2_3: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading @@ -166,6 +170,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_4>; qcom,lmh-dcvs = <&lmh_dcvs1>; #cooling-cells = <2>; L2_4: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading @@ -192,6 +197,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_5>; qcom,lmh-dcvs = <&lmh_dcvs1>; #cooling-cells = <2>; L2_5: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading @@ -218,6 +224,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_6>; qcom,lmh-dcvs = <&lmh_dcvs1>; #cooling-cells = <2>; L2_6: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading @@ -244,6 +251,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_7>; qcom,lmh-dcvs = <&lmh_dcvs1>; #cooling-cells = <2>; L2_7: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading