Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb740cee authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

drivers: thermal: Add support for CDSP cooling devices via qmi cdev



Add support for CDSP DCVS and CDSP hardware cooling devices to QMI
cooling device driver. These cooling devices can be used to mitigate
CDSP subsystem at high temperature via qmi interface.

Change-Id: Ia9906b07ebca4bd6158b68e6e100405ebaa30b60
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent ff722117
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -50,7 +50,9 @@ Subsystem properties:
			"modem_skin1" -> Modem skin mitigation device1,
			"modem_skin2" -> Modem skin mitigation device2,
			"modem_skin3" -> Modem skin mitigation device3,
			"cpr_cold" -> for cpr restriction.
			"cpr_cold" -> for cpr restriction,
			"cdsp_sw" -> for CDSP DCVS mitigation device,
			"cdsp_hw" -> for CDSP hardware mitigation device.

	-#cooling-cells:
		Usage: required
@@ -109,6 +111,16 @@ Example:
				qcom,qmi-dev-name = "cpuv_restriction_cold";
				#cooling-cells = <2>;
			};

			cdsp_sw: cdsp {
				qcom,qmi-dev-name = "cdsp_sw";
				#cooling-cells = <2>;
			};

			cdsp_hw: hvx {
				qcom,qmi-dev-name = "cdsp_hw";
				#cooling-cells = <2>;
			};
		};

		slpi {
+9 −1
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-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
@@ -125,6 +125,14 @@ static struct qmi_dev_info device_clients[] = {
		.dev_name = "modem_skin3",
		.type = QMI_CDEV_MAX_LIMIT_TYPE,
	},
	{
		.dev_name = "cdsp_sw",
		.type = QMI_CDEV_MAX_LIMIT_TYPE,
	},
	{
		.dev_name = "cdsp_hw",
		.type = QMI_CDEV_MAX_LIMIT_TYPE,
	},
	{
		.dev_name = "cpuv_restriction_cold",
		.type = QMI_CDEV_MIN_LIMIT_TYPE,