linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Enable lm90 in Tegra30 and Tegra114.
@ 2013-07-04  9:09 Wei Ni
  2013-07-04  9:09 ` [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90 Wei Ni
  2013-07-04  9:09 ` [PATCH 2/2] ARM: dt: t114 dalmore: " Wei Ni
  0 siblings, 2 replies; 13+ messages in thread
From: Wei Ni @ 2013-07-04  9:09 UTC (permalink / raw)
  To: swarren, acourbot, linux
  Cc: MLongnecker, linux-arm-kernel, lm-sensors, linux-kernel,
	linux-tegra, Wei Ni

Enable thermal sensor lm90 for Tegra30 Cardhu and Tegra114 Dalmore.

This series is v1, based on [RFC 1/9] submitted here:
http://thread.gmane.org/gmane.linux.power-management.general/31056

Changes from RFC:
1. Enable it for Tegra114 Dalmore.

Wei Ni (2):
  ARM: dt: t30 cardhu: add dt entry for lm90
  ARM: dt: t114 dalmore: add dt entry for lm90

 arch/arm/boot/dts/tegra114-dalmore.dts |    7 +++++++
 arch/arm/boot/dts/tegra30-cardhu.dtsi  |    7 +++++++
 2 files changed, 14 insertions(+)

-- 
1.7.9.5


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

