ARM: dts: qcom: Add thermal devicetree support for khaje

Add thermal driver devicetree support for khaje.

Change-Id: Idd5b4674a686fda20491d252884f3db0fb319ef2
This commit is contained in:
Priyansh Jain
2022-08-11 11:52:25 +05:30
committed by Gerrit - the friendly Code Review server
parent 3268d278d4
commit 1555b03c09
4 changed files with 604 additions and 850 deletions

View File

@@ -5,51 +5,47 @@
cooling-maps {
trip0_cpu0 {
trip = <&pm6125_trip0>;
cooling-device =
<&CPU0 THERMAL_MAX_LIMIT
THERMAL_MAX_LIMIT>;
cooling-device = <&CPU0 7 7>;
};
trip0_cpu4 {
trip = <&pm6125_trip0>;
cooling-device =
<&CPU4 THERMAL_MAX_LIMIT
THERMAL_MAX_LIMIT>;
cooling-device = <&CPU4 6 THERMAL_NO_LIMIT>;
};
trip1_cpu1 {
trip = <&pm6125_trip1>;
cooling-device = <&cpu1_isolate 1 1>;
cooling-device = <&cpu1_pause 1 1>;
};
trip1_cpu2 {
trip = <&pm6125_trip1>;
cooling-device = <&cpu2_isolate 1 1>;
cooling-device = <&cpu2_pause 1 1>;
};
trip1_cpu3 {
trip = <&pm6125_trip1>;
cooling-device = <&cpu3_isolate 1 1>;
cooling-device = <&cpu3_pause 1 1>;
};
trip1_cpu4 {
trip = <&pm6125_trip1>;
cooling-device = <&cpu4_isolate 1 1>;
cooling-device = <&cpu4_pause 1 1>;
};
trip1_cpu5 {
trip = <&pm6125_trip1>;
cooling-device = <&cpu5_isolate 1 1>;
cooling-device = <&cpu5_pause 1 1>;
};
trip1_cpu6 {
trip = <&pm6125_trip1>;
cooling-device = <&cpu6_isolate 1 1>;
cooling-device = <&cpu6_pause 1 1>;
};
trip1_cpu7 {
trip = <&pm6125_trip1>;
cooling-device = <&cpu7_isolate 1 1>;
cooling-device = <&cpu7_pause 1 1>;
};
};
};

File diff suppressed because it is too large Load Diff

View File

@@ -6,15 +6,13 @@
trip0_bat {
trip = <&pm7250b_trip0>;
cooling-device =
<&pm7250b_charger (THERMAL_MAX_LIMIT-1)
(THERMAL_MAX_LIMIT-1)>;
<&pm7250b_charger 15 15>;
};
trip1_bat {
trip = <&pm7250b_trip1>;
cooling-device =
<&pm7250b_charger THERMAL_MAX_LIMIT
THERMAL_MAX_LIMIT>;
<&pm7250b_charger 16 16>;
};
};
};
@@ -23,22 +21,22 @@
cooling-maps {
soc_cpu4 {
trip = <&soc_trip>;
cooling-device = <&cpu4_isolate 1 1>;
cooling-device = <&cpu4_pause 1 1>;
};
soc_cpu5 {
trip = <&soc_trip>;
cooling-device = <&cpu5_isolate 1 1>;
cooling-device = <&cpu5_pause 1 1>;
};
soc_cpu6 {
trip = <&soc_trip>;
cooling-device = <&cpu6_isolate 1 1>;
cooling-device = <&cpu6_pause 1 1>;
};
soc_cpu7 {
trip = <&soc_trip>;
cooling-device = <&cpu7_isolate 1 1>;
cooling-device = <&cpu7_pause 1 1>;
};
};
};
@@ -47,19 +45,17 @@
cooling-maps {
lbat0_cpufreq4 {
trip = <&b_bcl_lvl0>;
cooling-device =
<&CPU4 (THERMAL_MAX_LIMIT-4)
(THERMAL_MAX_LIMIT-4)>;
cooling-device = <&CPU4 2 2>;
};
lbat0_cpu6 {
trip = <&b_bcl_lvl0>;
cooling-device = <&cpu6_isolate 1 1>;
cooling-device = <&cpu6_pause 1 1>;
};
lbat0_cpu7 {
trip = <&b_bcl_lvl0>;
cooling-device = <&cpu7_isolate 1 1>;
cooling-device = <&cpu7_pause 1 1>;
};
lbat0_gpu {
@@ -77,12 +73,12 @@
cooling-maps {
lbat1_cpu4 {
trip = <&b_bcl_lvl1>;
cooling-device = <&cpu4_isolate 1 1>;
cooling-device = <&cpu4_pause 1 1>;
};
lbat1_cpu5 {
trip = <&b_bcl_lvl1>;
cooling-device = <&cpu5_isolate 1 1>;
cooling-device = <&cpu5_pause 1 1>;
};
lbat1_gpu {
@@ -104,8 +100,7 @@
lbat2_cdsp {
trip = <&b_bcl_lvl2>;
cooling-device = <&cdsp_sw THERMAL_MAX_LIMIT
THERMAL_MAX_LIMIT>;
cooling-device = <&cdsp_sw 4 4>;
};
};
};

View File

@@ -2709,19 +2709,6 @@
thermal_zones: thermal-zones {};
tsens0:tsens@c222000 {
compatible = "qcom,tsens24xx";
reg = <0x04410000 0x8>,
<0x04411000 0x1ff>;
reg-names = "tsens_srot_physical",
"tsens_tm_physical";
interrupts = <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "tsens-upper-lower", "tsens-critical";
tsens-reinit-wa;
#thermal-sensor-cells = <1>;
};
qcom,secure-buffer {
compatible = "qcom,secure-buffer";
};
@@ -4080,22 +4067,3 @@ tpdm_turing_llm: tpdm@8861000 {
};
};
&thermal_zones {
mapss-lowc {
cooling-maps {
rpm_smd_vdd_cdev {
trip = <&mapss_cap_trip>;
cooling-device = <&rpm_smd_cdev 2 2>;
};
};
};
camera-lowc {
cooling-maps {
rpm_smd_vdd_cdev {
trip = <&camera_cap_trip>;
cooling-device = <&rpm_smd_cdev 2 2>;
};
};
};
};