From: Guenter Roeck <linux@roeck-us.net>
To: Wei Ni <wni@nvidia.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>,
"linux@arm.linux.org.uk" <linux@arm.linux.org.uk>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>,
Matthew Longnecker <MLongnecker@nvidia.com>,
Alex Courbot <acourbot@nvidia.com>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [lm-sensors] [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
Date: Mon, 8 Jul 2013 06:12:47 -0700 [thread overview]
Message-ID: <20130708131247.GA21638@roeck-us.net> (raw)
In-Reply-To: <51DA6BD4.1040300@nvidia.com>
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
next prev parent reply other threads:[~2013-07-08 13:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2013-07-04 9:09 ` [PATCH 2/2] ARM: dt: t114 dalmore: " 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=20130708131247.GA21638@roeck-us.net \
--to=linux@roeck-us.net \
--cc=MLongnecker@nvidia.com \
--cc=acourbot@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=lm-sensors@lm-sensors.org \
--cc=swarren@wwwdotorg.org \
--cc=wni@nvidia.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