How to set IRQ_1 to reset button for P1010E in dts????

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set IRQ_1 to reset button for P1010E in dts????

718 Views
soilfish
Contributor I

    How to set IRQ_1 to reset button for P1010E in dts file in SDK???   any one can help???? or some infomation!!!

Labels (1)
0 Kudos
4 Replies

561 Views
lunminliang
NXP Employee
NXP Employee

Hello li jie,

To add IRQ in dts file, you may try something like:

irq@50000 {

     compatible = "irq";

     reg = <0x50000 0x160>;

     interrupts = <interrupt-number level-sense interrupt-type type-specific>;

};

The four cell description is in /Documentation\devicetree\bindings\powerpc\fsl\mpic.txt as:

<1st-cell>   interrupt-number

                Identifies the interrupt source.  The meaning

                depends on the type of interrupt.

                Note: If the interrupt-type cell is undefined

                (i.e. #interrupt-cells = 2), this cell

                should be interpreted the same as for

                interrupt-type 0-- i.e. an external or

                normal SoC device interrupt.

   <2nd-cell>   level-sense information, encoded as follows:

                    0 = low-to-high edge triggered

                    1 = active low level-sensitive

                    2 = active high level-sensitive

                    3 = high-to-low edge triggered

   <3rd-cell>   interrupt-type

                The following types are supported:

                  0 = external or normal SoC device interrupt

                      The interrupt-number cell contains

                      the SoC device interrupt number.  The

                      type-specific cell is undefined.  The

                      interrupt-number is derived from the

                      MPIC a block of registers referred to as

                      the "Interrupt Source Configuration Registers".

                      Each source has 32-bytes of registers

                      (vector/priority and destination) in this

                      region.   So interrupt 0 is at offset 0x0,

                      interrupt 1 is at offset 0x20, and so on.

                  1 = error interrupt

                      The interrupt-number cell contains

                      the SoC device interrupt number for

                      the error interrupt.  The type-specific

                      cell identifies the specific error

                      interrupt number.

                  2 = MPIC inter-processor interrupt (IPI)

                      The interrupt-number cell identifies

                      the MPIC IPI number.  The type-specific

                      cell is undefined.

                  3 = MPIC timer interrupt

                      The interrupt-number cell identifies

                      the MPIC timer number.  The type-specific

                      cell is undefined.

   <4th-cell>   type-specific information

                The type-specific cell is encoded as follows:

                 - For interrupt-type 1 (error interrupt),

                   the type-specific cell contains the

                   bit number of the error interrupt in the

                   Error Interrupt Summary Register.

But from your other thread, you specify the IRQ is connected to reset button. I am puzzled here about your logic, is this hard reset signal? This signal is also used to trigger external interrupt? Can you please be more specific on this?

P1010E connected to AR8035 and IRQ1 to reset help!!!!!

Have a great day,

Lunmin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

561 Views
lunminliang
NXP Employee
NXP Employee

Hello li jie,

Is this custom board or NXP demo board?

Regards

Lunmin

0 Kudos

561 Views
alexander_yakov
NXP Employee
NXP Employee

Hello Lunmin

Please look:

P1010E connected to AR8035 and IRQ1 to reset help!!!!!

"reset button is connected to IRQ1"

0 Kudos

561 Views
lunminliang
NXP Employee
NXP Employee

Thanks alexander for the information.

0 Kudos