From: Eduardo Valentin <edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org,
linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org,
swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org,
lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v3 3/4] thermal: add more description for thermal-zones
Date: Tue, 26 Aug 2014 08:12:12 -0400 [thread overview]
Message-ID: <20140826121210.GB15219@developer> (raw)
In-Reply-To: <53FBEE39.2020001-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
On Tue, Aug 26, 2014 at 10:17:29AM +0800, Wei Ni wrote:
> On 08/25/2014 07:07 PM, Eduardo Valentin wrote:
> > Hello Wei Ni,
> >
> > On Mon, Aug 25, 2014 at 02:29:47PM +0800, Wei Ni wrote:
> >> Add more description for the "polling-delay" property.
> >> Set "trips" and "cooling maps" as optional property, because
> >> if missing these two sub-nodes, the thermal zone device still
> >> work properly.
> >>
> >> Signed-off-by: Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> >> ---
> >> Documentation/devicetree/bindings/thermal/thermal.txt | 10 ++++++----
> >> 1 file changed, 6 insertions(+), 4 deletions(-)
> >>
> >> diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt
> >> index f5db6b7..e3d3ed9 100644
> >> --- a/Documentation/devicetree/bindings/thermal/thermal.txt
> >> +++ b/Documentation/devicetree/bindings/thermal/thermal.txt
> >> @@ -136,8 +136,8 @@ containing trip nodes and one sub-node containing all the zone cooling maps.
> >>
> >> Required properties:
> >> - polling-delay: The maximum number of milliseconds to wait between polls
> >> - Type: unsigned when checking this thermal zone.
> >> - Size: one cell
> >> + Type: unsigned when checking this thermal zone. If this value is 0, the
> >> + Size: one cell driver will not run polling queue, but just cancel it.
> >>
> >
> > The description above is specific to Linux kernel implementation
> > nomenclature. DT description needs to be OS agnostic.
> >
> >> - polling-delay-passive: The maximum number of milliseconds to wait
> >> Type: unsigned between polls when performing passive cooling.
> >> @@ -148,14 +148,16 @@ Required properties:
> >> phandles + sensor
> >> specifier
> >>
> >> +Optional property:
> >> - trips: A sub-node which is a container of only trip point nodes
> >> Type: sub-node required to describe the thermal zone.
> >>
> >> - 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.
> >> + and cooling devices. If missing the "trips" property,
> >> + This sub-node will not be parsed, because no trips can
> >> + be bound to cooling devices.
> >
> > Do you mean if the thermal zone misses the "trips" property? Actually,
> > the binding describes both, cooling-maps and trips, as required
> > properties. Thus, both needs to be in place to consider the thermal zone
> > as a proper described zone.
>
> I moved the "trips" and "cooling-maps" to optional property, because if
> missing these two properties, the thermal zone devices still can be
> registered, and the driver can work properly, it has the basic function,
> can read temperature from thermal sysfs, although it doesn't have trips
> and bind with cooling devices.
If a thermal zone is used only for monitoring, then I believe it lost
its purpose. As Maybe a different framework shall be used, such as hwmon,
for instance?
The purpose of a thermal zone is to describe thermal behavior of a
hardware. As it is mentioned in the thermal.txt file.
>
> Thanks.
> Wei.
>
> >
> >>
> >> -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.8.1.5
> >>
>
next prev parent reply other threads:[~2014-08-26 12:12 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-25 6:29 [PATCH v3 0/4] expose lm90 to thermal fw Wei Ni
[not found] ` <1408948188-4181-1-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-25 6:29 ` [PATCH v3 1/4] hwmon: (lm90) split set&show temp as common codes Wei Ni
[not found] ` <1408948188-4181-2-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-25 12:23 ` Mikko Perttunen
[not found] ` <53FB2AAA.30601-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-26 2:27 ` Wei Ni
[not found] ` <53FBF09F.8050502-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-26 12:17 ` Eduardo Valentin
2014-08-26 16:37 ` Stephen Warren
[not found] ` <53FCB7C6.8000503-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-08-27 2:25 ` Wei Ni
2014-08-25 6:29 ` [PATCH v3 2/4] hwmon: lm90: expose to thermal fw via DT nodes Wei Ni
2014-08-25 6:29 ` [PATCH v3 3/4] thermal: add more description for thermal-zones Wei Ni
[not found] ` <1408948188-4181-4-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-25 11:07 ` Eduardo Valentin
2014-08-26 2:17 ` Wei Ni
[not found] ` <53FBEE39.2020001-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-26 12:12 ` Eduardo Valentin [this message]
2014-08-27 2:54 ` Wei Ni
2014-08-27 13:32 ` Eduardo Valentin
2014-08-28 1:50 ` Wei Ni
[not found] ` <53FE8AC9.2070907-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-28 13:21 ` Eduardo Valentin
2014-08-29 3:03 ` Wei Ni
[not found] ` <53FFED7B.6010508-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-29 11:32 ` edubezval-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <CAC-25o-9OQ-wfpCJmgDGB0kqDHwUc15XX7Ay7Pes6UmpJakUkQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-01 10:26 ` Wei Ni
[not found] ` <540449BC.2050807-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-09-05 9:41 ` Wei Ni
[not found] ` <54098538.1000505-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-30 19:43 ` Eduardo Valentin
2014-09-10 8:14 ` Wei Ni
2014-09-10 14:10 ` Eduardo Valentin
2014-08-26 3:03 ` Wei Ni
2014-08-26 12:08 ` Eduardo Valentin
2014-08-27 2:31 ` Wei Ni
2014-08-25 6:29 ` [PATCH v3 4/4] ARM: tegra: dalmore: add thermal zones for nct1008 Wei Ni
[not found] ` <1408948188-4181-5-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-25 11:08 ` Eduardo Valentin
2014-08-26 2:21 ` Wei Ni
2014-08-25 11:10 ` Eduardo Valentin
2014-08-26 2:24 ` Wei Ni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140826121210.GB15219@developer \
--to=edubezval-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
--cc=linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
--cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
--cc=wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).