From: Laxman Dewangan <ldewangan@nvidia.com>
To: Eduardo Valentin <edubezval@gmail.com>
Cc: rui.zhang@intel.com, robh+dt@kernel.org, mark.rutland@arm.com,
pawel.moll@arm.com, ijc+devicetree@hellion.org.uk,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver
Date: Wed, 6 Apr 2016 22:18:12 +0530 [thread overview]
Message-ID: <57053DCC.60708@nvidia.com> (raw)
In-Reply-To: <20160406160126.GA638@localhost.localdomain>
Hi Eduardo,
Thanks for review.
On Wednesday 06 April 2016 09:31 PM, Eduardo Valentin wrote:
> On Wed, Apr 06, 2016 at 03:33:05PM +0530, Laxman Dewangan wrote:
>> +- step-temperature: The temperature steps for the reading ADC
>> + value in millicelsius.
> How about when you have a sensor that does not have a nice linear
> stepping correlation ?
Here just temp is stepping but ADC reading is not in linear. So temp vs
adc value is not linear.
Just making the table that temp vs adc value where temp is in equally
stepped.
if something is not possible for few steps than that can be intrapolate
here to get this.
Other way as you said: two dimensional. You mean <temp ADC-value> pair
for the table?
This is also possible and on this case, we will not need lower/upper and
step temperature.
Table will provide all the information.
Also, I assume that sensor is negative coefficients. Temp increases->ADC
read value decreases.
Should we also support positive coefficient relation?
> + writable;
> Not sure about writable property, where is it described?
It is from my testing, not standard. I will remove it.
>> + };
>> + };
>> +
>> + cooling-maps {
>> + map0 {
>> + trip = <&therm_est_trip>;
>> + cooling-device = <&dummy_cool_dev THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>> + contribution = <100>;
>> + cdev-type = "therm_est_activ";
>
> Not sure about cdev-type property, where is it described?
From my testing only. Will remove it.
next prev parent reply other threads:[~2016-04-06 16:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 10:03 [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver Laxman Dewangan
2016-04-06 10:03 ` [PATCH 2/2] thermal: generic-adc: Add " Laxman Dewangan
[not found] ` <1459936986-2839-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-04-06 16:01 ` [PATCH 1/2] thermal: generic-adc: Add DT binding for " Eduardo Valentin
2016-04-06 16:48 ` Laxman Dewangan [this message]
2016-04-07 17:58 ` Rob Herring
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=57053DCC.60708@nvidia.com \
--to=ldewangan@nvidia.com \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
/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).