Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ properties:
enum:
- qcom,qmi-cooling-modem
- qcom,qmi-cooling-cdsp
- qcom,qmi-cooling-cdsp1

vdd:
$ref: "#/definitions/tmd"
Expand All @@ -60,7 +61,9 @@ allOf:
properties:
compatible:
contains:
const: qcom,qmi-cooling-cdsp
enum:
- qcom,qmi-cooling-cdsp
- qcom,qmi-cooling-cdsp1
then:
properties:
cdsp_sw:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/qcom/lemans.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7797,7 +7797,7 @@


cooling {
compatible = "qcom,qmi-cooling-cdsp";
compatible = "qcom,qmi-cooling-cdsp1";
cdsp_sw1: cdsp_sw {
label = "cdsp_sw";
#cooling-cells = <2>;
Expand Down
5 changes: 5 additions & 0 deletions drivers/soc/qcom/qmi-cooling.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define MODEM0_INSTANCE_ID 0x0
#define ADSP_INSTANCE_ID 0x1
#define CDSP_INSTANCE_ID 0x43
#define CDSP1_INSTANCE_ID 0x44
#define SLPI_INSTANCE_ID 0x53

#define QMI_TMD_RESP_TIMEOUT msecs_to_jiffies(100)
Expand Down Expand Up @@ -480,6 +481,10 @@ static const struct of_device_id qmi_tmd_device_table[] = {
.compatible = "qcom,qmi-cooling-cdsp",
.data = &((struct qmi_instance_data) { CDSP_INSTANCE_ID, "cdsp" }),
},
{
.compatible = "qcom,qmi-cooling-cdsp1",
.data = &((struct qmi_instance_data) { CDSP1_INSTANCE_ID, "cdsp1" }),
},
{}
};
MODULE_DEVICE_TABLE(of, qmi_tmd_device_table);
Expand Down