All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Eduardo Valentin <edubezval-Re5JQEeQqe8AvxtiuMwx3w@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 4/4] ARM: tegra: dalmore: add thermal zones for nct1008
Date: Tue, 26 Aug 2014 10:21:43 +0800	[thread overview]
Message-ID: <53FBEF37.2040008@nvidia.com> (raw)
In-Reply-To: <20140825110844.GB12349@developer>

On 08/25/2014 07:08 PM, Eduardo Valentin wrote:
> On Mon, Aug 25, 2014 at 02:29:48PM +0800, Wei Ni wrote:
>> From: lightning314 <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>
>> Add dt node to describe the thermal zone for the nct1008.
>>
>> Signed-off-by: Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>> ---
>>  arch/arm/boot/dts/tegra114-dalmore.dts | 20 +++++++++++++++++++-
>>  1 file changed, 19 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
>> index 5c21d21..94a1b5d 100644
>> --- a/arch/arm/boot/dts/tegra114-dalmore.dts
>> +++ b/arch/arm/boot/dts/tegra114-dalmore.dts
>> @@ -779,12 +779,14 @@
>>  				<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
>>  		};
>>  
>> -		temperature-sensor@4c {
>> +		nct1008: temperature-sensor@4c {
>>  			compatible = "onnn,nct1008";
>>  			reg = <0x4c>;
>>  			vcc-supply = <&palmas_ldo6_reg>;
>>  			interrupt-parent = <&gpio>;
>>  			interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
>> +
>> +			#thermal-sensor-cells = <1>;
>>  		};
>>  	};
>>  
>> @@ -1283,4 +1285,20 @@
>>  			 <&tegra_car TEGRA114_CLK_EXTERN1>;
>>  		clock-names = "pll_a", "pll_a_out0", "mclk";
>>  	};
>> +
>> +	thermal-zones {
>> +		nct1008-local {
>> +			polling-delay-passive = <2000>; /* milliseconds */
>> +			polling-delay = <0>; /* milliseconds */
>> +
>> +			thermal-sensors = <&nct1008 0>;
>> +		};
>> +
>> +		nct1008-remote {
>> +			polling-delay-passive = <1000>; /* milliseconds */
>> +			polling-delay = <0>; /* milliseconds */
>> +
>> +			thermal-sensors = <&nct1008 1>;
>> +		};
>> +	};
> 
> The above zones misses the required properties, as per the thermal.txt
> binding description. Could you please have a look on those that are
> required and improve the zones above?

I changed the thermal.txt in the patch 3/4, to move these two properties
to optional property.
On the Dalmore, we just need to register these two sensors as thermal
zone devices.
Indeed, we have a skin-temperature driver, which used these two thermal
zone deives' temperature to estimator the skin temperature, so we
doesn't need to set trips and bind with any cooling devices on them.

Thanks.
Wei.

> 
>>  };
>> -- 
>> 1.8.1.5
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

WARNING: multiple messages have this Message-ID (diff)
From: Wei Ni <wni@nvidia.com>
To: Eduardo Valentin <edubezval-Re5JQEeQqe8AvxtiuMwx3w@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: [lm-sensors] [PATCH v3 4/4] ARM: tegra: dalmore: add thermal zones for nct1008
Date: Tue, 26 Aug 2014 02:21:43 +0000	[thread overview]
Message-ID: <53FBEF37.2040008@nvidia.com> (raw)
In-Reply-To: <20140825110844.GB12349@developer>

On 08/25/2014 07:08 PM, Eduardo Valentin wrote:
> On Mon, Aug 25, 2014 at 02:29:48PM +0800, Wei Ni wrote:
>> From: lightning314 <wni@nvidia.com>
>>
>> Add dt node to describe the thermal zone for the nct1008.
>>
>> Signed-off-by: Wei Ni <wni@nvidia.com>
>> ---
>>  arch/arm/boot/dts/tegra114-dalmore.dts | 20 +++++++++++++++++++-
>>  1 file changed, 19 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
>> index 5c21d21..94a1b5d 100644
>> --- a/arch/arm/boot/dts/tegra114-dalmore.dts
>> +++ b/arch/arm/boot/dts/tegra114-dalmore.dts
>> @@ -779,12 +779,14 @@
>>  				<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
>>  		};
>>  
>> -		temperature-sensor@4c {
>> +		nct1008: temperature-sensor@4c {
>>  			compatible = "onnn,nct1008";
>>  			reg = <0x4c>;
>>  			vcc-supply = <&palmas_ldo6_reg>;
>>  			interrupt-parent = <&gpio>;
>>  			interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
>> +
>> +			#thermal-sensor-cells = <1>;
>>  		};
>>  	};
>>  
>> @@ -1283,4 +1285,20 @@
>>  			 <&tegra_car TEGRA114_CLK_EXTERN1>;
>>  		clock-names = "pll_a", "pll_a_out0", "mclk";
>>  	};
>> +
>> +	thermal-zones {
>> +		nct1008-local {
>> +			polling-delay-passive = <2000>; /* milliseconds */
>> +			polling-delay = <0>; /* milliseconds */
>> +
>> +			thermal-sensors = <&nct1008 0>;
>> +		};
>> +
>> +		nct1008-remote {
>> +			polling-delay-passive = <1000>; /* milliseconds */
>> +			polling-delay = <0>; /* milliseconds */
>> +
>> +			thermal-sensors = <&nct1008 1>;
>> +		};
>> +	};
> 
> The above zones misses the required properties, as per the thermal.txt
> binding description. Could you please have a look on those that are
> required and improve the zones above?

