Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-29 Thread Segher Boessenkool

No.  The #address-cells is determined by the bus binding,
so that all RapidIO busses on the planet can be represented
in a similar way in the OF device tree.  Take for example
the PCI binding, which gives you three address cells -- one
to distinguish between different address spaces (configuration
space, legacy I/O space, memory mapped space) and to contain
some flags (prefetchable vs. non-prefetchable, etc.); the
other two 32-bit cells contain a 64-bit address, although
config and legacy I/O never are more than 32 bit, and many
PCI devices can't do 64-bit addressing at all.

Now, there is no OF binding for RapidIO yet of course, but
it would be good to start thinking about one while doing
the binding for your specific controller -- it will make
life easier down the line for everyone, including yourself.


How about I add more words here for more clear expression?
Such as "<2> for 34 and 50 bit address, <3> for 66 bit address".


You should more explicitly define the address format, i.e.
what every bit means -- just saying it is 64 or 96 bits isn't
enough.  While you're doing that, think of a way that can
represent _every possible_ RapidIO address, not just the ones
supported by this particular controller.


Segher

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-29 Thread Zhang Wei-r63237
Hi, Segher, 

> DTS sector to the document of booting-without-of.txt file.
> 
> >>> +- #address-cells : Address representation for
> >> "rapidio" devices.
> >>> +  This field represents the number of cells needed 
> to represent
> >>> +  the RapidIO address of the registers.  For
> >> supporting more than
> >>> +  32-bits RapidIO address, this field should be <2>.
> >>> +  See 1) above for more details on defining #address-cells.
> >>
> >> What does the RapidIO standard say about number of address
> >> bits?  You want to follow that, so all RapidIO devices can
> >> use the same #address-cells, not just the FSL ones.  Also,
> >> are there different kinds of address spaces on the bus, or
> >> is it just one big memory-like space?
> >
> > I've checked the specification of RapidIO. The supporting of RapidIO
> > extended address modes are 66, 50 and 34 bit.
> 
> These three are all two bits more than some "regular" size --
> do those two extra bits have some special meaning perhaps,
> like an address space identifier or something?
> 
> > The Freescale's silicons is only support 34 bit address now.
> > Do you mean I should not use words -- 'should be <2>'?
> > The #address-cells should be assigned according the address mode
> > supported by silicon.
> 
> No.  The #address-cells is determined by the bus binding,
> so that all RapidIO busses on the planet can be represented
> in a similar way in the OF device tree.  Take for example
> the PCI binding, which gives you three address cells -- one
> to distinguish between different address spaces (configuration
> space, legacy I/O space, memory mapped space) and to contain
> some flags (prefetchable vs. non-prefetchable, etc.); the
> other two 32-bit cells contain a 64-bit address, although
> config and legacy I/O never are more than 32 bit, and many
> PCI devices can't do 64-bit addressing at all.
> 
> Now, there is no OF binding for RapidIO yet of course, but
> it would be good to start thinking about one while doing
> the binding for your specific controller -- it will make
> life easier down the line for everyone, including yourself.
> 
How about I add more words here for more clear expression?
Such as "<2> for 34 and 50 bit address, <3> for 66 bit address".

Thanks!
Wei.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-29 Thread Segher Boessenkool

+- #address-cells : Address representation for

"rapidio" devices.

+  This field represents the number of cells needed to represent
+  the RapidIO address of the registers.  For

supporting more than

+  32-bits RapidIO address, this field should be <2>.
+  See 1) above for more details on defining #address-cells.


What does the RapidIO standard say about number of address
bits?  You want to follow that, so all RapidIO devices can
use the same #address-cells, not just the FSL ones.  Also,
are there different kinds of address spaces on the bus, or
is it just one big memory-like space?


I've checked the specification of RapidIO. The supporting of RapidIO
extended address modes are 66, 50 and 34 bit.


These three are all two bits more than some "regular" size --
do those two extra bits have some special meaning perhaps,
like an address space identifier or something?


The Freescale's silicons is only support 34 bit address now.
Do you mean I should not use words -- 'should be <2>'?
The #address-cells should be assigned according the address mode
supported by silicon.


