From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: linuxppc-dev@ozlabs.org,
linuxppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: Re: FDT bindings for I2C devices
Date: Fri, 19 Oct 2007 21:56:25 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0710192150561.8474@axis700.grange> (raw)
In-Reply-To: <fa686aa40710190738q1211a266lced10ac8767e5071@mail.gmail.com>
(it was suggested to deprecate -embedded in favour of -dev, so, added to
cc:)
On Fri, 19 Oct 2007, Grant Likely wrote:
> On 10/19/07, Wolfgang Grandegger <wg@grandegger.com> wrote:
> > Hello,
> >
> > is it forseen to define and configure devices like RTC, temperature
> > sensors or EEPROM on the I2C bus with the Flat Device Tree? If yes, how
> > would the DTS entries look like?
>
> booting-without-of.txt has some information about describing the controller.
>
> Scott Wood made an attempt at defining a device binding for I2C
> devices, but it has not been merged into booting-without-of.txt yet.
> I've copied what he wrote below. I would add to his definition the
> following:
> - If compatible is missing, driver should *not* fall back to the device name.
> - 'compatible' list should include the exact device in the form "<mfg>,<part>"
There are also already working examples in powerpc: look at
arch/powerpc/sysdev/fsl_soc.c at the i2c_devices[] array and how it is
used below. There are also some .dts examples upstream already, e.g.,
arch/powerpc/boot/dts/kuroboxH[GD].dts. There also have been more patches
recently to add further devices to the table and further .dts entries.
Notice however, it would be good to move the generic code out of
fsl_soc.c, as there seems to be increasing interest in describing i2c
buses in .dts.
Thanks
Guennadi
---
Guennadi Liakhovetski
next prev parent reply other threads:[~2007-10-19 19:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 14:12 FDT bindings for I2C devices Wolfgang Grandegger
2007-10-19 14:38 ` Grant Likely
2007-10-19 19:56 ` Guennadi Liakhovetski [this message]
2007-10-21 12:19 ` Wolfgang Grandegger
2007-10-23 18:30 ` Scott Wood
2007-10-23 18:50 ` Grant Likely
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=Pine.LNX.4.64.0710192150561.8474@axis700.grange \
--to=g.liakhovetski@gmx.de \
--cc=grant.likely@secretlab.ca \
--cc=linuxppc-dev@ozlabs.org \
--cc=linuxppc-embedded@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