I changed the thermal.txt in the patch 3/4, to move these two properties
to optional property.
On the Dalmore, we just need to register these two sensors as thermal
zone devices.
Indeed, we have a skin-temperature driver, which used these two thermal
zone deives' temperature to estimator the skin temperature, so we
doesn't need to set trips and bind with any cooling devices on them.

Thanks.
Wei.

> 
>>  };
>> -- 
>> 1.8.1.5
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

WARNING: multiple messages have this Message-ID (diff)
From: Wei Ni <wni@nvidia.com>
To: Eduardo Valentin <edubezval@gmail.com>
Cc: <khali@linux-fr.org>, <linux@roeck-us.net>,
	<swarren@wwwdotorg.org>, <lm-sensors@lm-sensors.org>,
	<linux-tegra@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 4/4] ARM: tegra: dalmore: add thermal zones for nct1008
Date: Tue, 26 Aug 2014 10:21:43 +0800	[thread overview]
Message-ID: <53FBEF37.2040008@nvidia.com> (raw)
In-Reply-To: <20140825110844.GB12349@developer>

On 08/25/2014 07:08 PM, Eduardo Valentin wrote:
> On Mon, Aug 25, 2014 at 02:29:48PM +0800, Wei Ni wrote:
>> From: lightning314 <wni@nvidia.com>
>>
>> Add dt node to describe the thermal zone for the nct1008.
>>
>> Signed-off-by: Wei Ni <wni@nvidia.com>
>> ---
>>  arch/arm/boot/dts/tegra114-dalmore.dts | 20 +++++++++++++++++++-
>>  1 file changed, 19 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
>> index 5c21d21..94a1b5d 100644
>> --- a/arch/arm/boot/dts/tegra114-dalmore.dts
>> +++ b/arch/arm/boot/dts/tegra114-dalmore.dts
>> @@ -779,12 +779,14 @@
>>  				<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
>>  		};
>>  
>> -		temperature-sensor@4c {
>> +		nct1008: temperature-sensor@4c {
>>  			compatible = "onnn,nct1008";
>>  			reg = <0x4c>;
>>  			vcc-supply = <&palmas_ldo6_reg>;
>>  			interrupt-parent = <&gpio>;
>>  			interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
>> +
>> +			#thermal-sensor-cells = <1>;
>>  		};
>>  	};
>>  
>> @@ -1283,4 +1285,20 @@
>>  			 <&tegra_car TEGRA114_CLK_EXTERN1>;
>>  		clock-names = "pll_a", "pll_a_out0", "mclk";
>>  	};
>> +
>> +	thermal-zones {
>> +		nct1008-local {
>> +			polling-delay-passive = <2000>; /* milliseconds */
>> +			polling-delay = <0>; /* milliseconds */
>> +
>> +			thermal-sensors = <&nct1008 0>;
>> +		};
>> +
>> +		nct1008-remote {
>> +			polling-delay-passive = <1000>; /* milliseconds */
>> +			polling-delay = <0>; /* milliseconds */
>> +
>> +			thermal-sensors = <&nct1008 1>;
>> +		};
>> +	};
> 
> The above zones misses the required properties, as per the thermal.txt
> binding description. Could you please have a look on those that are
> required and improve the zones above?

I changed the thermal.txt in the patch 3/4, to move these two properties
to optional property.
On the Dalmore, we just need to register these two sensors as thermal
zone devices.
Indeed, we have a skin-temperature driver, which used these two thermal
zone deives' temperature to estimator the skin temperature, so we
doesn't need to set trips and bind with any cooling devices on them.

Thanks.
Wei.

> 
>>  };
>> -- 
>> 1.8.1.5
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2014-08-26  2:21 UTC|newest]

Thread overview: 90+ 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
2014-08-25  6:29 ` Wei Ni
2014-08-25  6:29 ` [lm-sensors] " 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
2014-08-25  6:29     ` Wei Ni
2014-08-25  6:29     ` [lm-sensors] " Wei Ni
     [not found]     ` <1408948188-4181-2-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-25 12:23       ` Mikko Perttunen
2014-08-25 12:23         ` Mikko Perttunen
2014-08-25 12:23         ` [lm-sensors] " Mikko Perttunen
     [not found]         ` <53FB2AAA.30601-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-26  2:27           ` Wei Ni
2014-08-26  2:27             ` Wei Ni
2014-08-26  2:27             ` [lm-sensors] " Wei Ni
     [not found]             ` <53FBF09F.8050502-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-26 12:17               ` Eduardo Valentin