No.  The #address-cells is determined by the bus binding,
so that all RapidIO busses on the planet can be represented
in a similar way in the OF device tree.  Take for example
the PCI binding, which gives you three address cells -- one
to distinguish between different address spaces (configuration
space, legacy I/O space, memory mapped space) and to contain
some flags (prefetchable vs. non-prefetchable, etc.); the
other two 32-bit cells contain a 64-bit address, although
config and legacy I/O never are more than 32 bit, and many
PCI devices can't do 64-bit addressing at all.

Now, there is no OF binding for RapidIO yet of course, but
it would be good to start thinking about one while doing
the binding for your specific controller -- it will make
life easier down the line for everyone, including yourself.


Segher

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-29 Thread Zhang Wei-r63237
Hi, Segher, 

 DTS sector to the document of booting-without-of.txt file.
 
  +- #address-cells : Address representation for
  rapidio devices.
  +  This field represents the number of cells needed 
 to represent
  +  the RapidIO address of the registers.  For
  supporting more than
  +  32-bits RapidIO address, this field should be 2.
  +  See 1) above for more details on defining #address-cells.
 
  What does the RapidIO standard say about number of address
  bits?  You want to follow that, so all RapidIO devices can
  use the same #address-cells, not just the FSL ones.  Also,
  are there different kinds of address spaces on the bus, or
  is it just one big memory-like space?
 
  I've checked the specification of RapidIO. The supporting of RapidIO
  extended address modes are 66, 50 and 34 bit.
 
 These three are all two bits more than some regular size --
 do those two extra bits have some special meaning perhaps,
 like an address space identifier or something?
 
  The Freescale's silicons is only support 34 bit address now.
  Do you mean I should not use words -- 'should be 2'?
  The #address-cells should be assigned according the address mode
  supported by silicon.
 
 No.  The #address-cells is determined by the bus binding,
 so that all RapidIO busses on the planet can be represented
 in a similar way in the OF device tree.  Take for example
 the PCI binding, which gives you three address cells -- one
 to distinguish between different address spaces (configuration
 space, legacy I/O space, memory mapped space) and to contain
 some flags (prefetchable vs. non-prefetchable, etc.); the
 other two 32-bit cells contain a 64-bit address, although
 config and legacy I/O never are more than 32 bit, and many
 PCI devices can't do 64-bit addressing at all.
 
 Now, there is no OF binding for RapidIO yet of course, but
 it would be good to start thinking about one while doing
 the binding for your specific controller -- it will make
 life easier down the line for everyone, including yourself.
 
How about I add more words here for more clear expression?
Such as 2 for 34 and 50 bit address, 3 for 66 bit address.

Thanks!
Wei.
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-29 Thread Segher Boessenkool

+- #address-cells : Address representation for

rapidio devices.

+  This field represents the number of cells needed to represent
+  the RapidIO address of the registers.  For

supporting more than

+  32-bits RapidIO address, this field should be 2.
+  See 1) above for more details on defining #address-cells.


What does the RapidIO standard say about number of address
bits?  You want to follow that, so all RapidIO devices can
use the same #address-cells, not just the FSL ones.  Also,
are there different kinds of address spaces on the bus, or
is it just one big memory-like space?


I've checked the specification of RapidIO. The supporting of RapidIO
extended address modes are 66, 50 and 34 bit.


These three are all two bits more than some regular size --
do those two extra bits have some special meaning perhaps,
like an address space identifier or something?


The Freescale's silicons is only support 34 bit address now.
Do you mean I should not use words -- 'should be 2'?
The #address-cells should be assigned according the address mode
supported by silicon.


No.  The #address-cells is determined by the bus binding,
so that all RapidIO busses on the planet can be represented
in a similar way in the OF device tree.  Take for example
the PCI binding, which gives you three address cells -- one
to distinguish between different address spaces (configuration
space, legacy I/O space, memory mapped space) and to contain
some flags (prefetchable vs. non-prefetchable, etc.); the
other two 32-bit cells contain a 64-bit address, although
config and legacy I/O never are more than 32 bit, and many
PCI devices can't do 64-bit addressing at all.

Now, there is no OF binding for RapidIO yet of course, but
it would be good to start thinking about one while doing
the binding for your specific controller -- it will make
life easier down the line for everyone, including yourself.


Segher

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-29 Thread Segher Boessenkool

