public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@grandegger•com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx•de>
Cc: linuxppc-dev@ozlabs•org,
	linuxppc-embedded <linuxppc-embedded@ozlabs•org>
Subject: Re: FDT bindings for I2C devices
Date: Sun, 21 Oct 2007 14:19:27 +0200	[thread overview]
Message-ID: <471B43CF.4050505@grandegger.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0710192150561.8474@axis700.grange>

Hi Guennadi,

Guennadi Liakhovetski wrote:
> (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.

Ah, nice. I checked a few dts files but obviously missed the one for the 
kuroboxH[GD].

Thanks,

Wolfgang.

  reply	other threads:[~2007-10-21 12:19 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
2007-10-21 12:19     ` Wolfgang Grandegger [this message]
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=471B43CF.4050505@grandegger.com \
    --to=wg@grandegger$(echo .)com \
    --cc=g.liakhovetski@gmx$(echo .)de \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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