linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2][POWERPC] document ipic level/sense info
@ 2007-07-09 22:35 Stuart Yoder
  2007-07-09 22:48 ` Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Stuart Yoder @ 2007-07-09 22:35 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev


document level and sense information for the Freescale
IPIC interrupt controller

Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
---
 Documentation/powerpc/booting-without-of.txt |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt
index c169299..7ad9e42 100644
--- a/Documentation/powerpc/booting-without-of.txt
+++ b/Documentation/powerpc/booting-without-of.txt
@@ -50,13 +50,14 @@ Table of Contents
       g) Freescale SOC SEC Security Engines
       h) Board Control and Status (BCSR)
       i) Freescale QUICC Engine module (QE)
-      g) Flash chip nodes
+      j) Flash chip nodes
 
   VII - Specifying interrupt information for devices
     1) interrupts property
     2) interrupt-parent property
     3) OpenPIC Interrupt Controllers
     4) ISA Interrupt Controllers
+    5) IPIC Interrupt Controllers
 
   Appendix A - Sample SOC node for MPC8540
 
@@ -1878,6 +1879,21 @@ encodings listed below:
 	2 =  high to low edge sensitive type enabled
 	3 =  low to high edge sensitive type enabled
 
+5) Freescale IPIC Interrupt Controllers
+---------------------------------------
+
+IPIC interrupt controllers are specific to Freescale 83xx
+SOCs.  Two cells are required to encode interrupt information.
+The first cell defines the interrupt number.  The second cell
+defines the sense and level information.
+
+Sense and level information follows the Linux convention
+(specified in include/linux/interrupt.h) and should be encoded
+as follows:
+
+	2 =  high to low edge sensitive type enabled
+	8 =  active low level sensitive type enabled
+
 
 Appendix A - Sample SOC node for MPC8540
 ========================================
-- 
1.5.0.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2][POWERPC] document ipic level/sense info
  2007-07-09 22:35 [PATCH v2][POWERPC] document ipic level/sense info Stuart Yoder
@ 2007-07-09 22:48 ` Grant Likely
  2007-07-10 13:21   ` Segher Boessenkool
  0 siblings, 1 reply; 7+ messages in thread
From: Grant Likely @ 2007-07-09 22:48 UTC (permalink / raw)
  To: Stuart Yoder; +Cc: linuxppc-dev, paulus

On 7/9/07, Stuart Yoder <b08248@freescale.com> wrote:
>
> document level and sense information for the Freescale
> IPIC interrupt controller
>
> +Sense and level information follows the Linux convention
> +(specified in include/linux/interrupt.h) and should be encoded
> +as follows:
> +
> +       2 =  high to low edge sensitive type enabled
> +       8 =  active low level sensitive type enabled
> +

... but it is probably worthwhile commentting that sense types 1 & 4
are not supported; just to fill in the obvious gaps.  :-)

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2][POWERPC] document ipic level/sense info
  2007-07-09 22:48 ` Grant Likely
@ 2007-07-10 13:21   ` Segher Boessenkool
  2007-07-10 14:36     ` Yoder Stuart-B08248
  2007-07-10 14:40     ` Kumar Gala
  0 siblings, 2 replies; 7+ messages in thread
From: Segher Boessenkool @ 2007-07-10 13:21 UTC (permalink / raw)
  To: Grant Likely; +Cc: Stuart Yoder, paulus, linuxppc-dev

>> +Sense and level information follows the Linux convention
>> +(specified in include/linux/interrupt.h) and should be encoded
>> +as follows:
>> +
>> +       2 =  high to low edge sensitive type enabled
>> +       8 =  active low level sensitive type enabled

> ... but it is probably worthwhile commentting that sense types 1 & 4
> are not supported; just to fill in the obvious gaps.  :-)

Same for sense types 0, 3, 5, 6, ...

Just name the sense types 0 and 1, similar to what all other
OF interrupt controller bindings do.


Segher

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH v2][POWERPC] document ipic level/sense info
  2007-07-10 13:21   ` Segher Boessenkool
