linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@ozlabs.org, i2c@lm-sensors.org
Subject: Re: [PATCH 3/5] powerpc: Document device nodes for I2C devices.
Date: Thu, 17 May 2007 21:44:23 +0200	[thread overview]
Message-ID: <1e7cedebed6b67737c68fa01d832c3f3@kernel.crashing.org> (raw)
In-Reply-To: <464CADBB.9050500@freescale.com>

>>> +    - reg : Unshifted 7-bit I2C address for the device
>> What about 10-bit addressing, etc.?
>
> I specified 7-bit to address someone's question back when this first 
> came up of whether it was 7-bit unshifted or 8-bit shifted.  Perhaps 
> it should just say "Unshifted I2C address for the device"?

Better, yes.

>>> +    - compatible : The name of the Linux device driver that
>>> +      handles this device.  If unspecified, the name of the
>>> +      node will be used.
>> NO WAY
>
> Sorry, that was left in there from a while ago and I missed it.  It 
> should be defined the same way as any other compatible property (and 
> the i2c code in Linux should be fixed to allow drivers to specify 
> multiple match names).  No need for shouting. :-)

Oh yes there is :-)

>>> +    - interrupts : <a b> where a is the interrupt number and b is a
>> I2C doesn't do interrupts,
>
> ...but some I2C devices do.

So?  They do that outside of the I2C domain.

>> this doesn't belong in an I2C binding; it's redundant anyway
>
> I guess it's implicit that any device that generates interrupts will 
> have an interrupts property,

This is defined in the base spec as well as in the interrupt
mapping spec, yes.  The exact format of the "interrupts"
property for a device is defined in the binding for the
interrupt domain that interrupt lives in.

> though there are many other examples of this sort of redundancy in 
> booting-without-of.txt.  Its inclusion was mainly an example.
>
> > (and incorrect as well).
>
> How is it incorrect?

You specified that an interrupt specifier consists of two
cells.  This is wrong.


Segher

  reply	other threads:[~2007-05-17 19:45 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-17 14:38 [PATCH 3/5] powerpc: Document device nodes for I2C devices Scott Wood
2007-05-17 16:12 ` Kumar Gala
2007-05-17 16:17   ` Scott Wood
2007-05-17 16:39     ` Kumar Gala
2007-05-17 16:47       ` Scott Wood
2007-05-17 17:21         ` Kumar Gala
2007-05-17 18:29           ` Scott Wood
2007-05-18 15:15           ` [i2c] " Jean Delvare
2007-05-18 16:24             ` Kumar Gala
2007-05-18 16:35               ` Scott Wood
2007-05-18 17:10                 ` Kumar Gala
2007-05-18 17:17                   ` Scott Wood
2007-05-18 17:33                     ` Kumar Gala
2007-05-18 17:55                       ` Scott Wood
2007-05-20 11:53                         ` Jean Delvare
2007-05-21 14:57                           ` Scott Wood
2007-05-19  0:04                   ` Matt Sealey
2007-05-19  0:17                     ` Segher Boessenkool
2007-05-19 13:41                       ` Matt Sealey
2007-05-19 16:25                         ` Segher Boessenkool
2007-05-20 14:53                           ` Matt Sealey
2007-05-20 15:48                             ` Segher Boessenkool
2007-05-27  9:48                               ` Matt Sealey
2007-05-20 11:42                   ` Jean Delvare
2007-05-18 20:07             ` Segher Boessenkool
2007-05-17 19:18 ` Segher Boessenkool
2007-05-17 19:32   ` Scott Wood
2007-05-17 19:44     ` Segher Boessenkool [this message]
2007-05-17 21:15       ` Scott Wood
2007-05-18 15:27     ` [i2c] " Jean Delvare
2007-05-18 15:58       ` Scott Wood
2007-05-18 16:29         ` Kumar Gala
2007-05-18 16:31         ` Jean Delvare
2007-05-18 16:56           ` Kumar Gala
2007-05-18 19:00           ` David Brownell
2007-05-18 15:19   ` Jean Delvare

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=1e7cedebed6b67737c68fa01d832c3f3@kernel.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=i2c@lm-sensors.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=scottwood@freescale.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;
as well as URLs for NNTP newsgroup(s).