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

Commit aabf400f authored by Ram Chandrasekar's avatar Ram Chandrasekar Committed by Manaf Meethalavalappu Pallikunhi
Browse files

dt-bindings: thermal: Add cooling device level properties



Add optional properties to limit the cooling device mitigation for a
thermal config. This limitation can be a floor and cap restriction.

Change-Id: I2703127d7dd6c9b2f2123c767cf7d58832a2c9ce
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent bdd918fd
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -55,7 +55,8 @@ of heat dissipation). For example a fan's cooling states correspond to
the different fan speeds possible. Cooling states are referred to by
single unsigned integers, where larger numbers mean greater heat
dissipation. The precise set of cooling states associated with a device
should be defined in a particular device's binding.
(as referred to by the cooling-min-level and cooling-max-level
properties) should be defined in a particular device's binding.
For more examples of cooling devices, refer to the example sections below.

Required properties:
@@ -68,6 +69,15 @@ Required properties:
			See Cooling device maps section below for more details
			on how consumers refer to cooling devices.

Optional properties:
- cooling-min-level:	An integer indicating the smallest
  Type: unsigned	cooling state accepted. Typically 0.
  Size: one cell

- cooling-max-level:	An integer indicating the largest
  Type: unsigned	cooling state accepted.
  Size: one cell

* Trip points

The trip node is a node to describe a point in the temperature domain
@@ -216,6 +226,8 @@ cpus {
			396000  950000
			198000  850000
		>;
		cooling-min-level = <0>;
		cooling-max-level = <3>;
		#cooling-cells = <2>; /* min followed by max */
	};
	...
@@ -229,6 +241,8 @@ cpus {
	 */
	fan0: fan@48 {
		...
		cooling-max-level = <9>;
		cooling-min-level = <0>;
		#cooling-cells = <2>; /* min followed by max */
	};
};