162306a36Sopenharmony_ci* SPEAr Shared IRQ layer (shirq) 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciSPEAr3xx architecture includes shared/multiplexed irqs for certain set 462306a36Sopenharmony_ciof devices. The multiplexor provides a single interrupt to parent 562306a36Sopenharmony_ciinterrupt controller (VIC) on behalf of a group of devices. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciThere can be multiple groups available on SPEAr3xx variants but not 862306a36Sopenharmony_ciexceeding 4. The number of devices in a group can differ, further they 962306a36Sopenharmony_cimay share same set of status/mask registers spanning across different 1062306a36Sopenharmony_cibit masks. Also in some cases the group may not have enable or other 1162306a36Sopenharmony_ciregisters. This makes software little complex. 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciA single node in the device tree is used to describe the shared 1462306a36Sopenharmony_ciinterrupt multiplexor (one node for all groups). A group in the 1562306a36Sopenharmony_ciinterrupt controller shares config/control registers with other groups. 1662306a36Sopenharmony_ciFor example, a 32-bit interrupt enable/disable config register can 1762306a36Sopenharmony_ciaccommodate up to 4 interrupt groups. 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciRequired properties: 2062306a36Sopenharmony_ci - compatible: should be, either of 2162306a36Sopenharmony_ci - "st,spear300-shirq" 2262306a36Sopenharmony_ci - "st,spear310-shirq" 2362306a36Sopenharmony_ci - "st,spear320-shirq" 2462306a36Sopenharmony_ci - interrupt-controller: Identifies the node as an interrupt controller. 2562306a36Sopenharmony_ci - #interrupt-cells: should be <1> which basically contains the offset 2662306a36Sopenharmony_ci (starting from 0) of interrupts for all the groups. 2762306a36Sopenharmony_ci - reg: Base address and size of shirq registers. 2862306a36Sopenharmony_ci - interrupts: The list of interrupts generated by the groups which are 2962306a36Sopenharmony_ci then connected to a parent interrupt controller. Each group is 3062306a36Sopenharmony_ci associated with one of the interrupts, hence number of interrupts (to 3162306a36Sopenharmony_ci parent) is equal to number of groups. The format of the interrupt 3262306a36Sopenharmony_ci specifier depends in the interrupt parent controller. 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ciExample: 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ciThe following is an example from the SPEAr320 SoC dtsi file. 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_cishirq: interrupt-controller@b3000000 { 3962306a36Sopenharmony_ci compatible = "st,spear320-shirq"; 4062306a36Sopenharmony_ci reg = <0xb3000000 0x1000>; 4162306a36Sopenharmony_ci interrupts = <28 29 30 1>; 4262306a36Sopenharmony_ci #interrupt-cells = <1>; 4362306a36Sopenharmony_ci interrupt-controller; 4462306a36Sopenharmony_ci}; 45