From 7217825df742a2e925719bd73b0517fae1570e44 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Fri, 18 Sep 2020 11:03:04 -0700 Subject: [PATCH] dt-bindings: Add CPU hotplug cooling device Add CPU hotplug cooling device, which will hotplug a CPU to achieve thermal cooling. Change-Id: I7bbc46f16c35a4b6c31b14067b5ba9a2279296ab --- bindings/thermal/qti-cpu-hotplug-cdev.txt | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 bindings/thermal/qti-cpu-hotplug-cdev.txt diff --git a/bindings/thermal/qti-cpu-hotplug-cdev.txt b/bindings/thermal/qti-cpu-hotplug-cdev.txt new file mode 100644 index 00000000..8e85097a --- /dev/null +++ b/bindings/thermal/qti-cpu-hotplug-cdev.txt @@ -0,0 +1,50 @@ +QTI CPU hotplug cooling devices. + +The CPU hotplug cooling device will be used for hotpluging 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: + Definition: should be "qcom,cpu-hotplug" + +Cooling device node: +- qcom,cpu: + Usage: required + Value type: + Definition: phandle to the CPU device that this cooling device will + mitigate. + +-#cooling-cells: + Usage: required + Value type: + Definition: Must be 2. Needed for of_thermal as cooling device + identifier. Please refer to + for more + details. +Example: + qcom,cpu-hotplug { + compatible = "qcom,cpu-hotplug"; + + cpu0_hotplug: cpu0-hotplug { + qcom,cpu = <&CPU0>; + #cooling-cells = <2>; + }; + cpu1_hotplug: cpu1-hotplug { + qcom,cpu = <&CPU1>; + #cooling-cells = <2>; + }; + cpu2_hotplug: cpu2-hotplug { + qcom,cpu = <&CPU2>; + #cooling-cells = <2>; + }; + cpu3_hotplug: cpu3-hotplug { + qcom,cpu = <&CPU3>; + #cooling-cells = <2>; + }; + };