@ 2007-07-10 14:36     ` Yoder Stuart-B08248
  2007-07-10 19:34       ` Segher Boessenkool
  2007-07-10 14:40     ` Kumar Gala
  1 sibling, 1 reply; 7+ messages in thread
From: Yoder Stuart-B08248 @ 2007-07-10 14:36 UTC (permalink / raw)
  To: Segher Boessenkool, Grant Likely; +Cc: linuxppc-dev, paulus

=20

> -----Original Message-----
> From: Segher Boessenkool [mailto:segher@kernel.crashing.org]=20
> Sent: Tuesday, July 10, 2007 8:21 AM
> To: Grant Likely
> Cc: Yoder Stuart-B08248; linuxppc-dev@ozlabs.org; paulus@samba.org
> Subject: Re: [PATCH v2][POWERPC] document ipic level/sense info
>=20
> >> +Sense and level information follows the Linux convention
> >> +(specified in include/linux/interrupt.h) and should be encoded
> >> +as follows:
> >> +
> >> +       2 =3D  high to low edge sensitive type enabled
> >> +       8 =3D  active low level sensitive type enabled
>=20
> > ... but it is probably worthwhile commentting that sense types 1 & 4
> > are not supported; just to fill in the obvious gaps.  :-)
>=20
> Same for sense types 0, 3, 5, 6, ...
>=20
> Just name the sense types 0 and 1, similar to what all other
> OF interrupt controller bindings do.

Actually, all I am trying to do with this patch is document the
current state of things.  The 2/8 sense type usage has been that
way for a long time, and I'll defer to the 83xx maintainers
if they see any value in changing it.

Right now there are many DTS files with level/sense set to values
like 8 and no indication anywhere where those values came from.

Stuart

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2][POWERPC] document ipic level/sense info
  2007-07-10 13:21   ` Segher Boessenkool
  2007-07-10 14:36     ` Yoder Stuart-B08248
@ 2007-07-10 14:40     ` Kumar Gala
  2007-07-10 19:37       ` Segher Boessenkool
  1 sibling, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2007-07-10 14:40 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: Stuart Yoder, paulus, linuxppc-dev


On Jul 10, 2007, at 8:21 AM, Segher Boessenkool wrote:

>>> +Sense and level information follows the Linux convention
>>> +(specified in include/linux/interrupt.h) and should be encoded
>>> +as follows:
>>> +
>>> +       2 =  high to low edge sensitive type enabled
>>> +       8 =  active low level sensitive type enabled
>
>> ... but it is probably worthwhile commentting that sense types 1 & 4
>> are not supported; just to fill in the obvious gaps.  :-)
>
> Same for sense types 0, 3, 5, 6, ...
>
> Just name the sense types 0 and 1, similar to what all other
> OF interrupt controller bindings do.

I'm not really keen on changing the values at this point.  I think we  
are stuck with them.

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2][POWERPC] document ipic level/sense info
  2007-07-10 14:36     ` Yoder Stuart-B08248
@ 2007-07-10 19:34       ` Segher Boessenkool
  0 siblings, 0 replies; 7+ messages in thread
From: Segher Boessenkool @ 2007-07-10 19:34 UTC (permalink / raw)
  To: Yoder Stuart-B08248; +Cc: linuxppc-dev, paulus

>>>> +Sense and level information follows the Linux convention
>>>> +(specified in include/linux/interrupt.h) and should be encoded
>>>> +as follows:
>>>> +
>>>> +       2 =  high to low edge sensitive type enabled
>>>> +       8 =  active low level sensitive type enabled
>>
>>> ... but it is probably worthwhile commentting that sense types 1 & 4
>>> are not supported; just to fill in the obvious gaps.  :-)
>>
>> Same for sense types 0, 3, 5, 6, ...
>>
>> Just name the sense types 0 and 1, similar to what all other
>> OF interrupt controller bindings do.
>
> Actually, all I am trying to do with this patch is document the
> current state of things.  The 2/8 sense type usage has been that
> way for a long time, and I'll defer to the 83xx maintainers
> if they see any value in changing it.
>
> Right now there are many DTS files with level/sense set to values
> like 8 and no indication anywhere where those values came from.

Ah right, too bad then.  Just document that only 2 and 8 make
sense on current hardware, in that case.


Segher

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2][POWERPC] document ipic level/sense info
  2007-07-10 14:40     ` Kumar Gala
@ 2007-07-10 19:37       ` Segher Boessenkool
  0 siblings, 0 replies; 7+ messages in thread
From: Segher Boessenkool @ 2007-07-10 19:37 UTC (permalink / raw)
  To: Kumar Gala; +Cc: Stuart Yoder, paulus, linuxppc-dev

>>> ... but it is probably worthwhile commentting that sense types 1 & 4
>>> are not supported; just to fill in the obvious gaps.  :-)
>>
>> Same for sense types 0, 3, 5, 6, ...
>>
>> Just name the sense types 0 and 1, similar to what all other
>> OF interrupt controller bindings do.
>
> I'm not really keen on changing the values at this point.  I think  
> we are stuck with them.

Yeah, unless you create a new binding for the same hardware.
Not that I recommend that of course.  I suppose the lesson
is to document a device binding as soon as possible, not
months after the corresponding code and trees are out (or to
mark all such code/trees clearly as "preliminary").


Segher

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-10 19:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-09 22:35 [PATCH v2][POWERPC] document ipic level/sense info Stuart Yoder
2007-07-09 22:48 ` Grant Likely
2007-07-10 13:21   ` Segher Boessenkool
2007-07-10 14:36     ` Yoder Stuart-B08248
2007-07-10 19:34       ` Segher Boessenkool
2007-07-10 14:40     ` Kumar Gala
2007-07-10 19:37       ` Segher Boessenkool

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).