linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: thermal: Make cooling-maps property optional
@ 2019-05-15  9:36 Yuantian Tang
  2019-05-15  9:36 ` Yuantian Tang
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Yuantian Tang @ 2019-05-15  9:36 UTC (permalink / raw)
  To: rui.zhang, edubezval
  Cc: robh+dt, daniel.lezcano, mark.rutland, linux-pm, devicetree,
	linux-kernel, Yuantian Tang

There may be no cooling device on system, or there are no enough
cooling devices for each thermal zone in multiple thermal zone
cases since cooling devices can't be shared.
So make this property optional to remove such limitations.

Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
---
 .../devicetree/bindings/thermal/thermal.txt        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt
index ca14ba9..694e834 100644
--- a/Documentation/devicetree/bindings/thermal/thermal.txt
+++ b/Documentation/devicetree/bindings/thermal/thermal.txt
@@ -142,11 +142,11 @@ Required properties:
 - trips:		A sub-node which is a container of only trip point nodes
   Type: sub-node	required to describe the thermal zone.
 
+
+Optional property:
 - cooling-maps:		A sub-node which is a container of only cooling device
   Type: sub-node	map nodes, used to describe the relation between trips
 			and cooling devices.
-
-Optional property:
 - coefficients:		An array of integers (one signed cell) containing
   Type: array		coefficients to compose a linear relation between
   Elem size: one cell	the sensors listed in the thermal-sensors property.
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [PATCH] dt-bindings: thermal: make cooling-maps property optional
@ 2020-03-09  4:54 andy.tang
  2020-03-16 14:52 ` Daniel Lezcano
  2020-03-23 19:56 ` Rob Herring
  0 siblings, 2 replies; 13+ messages in thread
From: andy.tang @ 2020-03-09  4:54 UTC (permalink / raw)
  To: daniel.lezcano, edubezval, rui.zhang
  Cc: linux-pm, devicetree, linux-kernel, Yuantian Tang

From: Yuantian Tang <andy.tang@nxp.com>

Cooling-maps doesn't have to be a required property because there may
be no cooling device on system, or there are no enough cooling devices for
each thermal zone in multiple thermal zone cases since cooling devices
can't be shared.
So make this property optional to remove such limitations.

For thermal zones with no cooling-maps, there could be critic trips
that can trigger CPU reset or shutdown. So they still can take actions.

Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
---
 Documentation/devicetree/bindings/thermal/thermal.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt
index ca14ba959e0d..f78bec19ca35 100644
--- a/Documentation/devicetree/bindings/thermal/thermal.txt
+++ b/Documentation/devicetree/bindings/thermal/thermal.txt
@@ -142,11 +142,11 @@ Required properties:
 - trips:		A sub-node which is a container of only trip point nodes
   Type: sub-node	required to describe the thermal zone.
 
+Optional property:
 - cooling-maps:		A sub-node which is a container of only cooling device
   Type: sub-node	map nodes, used to describe the relation between trips
 			and cooling devices.
 
-Optional property:
 - coefficients:		An array of integers (one signed cell) containing
   Type: array		coefficients to compose a linear relation between
   Elem size: one cell	the sensors listed in the thermal-sensors property.
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-03-25  9:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15  9:36 [PATCH] dt-bindings: thermal: Make cooling-maps property optional Yuantian Tang
2019-05-15  9:36 ` Yuantian Tang
2019-05-24  2:50 ` Eduardo Valentin
2019-05-24  3:21   ` [EXT] " Andy Tang
2019-06-04  5:56 ` Andy Tang
2019-06-04  6:04   ` Daniel Lezcano
2019-06-24  7:32     ` [EXT] " Andy Tang
2020-03-09  4:54 [PATCH] dt-bindings: thermal: make " andy.tang
2020-03-16 14:52 ` Daniel Lezcano
2020-03-16 16:13   ` Amit Kucheria
2020-03-25  6:37     ` Amit Kucheria
2020-03-25  9:08       ` Daniel Lezcano
2020-03-23 19:56 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).