Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1372664

Re: [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver

From Laxman Dewangan <ldewangan@nvidia.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver
Date 2016-04-06 19:00 +0200
Message-ID <rkYYa-6QA-9@gated-at.bofh.it> (permalink)
References <rkSJ4-2ho-13@gated-at.bofh.it> <rkYbM-6ub-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-06 12:20 +0200
  [PATCH 2/2] thermal: generic-adc: Add ADC based thermal sensor driver Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-06 12:20 +0200
  Re: [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based  thermal sensor driver Eduardo Valentin <edubezval@gmail.com> - 2016-04-06 18:10 +0200
    Re: [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based  thermal sensor driver Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-06 19:00 +0200
  Re: [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based  thermal sensor driver Rob Herring <robh@kernel.org> - 2016-04-07 20:00 +0200

csiph-web