No.  The #address-cells is determined by the bus binding,
so that all RapidIO busses on the planet can be represented
in a similar way in the OF device tree.  Take for example
the PCI binding, which gives you three address cells -- one
to distinguish between different address spaces (configuration
space, legacy I/O space, memory mapped space) and to contain
some flags (prefetchable vs. non-prefetchable, etc.); the
other two 32-bit cells contain a 64-bit address, although
config and legacy I/O never are more than 32 bit, and many
PCI devices can't do 64-bit addressing at all.

Now, there is no OF binding for RapidIO yet of course, but
it would be good to start thinking about one while doing
the binding for your specific controller -- it will make
life easier down the line for everyone, including yourself.


How about I add more words here for more clear expression?
Such as 2 for 34 and 50 bit address, 3 for 66 bit address.


You should more explicitly define the address format, i.e.
what every bit means -- just saying it is 64 or 96 bits isn't
enough.  While you're doing that, think of a way that can
represent _every possible_ RapidIO address, not just the ones
supported by this particular controller.


Segher

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-28 Thread Zhang Wei-r63237
Hi, Segher, 
 
> > +- #address-cells : Address representation for 
> "rapidio" devices.
> > +  This field represents the number of cells needed to represent
> > +  the RapidIO address of the registers.  For 
> supporting more than
> > +  32-bits RapidIO address, this field should be <2>.
> > +  See 1) above for more details on defining #address-cells.
> 
> What does the RapidIO standard say about number of address
> bits?  You want to follow that, so all RapidIO devices can
> use the same #address-cells, not just the FSL ones.  Also,
> are there different kinds of address spaces on the bus, or
> is it just one big memory-like space?
> 
> 

I've checked the specification of RapidIO. The supporting of RapidIO
extended address modes are 66, 50 and 34 bit.
The Freescale's silicons is only support 34 bit address now.
Do you mean I should not use words -- 'should be <2>'?
The #address-cells should be assigned according the address mode
supported by silicon.

Thanks!
Wei.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-28 Thread Segher Boessenkool

+- #address-cells : Address representation for "rapidio" devices.
+  This field represents the number of cells needed to represent
+  the RapidIO address of the registers.  For supporting more than
+  32-bits RapidIO address, this field should be <2>.
+  See 1) above for more details on defining #address-cells.


What does the RapidIO standard say about number of address
bits?  You want to follow that, so all RapidIO devices can
use the same #address-cells, not just the FSL ones.  Also,
are there different kinds of address spaces on the bus, or
is it just one big memory-like space?


Segher

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-28 Thread Segher Boessenkool

+   k) RapidIO
+
+   Required properties:


Should probably recommend a name for the node here, as well.  "srio" I
guess, from the example below.


I would prefer "rapidio", being more generic and more
readable.  What would parallel RapidIO be, "prio"?  No
thanks :-)


Segher

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-28 Thread Segher Boessenkool

+- #address-cells : Address representation for rapidio devices.
+  This field represents the number of cells needed to represent
+  the RapidIO address of the registers.  For supporting more than
+  32-bits RapidIO address, this field should be 2.
+  See 1) above for more details on defining #address-cells.


What does the RapidIO standard say about number of address
bits?  You want to follow that, so all RapidIO devices can
use the same #address-cells, not just the FSL ones.  Also,
are there different kinds of address spaces on the bus, or
is it just one big memory-like space?


Segher

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-28 Thread Segher Boessenkool

+   k) RapidIO
+
+   Required properties:


Should probably recommend a name for the node here, as well.  srio I
guess, from the example below.


I would prefer rapidio, being more generic and more
readable.  What would parallel RapidIO be, prio?  No
thanks :-)


Segher

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-28 Thread Zhang Wei-r63237
Hi, Segher, 
 
  +- #address-cells : Address representation for 
 rapidio devices.
  +  This field represents the number of cells needed to represent
  +  the RapidIO address of the registers.  For 
 supporting more than
  +  32-bits RapidIO address, this field should be 2.
  +  See 1) above for more details on defining #address-cells.
 
 What does the RapidIO standard say about number of address
 bits?  You want to follow that, so all RapidIO devices can
 use the same #address-cells, not just the FSL ones.  Also,
 are there different kinds of address spaces on the bus, or
 is it just one big memory-like space?
 
 

I've checked the specification of RapidIO. The supporting of RapidIO
extended address modes are 66, 50 and 34 bit.
The Freescale's silicons is only support 34 bit address now.
Do you mean I should not use words -- 'should be 2'?
The #address-cells should be assigned according the address mode
supported by silicon.

