* [PATCH 1/4] powerpc: Document device nodes for I2C devices.
@ 2006-12-07 17:33 Scott Wood
2006-12-07 21:58 ` Kumar Gala
0 siblings, 1 reply; 4+ messages in thread
From: Scott Wood @ 2006-12-07 17:33 UTC (permalink / raw)
To: linuxppc-dev; +Cc: i2c
Document the use of device trees to describe devices on an I2C bus, which
will be used with David Brownell's "new style" I2C binding patches.
Signed-off-by: Scott Wood <scottwood@freescale.com>
---
Documentation/powerpc/booting-without-of.txt | 34 ++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt
index 27b457c..092b8f3 100644
--- a/Documentation/powerpc/booting-without-of.txt
+++ b/Documentation/powerpc/booting-without-of.txt
@@ -1277,6 +1277,8 @@ platforms are moved over to use the flat
e) I2C
+ e1) I2C Controller
+
Required properties :
- device_type : Should be "i2c"
@@ -1297,6 +1299,10 @@ platforms are moved over to use the flat
a digital filter sampling rate register
- fsl5200-clocking : boolean; if defined, indicated that this device
uses the FSL 5200 clocking mechanism.
+ - #address-cells : should exist and be 1 if I2C devices are declared
+ in the device tree.
+ - #size-cells : should exist and be 0 if I2C devices are declared
+ in the device tree.
Example :
@@ -1309,6 +1315,34 @@ platforms are moved over to use the flat
dfsrr;
};
+ e2) I2C Devices
+
+ Required properties :
+
+ - reg : I2C address for the device
+
+ Recommended properties :
+
+ - compatible : The name of the Linux device driver that
+ handles this device. If unspecified, the name of the
+ node will be used.
+ - interrupts : <a b> where a is the interrupt number and b is a
+ field that represents an encoding of the sense and level
+ information for the interrupt. This should be encoded based on
+ the information in section 2) depending on the type of interrupt
+ controller you have.
+ - interrupt-parent : the phandle for the interrupt controller that
+ services interrupts for this device.
+
+ Example :
+
+ rtc@68 {
+ device_type = "rtc";
+ compatible = "ds1374";
+ reg = <68>;
+ interrupts = <13 8>;
+ interrupt-parent = <700>;
+ };
f) Freescale SOC USB controllers
--
1.4.2.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/4] powerpc: Document device nodes for I2C devices.
2006-12-07 17:33 [PATCH 1/4] powerpc: Document device nodes for I2C devices Scott Wood
@ 2006-12-07 21:58 ` Kumar Gala
2006-12-08 17:56 ` Scott Wood
0 siblings, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2006-12-07 21:58 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-dev, i2c
On Dec 7, 2006, at 11:33 AM, Scott Wood wrote:
> Document the use of device trees to describe devices on an I2C bus,
> which
> will be used with David Brownell's "new style" I2C binding patches.
>
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> ---
> Documentation/powerpc/booting-without-of.txt | 34 +++++++++++++++
> +++++++++++
> 1 files changed, 34 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/powerpc/booting-without-of.txt b/
> Documentation/powerpc/booting-without-of.txt
> index 27b457c..092b8f3 100644
> --- a/Documentation/powerpc/booting-without-of.txt
> +++ b/Documentation/powerpc/booting-without-of.txt
> @@ -1277,6 +1277,8 @@ platforms are moved over to use the flat
>
> e) I2C
>
> + e1) I2C Controller
> +
> Required properties :
>
> - device_type : Should be "i2c"
> @@ -1297,6 +1299,10 @@ platforms are moved over to use the flat
> a digital filter sampling rate register
> - fsl5200-clocking : boolean; if defined, indicated that this
> device
> uses the FSL 5200 clocking mechanism.
> + - #address-cells : should exist and be 1 if I2C devices are
> declared
> + in the device tree.
> + - #size-cells : should exist and be 0 if I2C devices are declared
> + in the device tree.
>
> Example :
>
> @@ -1309,6 +1315,34 @@ platforms are moved over to use the flat
> dfsrr;
> };
>
> + e2) I2C Devices
> +
> + Required properties :
> +
> + - reg : I2C address for the device
Is this a 7-bit or 8-bit padded address?
- kumar
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/4] powerpc: Document device nodes for I2C devices.
2006-12-07 21:58 ` Kumar Gala
@ 2006-12-08 17:56 ` Scott Wood
2006-12-08 18:12 ` Kumar Gala
0 siblings, 1 reply; 4+ messages in thread
From: Scott Wood @ 2006-12-08 17:56 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, i2c
Kumar Gala wrote:
> On Dec 7, 2006, at 11:33 AM, Scott Wood wrote:
>> + - reg : I2C address for the device
>
>
> Is this a 7-bit or 8-bit padded address?
It's a 7-bit address.
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/4] powerpc: Document device nodes for I2C devices.
2006-12-08 17:56 ` Scott Wood
@ 2006-12-08 18:12 ` Kumar Gala
0 siblings, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2006-12-08 18:12 UTC (permalink / raw)
To: Scott Wood; +Cc: Linux/PPC Development, i2c
On Dec 8, 2006, at 11:56 AM, Scott Wood wrote:
> Kumar Gala wrote:
>> On Dec 7, 2006, at 11:33 AM, Scott Wood wrote:
>>> + - reg : I2C address for the device
>> Is this a 7-bit or 8-bit padded address?
>
> It's a 7-bit address.
Was chatting with Ben about this and we should try to mimic the
behavior of I2C in the device-tree that exists on Apple HW. He was
going to look at a tree and let us know if they use 7-bit or 8-bit
addresses.
- k
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-08 18:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07 17:33 [PATCH 1/4] powerpc: Document device nodes for I2C devices Scott Wood
2006-12-07 21:58 ` Kumar Gala
2006-12-08 17:56 ` Scott Wood
2006-12-08 18:12 ` Kumar Gala
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).