* [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-04  9:09 [PATCH 0/2] Enable lm90 in Tegra30 and Tegra114 Wei Ni
@ 2013-07-04  9:09 ` Wei Ni
  2013-07-05 17:38   ` Stephen Warren
  2013-07-04  9:09 ` [PATCH 2/2] ARM: dt: t114 dalmore: " Wei Ni
  1 sibling, 1 reply; 13+ messages in thread
From: Wei Ni @ 2013-07-04  9:09 UTC (permalink / raw)
  To: swarren, acourbot, linux
  Cc: MLongnecker, linux-arm-kernel, lm-sensors, linux-kernel,
	linux-tegra, Wei Ni

Enable thermal sensor lm90 for t30 cardhu.

Signed-off-by: Wei Ni <wni@nvidia.com>
---
 arch/arm/boot/dts/tegra30-cardhu.dtsi |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
index f65b53d..8778c94 100644
--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
+++ b/arch/arm/boot/dts/tegra30-cardhu.dtsi
@@ -286,6 +286,13 @@
 				};
 			};
 		};
+
+		nct1008: nct1008 {
+			compatible = "lm90,nct1008";
+			reg = <0x4c>;
+			interrupt-parent = <&gpio>;
+			interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_LEVEL_LOW>;
+		};
 	};
 
 	spi@7000da00 {
-- 
1.7.9.5


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

* [PATCH 2/2] ARM: dt: t114 dalmore: add dt entry for lm90
  2013-07-04  9:09 [PATCH 0/2] Enable lm90 in Tegra30 and Tegra114 Wei Ni
  2013-07-04  9:09 ` [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90 Wei Ni
@ 2013-07-04  9:09 ` Wei Ni
  1 sibling, 0 replies; 13+ messages in thread
From: Wei Ni @ 2013-07-04  9:09 UTC (permalink / raw)
  To: swarren, acourbot, linux
  Cc: MLongnecker, linux-arm-kernel, lm-sensors, linux-kernel,
	linux-tegra, Wei Ni

Enable thermal sensor lm90 for t114 dalmore.

Signed-off-by: Wei Ni <wni@nvidia.com>
---
 arch/arm/boot/dts/tegra114-dalmore.dts |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index cb640eb..8325797 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -738,6 +738,13 @@
 			realtek,ldo1-en-gpios =
 				<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
 		};
+
+		nct1008: nct1008 {
+			compatible = "lm90,nct1008";
+			reg = <0x4c>;
+			interrupt-parent = <&gpio>;
+			interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
+		};
 	};
 
 	i2c@7000d000 {
-- 
1.7.9.5


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

* Re: [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-04  9:09 ` [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90 Wei Ni
@ 2013-07-05 17:38   ` Stephen Warren
  2013-07-08  7:35     ` Wei Ni
  0 siblings, 1 reply; 13+ messages in thread
From: Stephen Warren @ 2013-07-05 17:38 UTC (permalink / raw)
  To: Wei Ni
  Cc: acourbot, linux, MLongnecker, linux-arm-kernel, lm-sensors,
	linux-kernel, linux-tegra

On 07/04/2013 03:09 AM, Wei Ni wrote:
> Enable thermal sensor lm90 for t30 cardhu.

> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi

> +		nct1008: nct1008 {
> +			compatible = "lm90,nct1008";

"lm90" isn't a valid vendor prefix. I believe the value you want is
"onnn,nct1008". Same comment for patch 2/2.

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

* Re: [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-05 17:38   ` Stephen Warren
@ 2013-07-08  7:35     ` Wei Ni
  2013-07-08  7:50       ` [lm-sensors] " Jean Delvare
  2013-07-08 13:12       ` Guenter Roeck
  0 siblings, 2 replies; 13+ messages in thread
From: Wei Ni @ 2013-07-08  7:35 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Alex Courbot, linux, Matthew Longnecker, linux-arm-kernel,
	lm-sensors, linux-kernel, linux-tegra

On 07/06/2013 01:38 AM, Stephen Warren wrote:
> On 07/04/2013 03:09 AM, Wei Ni wrote:
>> Enable thermal sensor lm90 for t30 cardhu.
> 
>> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
> 
>> +		nct1008: nct1008 {
>> +			compatible = "lm90,nct1008";
> 
> "lm90" isn't a valid vendor prefix. I believe the value you want is
> "onnn,nct1008". Same comment for patch 2/2.
> 
The lm90 doesn't support device tree very well. In the DT, we need to
named as "lm90" so that the lm90 driver can be loaded, and we also need
to add "nct1008" to indicate this is the nct1008 device, so that the
lm90 driver can be loaded with the right i2c_device_id->driver_data.

I set the " compatible = "lm90,nct1008" ", this is the simplest way, and
we doesn't need to change the lm90.c.

Thanks.
Wei.

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

* Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-08  7:35     ` Wei Ni
@ 2013-07-08  7:50       ` Jean Delvare
  2013-07-08  9:36         ` Wei Ni
  2013-07-08 13:12       ` Guenter Roeck
  1 sibling, 1 reply; 13+ messages in thread
From: Jean Delvare @ 2013-07-08  7:50 UTC (permalink / raw)
  To: Wei Ni
  Cc: Stephen Warren, linux, linux-kernel, lm-sensors,
	Matthew Longnecker, Alex Courbot, linux-tegra, linux-arm-kernel

On Mon, 8 Jul 2013 15:35:48 +0800, Wei Ni wrote:
> On 07/06/2013 01:38 AM, Stephen Warren wrote:
> > On 07/04/2013 03:09 AM, Wei Ni wrote:
> >> Enable thermal sensor lm90 for t30 cardhu.
> > 
> >> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
> > 
> >> +		nct1008: nct1008 {
> >> +			compatible = "lm90,nct1008";
> > 
> > "lm90" isn't a valid vendor prefix. I believe the value you want is
> > "onnn,nct1008". Same comment for patch 2/2.
> 
> The lm90 doesn't support device tree very well.

I doubt it, but if this is the case, then please fix it, instead of
working the problem around in a different place.

> In the DT, we need to
> named as "lm90" so that the lm90 driver can be loaded,

Not that I am an expert with regards to DT, but this doesn't make any
sense to me. AFAIK DT is about devices, not which drivers handle them.

> and we also need
> to add "nct1008" to indicate this is the nct1008 device, so that the
> lm90 driver can be loaded with the right i2c_device_id->driver_data.
> 
> I set the " compatible = "lm90,nct1008" ", this is the simplest way, and
> we doesn't need to change the lm90.c.

There's no problem with changing the lm90 driver, if this is the right
thing to do.

-- 
Jean Delvare

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

* Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-08  7:50       ` [lm-sensors] " Jean Delvare
@ 2013-07-08  9:36         ` Wei Ni
  2013-07-08 13:14           ` Guenter Roeck
  0 siblings, 1 reply; 13+ messages in thread
From: Wei Ni @ 2013-07-08  9:36 UTC (permalink / raw)
  To: Jean Delvare
  Cc: Stephen Warren, linux, linux-kernel, lm-sensors,
	Matthew Longnecker, Alex Courbot, linux-tegra, linux-arm-kernel

On 07/08/2013 03:50 PM, Jean Delvare wrote:
> On Mon, 8 Jul 2013 15:35:48 +0800, Wei Ni wrote:
>> On 07/06/2013 01:38 AM, Stephen Warren wrote:
>>> On 07/04/2013 03:09 AM, Wei Ni wrote:
>>>> Enable thermal sensor lm90 for t30 cardhu.
>>>
>>>> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
>>>
>>>> +		nct1008: nct1008 {
>>>> +			compatible = "lm90,nct1008";
>>>
>>> "lm90" isn't a valid vendor prefix. I believe the value you want is
>>> "onnn,nct1008". Same comment for patch 2/2.
>>
>> The lm90 doesn't support device tree very well.
> 
> I doubt it, but if this is the case, then please fix it, instead of
> working the problem around in a different place.
> 
>> In the DT, we need to
>> named as "lm90" so that the lm90 driver can be loaded,
> 
> Not that I am an expert with regards to DT, but this doesn't make any
> sense to me. AFAIK DT is about devices, not which drivers handle them.
> 
>> and we also need
>> to add "nct1008" to indicate this is the nct1008 device, so that the
>> lm90 driver can be loaded with the right i2c_device_id->driver_data.
>>
>> I set the " compatible = "lm90,nct1008" ", this is the simplest way, and
>> we doesn't need to change the lm90.c.
> 
> There's no problem with changing the lm90 driver, if this is the right
> thing to do.

Ok, I will add DT support in the lm90.c in my next version patch.

Thanks.
Wei.

> 


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

* Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-08  7:35     ` Wei Ni
  2013-07-08  7:50       ` [lm-sensors] " Jean Delvare
@ 2013-07-08 13:12       ` Guenter Roeck
  1 sibling, 0 replies; 13+ messages in thread
From: Guenter Roeck @ 2013-07-08 13:12 UTC (permalink / raw)
  To: Wei Ni
  Cc: Stephen Warren, linux, linux-kernel, lm-sensors,
	Matthew Longnecker, Alex Courbot, linux-tegra, linux-arm-kernel

On Mon, Jul 08, 2013 at 03:35:48PM +0800, Wei Ni wrote:
> On 07/06/2013 01:38 AM, Stephen Warren wrote:
> > On 07/04/2013 03:09 AM, Wei Ni wrote:
> >> Enable thermal sensor lm90 for t30 cardhu.
> > 
> >> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
> > 
> >> +		nct1008: nct1008 {
> >> +			compatible = "lm90,nct1008";
> > 
> > "lm90" isn't a valid vendor prefix. I believe the value you want is
> > "onnn,nct1008". Same comment for patch 2/2.
> > 
> The lm90 doesn't support device tree very well. In the DT, we need to
> named as "lm90" so that the lm90 driver can be loaded, and we also need
> to add "nct1008" to indicate this is the nct1008 device, so that the
> lm90 driver can be loaded with the right i2c_device_id->driver_data.
> 
> I set the " compatible = "lm90,nct1008" ", this is the simplest way, and
> we doesn't need to change the lm90.c.
> 
Did you really test "onn,nct1008" or, for that matter, "anything,nct1008" ?

I have been using 
	maxim,max1137
	maxim,max1139
	maxim,max6697
	dallas,ds1621
	linear,ltc3880
	linear,ltc2978
	intersil,zl2006
	ti,tmp421
	ti,tmp431

without problems, and without having to add code to the respective drivers.
I would be quite surprised if "onn,nct1008" would not work.

Guenter

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

* Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-08  9:36         ` Wei Ni
@ 2013-07-08 13:14           ` Guenter Roeck
  2013-07-09  6:21             ` Thierry Reding
  0 siblings, 1 reply; 13+ messages in thread
From: Guenter Roeck @ 2013-07-08 13:14 UTC (permalink / raw)
  To: Wei Ni
  Cc: Jean Delvare, linux, Stephen Warren, linux-kernel, lm-sensors,
	Matthew Longnecker, Alex Courbot, linux-tegra, linux-arm-kernel

On Mon, Jul 08, 2013 at 05:36:05PM +0800, Wei Ni wrote:
> On 07/08/2013 03:50 PM, Jean Delvare wrote:
> > On Mon, 8 Jul 2013 15:35:48 +0800, Wei Ni wrote:
> >> On 07/06/2013 01:38 AM, Stephen Warren wrote:
> >>> On 07/04/2013 03:09 AM, Wei Ni wrote:
> >>>> Enable thermal sensor lm90 for t30 cardhu.
> >>>
> >>>> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
> >>>
> >>>> +		nct1008: nct1008 {
> >>>> +			compatible = "lm90,nct1008";
> >>>
> >>> "lm90" isn't a valid vendor prefix. I believe the value you want is
> >>> "onnn,nct1008". Same comment for patch 2/2.
> >>
> >> The lm90 doesn't support device tree very well.
> > 
> > I doubt it, but if this is the case, then please fix it, instead of
> > working the problem around in a different place.
> > 
> >> In the DT, we need to
> >> named as "lm90" so that the lm90 driver can be loaded,
> > 
> > Not that I am an expert with regards to DT, but this doesn't make any
> > sense to me. AFAIK DT is about devices, not which drivers handle them.
> > 
> >> and we also need
> >> to add "nct1008" to indicate this is the nct1008 device, so that the
> >> lm90 driver can be loaded with the right i2c_device_id->driver_data.
> >>
> >> I set the " compatible = "lm90,nct1008" ", this is the simplest way, and
> >> we doesn't need to change the lm90.c.
> > 
> > There's no problem with changing the lm90 driver, if this is the right
> > thing to do.
> 
> Ok, I will add DT support in the lm90.c in my next version patch.
> 
Only if you can show that it is necessary.

Guenter

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

* Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-08 13:14           ` Guenter Roeck
@ 2013-07-09  6:21             ` Thierry Reding
  2013-07-09  7:48               ` Wei Ni
  0 siblings, 1 reply; 13+ messages in thread
From: Thierry Reding @ 2013-07-09  6:21 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Wei Ni, Jean Delvare, linux, Stephen Warren, linux-kernel,
	lm-sensors, Matthew Longnecker, Alex Courbot, linux-tegra,
	linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 1944 bytes --]

On Mon, Jul 08, 2013 at 06:14:21AM -0700, Guenter Roeck wrote:
> On Mon, Jul 08, 2013 at 05:36:05PM +0800, Wei Ni wrote:
> > On 07/08/2013 03:50 PM, Jean Delvare wrote:
> > > On Mon, 8 Jul 2013 15:35:48 +0800, Wei Ni wrote:
> > >> On 07/06/2013 01:38 AM, Stephen Warren wrote:
> > >>> On 07/04/2013 03:09 AM, Wei Ni wrote:
> > >>>> Enable thermal sensor lm90 for t30 cardhu.
> > >>>
> > >>>> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
> > >>>
> > >>>> +		nct1008: nct1008 {
> > >>>> +			compatible = "lm90,nct1008";
> > >>>
> > >>> "lm90" isn't a valid vendor prefix. I believe the value you want is
> > >>> "onnn,nct1008". Same comment for patch 2/2.
> > >>
> > >> The lm90 doesn't support device tree very well.
> > > 
> > > I doubt it, but if this is the case, then please fix it, instead of
> > > working the problem around in a different place.
> > > 
> > >> In the DT, we need to
> > >> named as "lm90" so that the lm90 driver can be loaded,
> > > 
> > > Not that I am an expert with regards to DT, but this doesn't make any
> > > sense to me. AFAIK DT is about devices, not which drivers handle them.
> > > 
> > >> and we also need
> > >> to add "nct1008" to indicate this is the nct1008 device, so that the
> > >> lm90 driver can be loaded with the right i2c_device_id->driver_data.
> > >>
> > >> I set the " compatible = "lm90,nct1008" ", this is the simplest way, and
> > >> we doesn't need to change the lm90.c.
> > > 
> > > There's no problem with changing the lm90 driver, if this is the right
> > > thing to do.
> > 
> > Ok, I will add DT support in the lm90.c in my next version patch.
> > 
> Only if you can show that it is necessary.

It should work out of the box. As a matter of fact the same chip is used
on Tamonten and the DTS files use "onnn,nct1008". That used to work. If
it no longer does then that's a regression.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-09  6:21             ` Thierry Reding
@ 2013-07-09  7:48               ` Wei Ni
  2013-07-09  7:55                 ` Jean Delvare
  0 siblings, 1 reply; 13+ messages in thread
From: Wei Ni @ 2013-07-09  7:48 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Guenter Roeck, Jean Delvare, linux, Stephen Warren, linux-kernel,
	lm-sensors, Matthew Longnecker, Alex Courbot, linux-tegra,
	linux-arm-kernel

On 07/09/2013 02:21 PM, Thierry Reding wrote:
> * PGP Signed by an unknown key
> 
> On Mon, Jul 08, 2013 at 06:14:21AM -0700, Guenter Roeck wrote:
>> On Mon, Jul 08, 2013 at 05:36:05PM +0800, Wei Ni wrote:
>>> On 07/08/2013 03:50 PM, Jean Delvare wrote:
>>>> On Mon, 8 Jul 2013 15:35:48 +0800, Wei Ni wrote:
>>>>> On 07/06/2013 01:38 AM, Stephen Warren wrote:
>>>>>> On 07/04/2013 03:09 AM, Wei Ni wrote:
>>>>>>> Enable thermal sensor lm90 for t30 cardhu.
>>>>>>
>>>>>>> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
>>>>>>
>>>>>>> +		nct1008: nct1008 {
>>>>>>> +			compatible = "lm90,nct1008";
>>>>>>
>>>>>> "lm90" isn't a valid vendor prefix. I believe the value you want is
>>>>>> "onnn,nct1008". Same comment for patch 2/2.
>>>>>
>>>>> The lm90 doesn't support device tree very well.
>>>>
>>>> I doubt it, but if this is the case, then please fix it, instead of
>>>> working the problem around in a different place.
>>>>
>>>>> In the DT, we need to
>>>>> named as "lm90" so that the lm90 driver can be loaded,
>>>>
>>>> Not that I am an expert with regards to DT, but this doesn't make any
>>>> sense to me. AFAIK DT is about devices, not which drivers handle them.
>>>>
>>>>> and we also need
>>>>> to add "nct1008" to indicate this is the nct1008 device, so that the
>>>>> lm90 driver can be loaded with the right i2c_device_id->driver_data.
>>>>>
>>>>> I set the " compatible = "lm90,nct1008" ", this is the simplest way, and
>>>>> we doesn't need to change the lm90.c.
>>>>
>>>> There's no problem with changing the lm90 driver, if this is the right
>>>> thing to do.
>>>
>>> Ok, I will add DT support in the lm90.c in my next version patch.
>>>
>> Only if you can show that it is necessary.
> 
> It should work out of the box. As a matter of fact the same chip is used
> on Tamonten and the DTS files use "onnn,nct1008". That used to work. If
> it no longer does then that's a regression.

I synced the linux-next from:
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
and use the tag v3.10-rc7, but in the lm90.c it doesn't have DT support,
such as "onnn,nct1008".
I googled it and found there has patch:
[PATCH] hwmon: (lm90) Add device tree support , which is in:
http://lists.lm-sensors.org/pipermail/lm-sensors/2013-February/038099.html
, but it didn't be merged into the linux-next.

which git repository and branch should I use ?

Thanks.
Wei.

> 
> Thierry
> 
> * Unknown Key
> * 0x7F3EB3A1
> 


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

* Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-09  7:48               ` Wei Ni
@ 2013-07-09  7:55                 ` Jean Delvare
  2013-07-09  8:58                   ` Wei Ni
  0 siblings, 1 reply; 13+ messages in thread
From: Jean Delvare @ 2013-07-09  7:55 UTC (permalink / raw)
  To: Wei Ni
  Cc: Thierry Reding, Guenter Roeck, linux, Stephen Warren,
	linux-kernel, lm-sensors, Matthew Longnecker, Alex Courbot,
	linux-tegra, linux-arm-kernel

On Tue, 9 Jul 2013 15:48:40 +0800, Wei Ni wrote:
> On 07/09/2013 02:21 PM, Thierry Reding wrote:
> > It should work out of the box. As a matter of fact the same chip is used
> > on Tamonten and the DTS files use "onnn,nct1008". That used to work. If
> > it no longer does then that's a regression.
> 
> I synced the linux-next from:
> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> and use the tag v3.10-rc7, but in the lm90.c it doesn't have DT support,
> such as "onnn,nct1008".
> I googled it and found there has patch:
> [PATCH] hwmon: (lm90) Add device tree support , which is in:
> http://lists.lm-sensors.org/pipermail/lm-sensors/2013-February/038099.html
> , but it didn't be merged into the linux-next.

It was not, because of the next reply in the same thread:
http://lists.lm-sensors.org/pipermail/lm-sensors/2013-February/038100.html

> which git repository and branch should I use ?

It is supposed to just work. What doesn't work for you exactly?

-- 
Jean Delvare

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

* Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
  2013-07-09  7:55                 ` Jean Delvare
@ 2013-07-09  8:58                   ` Wei Ni
  0 siblings, 0 replies; 13+ messages in thread
From: Wei Ni @ 2013-07-09  8:58 UTC (permalink / raw)
  To: Jean Delvare
  Cc: Thierry Reding, Guenter Roeck, linux, Stephen Warren,
	linux-kernel, lm-sensors, Matthew Longnecker, Alex Courbot,
	linux-tegra, linux-arm-kernel

On 07/09/2013 03:55 PM, Jean Delvare wrote:
> On Tue, 9 Jul 2013 15:48:40 +0800, Wei Ni wrote:
>> On 07/09/2013 02:21 PM, Thierry Reding wrote:
>>> It should work out of the box. As a matter of fact the same chip is used
>>> on Tamonten and the DTS files use "onnn,nct1008". That used to work. If
>>> it no longer does then that's a regression.
>>
>> I synced the linux-next from:
>> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>> and use the tag v3.10-rc7, but in the lm90.c it doesn't have DT support,
>> such as "onnn,nct1008".
>> I googled it and found there has patch:
>> [PATCH] hwmon: (lm90) Add device tree support , which is in:
>> http://lists.lm-sensors.org/pipermail/lm-sensors/2013-February/038099.html
>> , but it didn't be merged into the linux-next.
> 
> It was not, because of the next reply in the same thread:
> http://lists.lm-sensors.org/pipermail/lm-sensors/2013-February/038100.html
> 
>> which git repository and branch should I use ?
> 
> It is supposed to just work. What doesn't work for you exactly?
> 

Oh, yes, the "onnn,nct1008" can work. I read the i2c driver and the
of_i2c.c carefully, I understand why the lm90 can be loaded by setting
"onnn,nct1008". Indeed, we can set the vendor string to anything, even
"xxx,nct1008", the lm90 also can be loaded correctly.

Anyway, I will use the "onnn,nct1008" in my next version.

Thanks for your comments.
Wei.




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

end of thread, other threads:[~2013-07-09  8:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-04  9:09 [PATCH 0/2] Enable lm90 in Tegra30 and Tegra114 Wei Ni
2013-07-04  9:09 ` [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90 Wei Ni
2013-07-05 17:38   ` Stephen Warren
2013-07-08  7:35     ` Wei Ni
2013-07-08  7:50       ` [lm-sensors] " Jean Delvare
2013-07-08  9:36         ` Wei Ni
2013-07-08 13:14           ` Guenter Roeck
2013-07-09  6:21             ` Thierry Reding
2013-07-09  7:48               ` Wei Ni
2013-07-09  7:55                 ` Jean Delvare
2013-07-09  8:58                   ` Wei Ni
2013-07-08 13:12       ` Guenter Roeck
2013-07-04  9:09 ` [PATCH 2/2] ARM: dt: t114 dalmore: " Wei Ni

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).