Thanks!
Wei.
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-27 Thread David Gibson
On Wed, Jun 27, 2007 at 04:35:44PM +0800, Zhang Wei wrote:
> Add the explanation and a sample of RapidIO DTS sector to the document of 
> booting-without-of.txt file.
> 
> Signed-off-by: Zhang Wei <[EMAIL PROTECTED]>
> ---
>  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 b49ce16..98692ca 100644
> --- a/Documentation/powerpc/booting-without-of.txt
> +++ b/Documentation/powerpc/booting-without-of.txt
> @@ -1727,6 +1727,40 @@ platforms are moved over to use the 
> flattened-device-tree model.
>   partition-names = "fs\0firmware";
>   };
>  
> +   k) RapidIO
> +
> +   Required properties:
> +

Should probably recommend a name for the node here, as well.  "srio" I
guess, from the example below.

> +- compatible : Should be "fsl,rapidio-delta" for Freescale
> +  PowerPC RapidIO controller.
> +- #address-cells : Address representation for "rapidio" devices.
> +  This field represents the number of cells needed to represent
> +  the RapidIO address of the registers.  For supporting more than
> +  32-bits RapidIO address, this field should be <2>.
> +  See 1) above for more details on defining #address-cells.
> +- reg : Offset and length of the register set for the device
> +- ranges : Should be defined as specified in 1) to describe the
> +  translation of addresses for memory mapped RapidIO memory
> +  space.
> +- interrupts : binding interrupts for this device sector,
> +  please follow below orders:
> +   +  msg2_tx_irq msg2_rx_irq ... msgN_tx_irq msgN_rx_irq>.
> +
> +  Example:
> +
> + [EMAIL PROTECTED]
> + compatible = "fsl,rapidio-delta";
> + #address-cells = <2>;
> + #size-cells = <2>;
> + reg = ;
> + ranges = <0 0 c000 2000>;
> + interrupt-parent = <>;
> + /* err_irq bell_outb_irq bell_inb_irq msg1_tx_irq msg1_rx_irq
> +   msg2_tx_irq msg2_rx_irq */
> + interrupts = <30 2 31 2 32 2 35 2 36 2 37 2 38 2>;
> + };
> +
> More devices will be defined as this spec matures.
>  
>  VII - Specifying interrupt information for devices

-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-27 Thread Zhang Wei
Add the explanation and a sample of RapidIO DTS sector to the document of 
booting-without-of.txt file.

Signed-off-by: Zhang Wei <[EMAIL PROTECTED]>
---
 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 b49ce16..98692ca 100644
--- a/Documentation/powerpc/booting-without-of.txt
+++ b/Documentation/powerpc/booting-without-of.txt
@@ -1727,6 +1727,40 @@ platforms are moved over to use the 
flattened-device-tree model.
partition-names = "fs\0firmware";
};
 
+   k) RapidIO
+
+   Required properties:
+
+- compatible : Should be "fsl,rapidio-delta" for Freescale
+  PowerPC RapidIO controller.
+- #address-cells : Address representation for "rapidio" devices.
+  This field represents the number of cells needed to represent
+  the RapidIO address of the registers.  For supporting more than
+  32-bits RapidIO address, this field should be <2>.
+  See 1) above for more details on defining #address-cells.
+- reg : Offset and length of the register set for the device
+- ranges : Should be defined as specified in 1) to describe the
+  translation of addresses for memory mapped RapidIO memory
+  space.
+- interrupts : binding interrupts for this device sector,
+  please follow below orders:
+  .
+
+  Example:
+
+   [EMAIL PROTECTED]
+   compatible = "fsl,rapidio-delta";
+   #address-cells = <2>;
+   #size-cells = <2>;
+   reg = ;
+   ranges = <0 0 c000 2000>;
+   interrupt-parent = <>;
+   /* err_irq bell_outb_irq bell_inb_irq msg1_tx_irq msg1_rx_irq
+ msg2_tx_irq msg2_rx_irq */
+   interrupts = <30 2 31 2 32 2 35 2 36 2 37 2 38 2>;
+   };
+
More devices will be defined as this spec matures.
 
 VII - Specifying interrupt information for devices
-- 
1.5.1

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-27 Thread Zhang Wei
Add the explanation and a sample of RapidIO DTS sector to the document of 
booting-without-of.txt file.

