Skip to content

Commit fd39897

Browse files
authored
Merge pull request #149 from gauravkohli1/for-qmi_tmd
Enable QMI TMD support
2 parents 14b537c + 39f9838 commit fd39897

18 files changed

Lines changed: 1553 additions & 20 deletions

File tree

Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ properties:
8080
and devices related to the ADSP.
8181
unevaluatedProperties: false
8282

83+
cooling:
84+
$ref: /schemas/thermal/qcom,qmi-cooling.yaml#
85+
description:
86+
Cooling subnode which represents the cooling devices exposed by the Modem.
87+
unevaluatedProperties: false
88+
8389
required:
8490
- clocks
8591
- clock-names
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
# Copyright 2023 (c), Linaro Limited
3+
4+
%YAML 1.2
5+
---
6+
$id: http://devicetree.org/schemas/thermal/qcom,qmi-cooling.yaml#
7+
$schema: http://devicetree.org/meta-schemas/core.yaml#
8+
9+
title: Qualcomm QMI based thermal mitigation (TMD) cooling devices.
10+
11+
maintainers:
12+
- Caleb Connolly <caleb.connolly@linaro.org>
13+
- Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
14+
15+
description:
16+
Qualcomm QMI-based TMD cooling devices are used to mitigate thermal conditions
17+
across multiple remote subsystems. These devices operate based on junction temperature
18+
sensors (TSENS) associated with thermal zones for each subsystem.
19+
20+
Each subnode corresponds to a control interface for a single instance of the TMD
21+
service running on a remote subsystem.
22+
23+
definitions:
24+
tmd:
25+
type: object
26+
description: |
27+
A single Thermal Mitigation Device exposed by a remote subsystem.
28+
properties:
29+
label:
30+
maxItems: 1
31+
"#cooling-cells":
32+
$ref: /schemas/thermal/thermal-cooling-devices.yaml#/properties/#cooling-cells
33+
phandle: true
34+
35+
required:
36+
- label
37+
- "#cooling-cells"
38+
39+
additionalProperties: false
40+
41+
properties:
42+
compatible:
43+
enum:
44+
- qcom,qmi-cooling-modem
45+
- qcom,qmi-cooling-cdsp
46+
47+
vdd:
48+
$ref: "#/definitions/tmd"
49+
description:
50+
Modem processor temperature TMD
51+
properties:
52+
label:
53+
const: modem
54+
55+
required:
56+
- compatible
57+
58+
allOf:
59+
- if:
60+
properties:
61+
compatible:
62+
contains:
63+
const: qcom,qmi-cooling-cdsp
64+
then:
65+
properties:
66+
cdsp_sw:
67+
$ref: "#/definitions/tmd"
68+
description:
69+
CDSP software TMD
70+
properties:
71+
label:
72+
const: cdsp_sw
73+
74+
unevaluatedProperties: false
75+
76+
examples:
77+
- |
78+
remoteproc-cdsp {
79+
cooling {
80+
compatible = "qcom,qmi-cooling-cdsp";
81+
82+
cdsp_sw0: cdsp_sw {
83+
label = "cdsp_sw";
84+
#cooling-cells = <2>;
85+
};
86+
};
87+
};
88+
89+
remoteproc-cdsp1 {
90+
cooling {
91+
compatible = "qcom,qmi-cooling-cdsp1";
92+
93+
cdsp_sw1: cdsp_sw {
94+
label = "cdsp_sw";
95+
#cooling-cells = <2>;
96+
};
97+
};
98+
};
99+
...

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25539,6 +25539,14 @@ F: drivers/thermal/cpufreq_cooling.c
2553925539
F: drivers/thermal/cpuidle_cooling.c
2554025540
F: include/linux/cpu_cooling.h
2554125541

25542+
THERMAL/REMOTEPROC_COOLING
25543+
M: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
25544+
L: linux-pm@vger.kernel.org
25545+
S: Supported
25546+
F: drivers/thermal/remoteproc_cooling.c
25547+
F: include/linux/remoteproc_cooling.h
25548+
25549+
2554225550
THERMAL/POWER_ALLOCATOR
2554325551
M: Lukasz Luba <lukasz.luba@arm.com>
2554425552
L: linux-pm@vger.kernel.org

0 commit comments

Comments
 (0)