From: Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
Cc: Alex Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
"linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org"
<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Matthew Longnecker
<MLongnecker-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
"lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org"
<lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 1/2] ARM: dt: t30 cardhu: add dt entry for lm90
Date: Mon, 8 Jul 2013 15:35:48 +0800 [thread overview]
Message-ID: <51DA6BD4.1040300@nvidia.com> (raw)
In-Reply-To: <51D70483.70203-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
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.
next prev parent reply other threads:[~2013-07-08 7:35 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
[not found] ` <1372928979-26938-2-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-07-05 17:38 ` Stephen Warren
[not found] ` <51D70483.70203-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-07-08 7:35 ` Wei Ni [this message]
[not found] ` <51DA6BD4.1040300-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-07-08 7:50 ` [lm-sensors] " Jean Delvare
[not found] ` <20130708095024.041a6d57-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2013-07-08 9:36 ` Wei Ni
[not found] ` <51DA8805.50709-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-07-08 13:14 ` Guenter Roeck
[not found] ` <20130708131421.GB21638-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2013-07-09 6:21 ` Thierry Reding
2013-07-09 7:48 ` Wei Ni
[not found] ` <51DBC058.2040904-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-07-09 7:55 ` Jean Delvare
[not found] ` <20130709095525.5158a0a5-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2013-07-09 8:58 ` Wei Ni
2013-07-08 13:12 ` Guenter Roeck
[not found] ` <1372928979-26938-1-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
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=51DA6BD4.1040300@nvidia.com \
--to=wni-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=MLongnecker-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox