Skip to content

Commit d7a4303

Browse files
vireshkzhang-rui
authored andcommitted
dt-bindings: thermal: Allow multiple devices to share cooling map
Allow cooling devices sharing same trip point with same contribution value to share the cooling map as well. Otherwise the same information will be duplicated for each device sharing the trip point. Signed-off-by: Viresh Kumar <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
1 parent 5043f06 commit d7a4303

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Documentation/devicetree/bindings/thermal/thermal.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ get assigned to trip points of the zone. The cooling devices are expected
9797
to be loaded in the target system.
9898

9999
Required properties:
100-
- cooling-device: A phandle of a cooling device with its specifier,
101-
Type: phandle + referring to which cooling device is used in this
100+
- cooling-device: A list of phandles of cooling devices with their specifiers,
101+
Type: phandle + referring to which cooling devices are used in this
102102
cooling specifier binding. In the cooling specifier, the first cell
103103
is the minimum cooling state and the second cell
104104
is the maximum cooling state used in this map.
@@ -276,12 +276,7 @@ thermal-zones {
276276
};
277277
map1 {
278278
trip = <&cpu_alert1>;
279-
cooling-device = <&fan0 5 THERMAL_NO_LIMIT>;
280-
};
281-
map2 {
282-
trip = <&cpu_alert1>;
283-
cooling-device =
284-
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
279+
cooling-device = <&fan0 5 THERMAL_NO_LIMIT>, <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
285280
};
286281
};
287282
};

0 commit comments

Comments
 (0)