2014-08-26 12:17                 ` Eduardo Valentin
2014-08-26 12:17                 ` [lm-sensors] " Eduardo Valentin
2014-08-26 16:37                 ` Stephen Warren
2014-08-26 16:37                   ` [lm-sensors] " Stephen Warren
     [not found]                   ` <53FCB7C6.8000503-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-08-27  2:25                     ` Wei Ni
2014-08-27  2:25                       ` Wei Ni
2014-08-27  2:25                       ` [lm-sensors] " 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   ` Wei Ni
2014-08-25  6:29   ` [lm-sensors] " Wei Ni
2014-08-25  6:29 ` [PATCH v3 3/4] thermal: add more description for thermal-zones Wei Ni
2014-08-25  6:29   ` Wei Ni
2014-08-25  6:29   ` [lm-sensors] " 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-25 11:07       ` Eduardo Valentin
2014-08-25 11:07       ` [lm-sensors] " Eduardo Valentin
2014-08-26  2:17       ` Wei Ni
2014-08-26  2:17         ` Wei Ni
2014-08-26  2:17         ` [lm-sensors] " Wei Ni
     [not found]         ` <53FBEE39.2020001-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-26 12:12           ` Eduardo Valentin
2014-08-26 12:12             ` Eduardo Valentin
2014-08-26 12:12             ` [lm-sensors] " Eduardo Valentin
2014-08-27  2:54             ` Wei Ni
2014-08-27  2:54               ` Wei Ni
2014-08-27  2:54               ` [lm-sensors] " Wei Ni
2014-08-27 13:32               ` Eduardo Valentin
2014-08-27 13:32                 ` [lm-sensors] " Eduardo Valentin
2014-08-28  1:50                 ` Wei Ni
2014-08-28  1:50                   ` Wei Ni
2014-08-28  1:50                   ` [lm-sensors] " Wei Ni
     [not found]                   ` <53FE8AC9.2070907-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-28 13:21                     ` Eduardo Valentin
2014-08-28 13:21                       ` Eduardo Valentin
2014-08-28 13:21                       ` [lm-sensors] " Eduardo Valentin
2014-08-29  3:03                       ` Wei Ni
2014-08-29  3:03                         ` Wei Ni
2014-08-29  3:03                         ` [lm-sensors] " Wei Ni
     [not found]                         ` <53FFED7B.6010508-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-29 11:32                           ` edubezval-Re5JQEeQqe8AvxtiuMwx3w
2014-08-29 11:32                             ` edubezval
2014-08-29 11:32                             ` [lm-sensors] " edubezval
     [not found]                             ` <CAC-25o-9OQ-wfpCJmgDGB0kqDHwUc15XX7Ay7Pes6UmpJakUkQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-01 10:26                               ` Wei Ni
2014-09-01 10:26                                 ` Wei Ni
2014-09-01 10:26                                 ` [lm-sensors] " Wei Ni
     [not found]                                 ` <540449BC.2050807-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-09-05  9:41                                   ` Wei Ni
2014-09-05  9:41                                     ` Wei Ni
2014-09-05  9:41                                     ` [lm-sensors] " Wei Ni
     [not found]                                     ` <54098538.1000505-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-08-30 19:43                                       ` Eduardo Valentin
2014-08-30 19:43                                         ` Eduardo Valentin
2014-08-30 19:43                                         ` [lm-sensors] " Eduardo Valentin
2014-09-10  8:14                                         ` Wei Ni
2014-09-10  8:14                                           ` Wei Ni
2014-09-10  8:14                                           ` [lm-sensors] " Wei Ni
2014-09-10 14:10                                           ` Eduardo Valentin
2014-09-10 14:10                                             ` Eduardo Valentin
2014-09-10 14:10                                             ` [lm-sensors] " Eduardo Valentin
2014-08-26  3:03       ` Wei Ni
2014-08-26  3:03         ` Wei Ni
2014-08-26  3:03         ` [lm-sensors] " Wei Ni
2014-08-26 12:08         ` Eduardo Valentin
2014-08-26 12:08           ` [lm-sensors] " Eduardo Valentin
2014-08-27  2:31           ` Wei Ni
2014-08-27  2:31             ` Wei Ni
2014-08-27  2:31             ` [lm-sensors] " Wei Ni
2014-08-25  6:29 ` [PATCH v3 4/4] ARM: tegra: dalmore: add thermal zones for nct1008 Wei Ni
2014-08-25  6:29   ` Wei Ni
2014-08-25  6:29   ` [lm-sensors] " 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-25 11:08       ` Eduardo Valentin
2014-08-25 11:08       ` [lm-sensors] " Eduardo Valentin
2014-08-26  2:21       ` Wei Ni [this message]
2014-08-26  2:21         ` Wei Ni
2014-08-26  2:21         ` [lm-sensors] " Wei Ni
2014-08-25 11:10     ` Eduardo Valentin
2014-08-25 11:10       ` Eduardo Valentin
2014-08-25 11:10       ` [lm-sensors] " Eduardo Valentin
2014-08-26  2:24       ` Wei Ni
2014-08-26  2:24         ` Wei Ni
2014-08-26  2:24         ` [lm-sensors] " 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=53FBEF37.2040008@nvidia.com \
    --to=wni-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
    --cc=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 \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.