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

Commit 074dd914 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

dt-bindings: thermal: Add cpu isolation cooling device



Add support for CPU isolation cooling device, which can isolate a CPU to
achieve thermal cooling.

Change-Id: Ie7b8ee5046422b2caef0bc73beea3f0d590ba666
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 685e7e3d
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
QTI CPU isolation cooling devices.

The CPU isolation cooling device will be used for isolating a CPU on a thermal
condition. This cooling device driver can register one cooling device per CPU,
which can be used by thermal zone to mitigate.

Each child node will represent a cooling device and the child node should
point to the CPU, which will be mitigated by that cooling device instance.

Properties:
- compatible:
	Usage: required
	Value type: <string>
	Definition: should be "qcom,cpu-isolate"

Cooling device node:
- qcom,cpu:
	Usage: required
	Value type: <phandle>
	Definition: phandle to the CPU device that this cooling device will
			mitigate.

-#cooling-cells:
	Usage: required
	Value type: <integer>
	Definition: Must be 2. Needed for of_thermal as cooling device
			identifier. Please refer to
			<devicetree/bindings/thermal/thermal.txt> for more
			details.
Example:
	qcom,cpu-isolation {
		compatible = "qcom,cpu-isolate";

		cpu0_isolate: cpu0-isolate {
			qcom,cpu = <&CPU0>;
			#cooling-cells = <2>;
		};
		cpu1_isolate: cpu1-isolate {
			qcom,cpu = <&CPU1>;
			#cooling-cells = <2>;
		};
		cpu2_isolate: cpu2-isolate {
			qcom,cpu = <&CPU2>;
			#cooling-cells = <2>;
		};
		cpu3_isolate: cpu3-isolate {
			qcom,cpu = <&CPU3>;
			#cooling-cells = <2>;
		};
        };