Signed-off-by: Zhang Wei [EMAIL PROTECTED]
---
 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 b49ce16..98692ca 100644
--- a/Documentation/powerpc/booting-without-of.txt
+++ b/Documentation/powerpc/booting-without-of.txt
@@ -1727,6 +1727,40 @@ platforms are moved over to use the 
flattened-device-tree model.
partition-names = fs\0firmware;
};
 
+   k) RapidIO
+
+   Required properties:
+
+- compatible : Should be fsl,rapidio-delta for Freescale
+  PowerPC RapidIO controller.
+- #address-cells : Address representation for rapidio devices.
+  This field represents the number of cells needed to represent
+  the RapidIO address of the registers.  For supporting more than
+  32-bits RapidIO address, this field should be 2.
+  See 1) above for more details on defining #address-cells.
+- reg : Offset and length of the register set for the device
+- ranges : Should be defined as specified in 1) to describe the
+  translation of addresses for memory mapped RapidIO memory
+  space.
+- interrupts : binding interrupts for this device sector,
+  please follow below orders:
+  err_irq bell_outb_irq bell_inb_irq msg1_tx_irq msg1_rx_irq
+  msg2_tx_irq msg2_rx_irq ... msgN_tx_irq msgN_rx_irq.
+
+  Example:
+
+   [EMAIL PROTECTED]
+   compatible = fsl,rapidio-delta;
+   #address-cells = 2;
+   #size-cells = 2;
+   reg = c 2;
+   ranges = 0 0 c000 2000;
+   interrupt-parent = mpic;
+   /* err_irq bell_outb_irq bell_inb_irq msg1_tx_irq msg1_rx_irq
+ msg2_tx_irq msg2_rx_irq */
+   interrupts = 30 2 31 2 32 2 35 2 36 2 37 2 38 2;
+   };
+
More devices will be defined as this spec matures.
 
 VII - Specifying interrupt information for devices
-- 
1.5.1

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.

2007-06-27 Thread David Gibson
On Wed, Jun 27, 2007 at 04:35:44PM +0800, Zhang Wei wrote:
 Add the explanation and a sample of RapidIO DTS sector to the document of 
 booting-without-of.txt file.
 
 Signed-off-by: Zhang Wei [EMAIL PROTECTED]
 ---
  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 b49ce16..98692ca 100644
 --- a/Documentation/powerpc/booting-without-of.txt
 +++ b/Documentation/powerpc/booting-without-of.txt
 @@ -1727,6 +1727,40 @@ platforms are moved over to use the 
 flattened-device-tree model.
   partition-names = fs\0firmware;
   };
  
 +   k) RapidIO
 +
 +   Required properties:
 +

Should probably recommend a name for the node here, as well.  srio I
guess, from the example below.

 +- compatible : Should be fsl,rapidio-delta for Freescale
 +  PowerPC RapidIO controller.
 +- #address-cells : Address representation for rapidio devices.
 +  This field represents the number of cells needed to represent
 +  the RapidIO address of the registers.  For supporting more than
 +  32-bits RapidIO address, this field should be 2.
 +  See 1) above for more details on defining #address-cells.
 +- reg : Offset and length of the register set for the device
 +- ranges : Should be defined as specified in 1) to describe the
 +  translation of addresses for memory mapped RapidIO memory
 +  space.
 +- interrupts : binding interrupts for this device sector,
 +  please follow below orders:
 +  err_irq bell_outb_irq bell_inb_irq msg1_tx_irq msg1_rx_irq
 +  msg2_tx_irq msg2_rx_irq ... msgN_tx_irq msgN_rx_irq.
 +
 +  Example:
 +
 + [EMAIL PROTECTED]
 + compatible = fsl,rapidio-delta;
 + #address-cells = 2;
 + #size-cells = 2;
 + reg = c 2;
 + ranges = 0 0 c000 2000;
 + interrupt-parent = mpic;
 + /* err_irq bell_outb_irq bell_inb_irq msg1_tx_irq msg1_rx_irq
 +   msg2_tx_irq msg2_rx_irq */
 + interrupts = 30 2 31 2 32 2 35 2 36 2 37 2 38 2;
 + };
 +
 More devices will be defined as this spec matures.
  
  VII - Specifying interrupt information for devices

-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/