From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [RFC] adding hwmon support to sequoia device tree
Date: Thu, 4 Sep 2008 16:28:29 +0200 [thread overview]
Message-ID: <200809041628.29460.matthias.fuchs@esd-electronics.com> (raw)
In-Reply-To: <20080904122507.GB12867@yoda.jdub.homelinux.org>
Hi,=20
On Thursday 04 September 2008 14:25, Josh Boyer wrote:
> On Thu, Sep 04, 2008 at 11:55:02AM +0200, Matthias Fuchs wrote:
> >Hi,
> >
> >I added support for the Sequoia on-board I2C temperature sensor to the d=
evice.
> >I am not sure if there is any node naming convention for such devices.
> >The needed I2C driver can be found under drivers/hwmon in the kernel sou=
rces,
> >so I found "hwmon" suitable for the node.
> >
> >Do we want to add this to the sequoia dts file? If this is how it should=
be done,
> >I will commit a proper patch.
>=20
> See comments below. Out of curiosity, do you have a working driver and
> setup with this?
Of course.=20
You need
CONFIG_HWMON=3Dy
CONFIG_SENSORS_AD7414=3Dy
Via sysfs you get:
sequoia:~# cat /sys/bus/i2c/devices/0-0048/temp1_input
34750
sequoia:~# cat /sys/class/hwmon/hwmon0/device/temp1_input
34750
sequoia:~#=20
34750 =3D 34.75=B0C
>=20
> >diff --git a/arch/powerpc/boot/dts/sequoia.dts b/arch/powerpc/boot/dts/s=
equoia.dts
> >index 72d15f0..82fdfdf 100644
> >--- a/arch/powerpc/boot/dts/sequoia.dts
> >+++ b/arch/powerpc/boot/dts/sequoia.dts
> >@@ -246,13 +246,23 @@
> > };
> >
> > IIC0: i2c@ef600700 {
> >+ #address-cells =3D <1>;
> >+ #size-cells =3D <0>;
> > compatible =3D "ibm,iic-440epx", "ibm,ii=
c";
> > reg =3D <0xef600700 0x00000014>;
> > interrupt-parent =3D <&UIC0>;
> > interrupts =3D <0x2 0x4>;
> >+
> >+ hwmon@48 {
> >+ device_type =3D "hwmon";
>=20
> We don't need device_type. Particularly not a new one like this.
I will remove that.
>=20
> >+ compatible =3D "analog,ad7414";
>=20
> Perhaps 'compatible =3D "analog,ad7417", "amcc,hwmon-440epx";'
It has nothing to do with either AMCC or 440EPx.
Patch is on the way.
Matthias
next prev parent reply other threads:[~2008-09-04 14:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-04 9:55 [RFC] adding hwmon support to sequoia device tree Matthias Fuchs
2008-09-04 12:25 ` Josh Boyer
2008-09-04 12:50 ` Stefan Roese
2008-09-04 14:28 ` Matthias Fuchs [this message]
2008-09-04 14:41 ` [PATCH] powerpc/44x: Add hwmon support to Sequoia " Matthias Fuchs
2008-09-05 10:19 ` Stefan Roese
2008-09-05 14:58 ` Matthias Fuchs
2008-09-05 16:00 ` Scott Wood
2008-09-06 0:17 ` Sean MacLennan
2008-09-06 12:07 ` Josh Boyer
2008-09-08 7:57 ` [PATCH V2] " Matthias Fuchs
2008-09-06 12:40 ` [PATCH] " Matthias Fuchs
2008-09-06 11:49 ` Sean MacLennan
2008-09-06 15:07 ` Wolfgang Grandegger
2008-09-08 16:03 ` Scott Wood
2008-09-09 11:52 ` Matthias Fuchs
2008-09-09 12:15 ` Josh Boyer
2008-09-05 14:27 ` [RFC] adding hwmon support to sequoia " Sean MacLennan
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=200809041628.29460.matthias.fuchs@esd-electronics.com \
--to=matthias.fuchs@esd-electronics.com \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).