1*4882a593SmuzhiyunMarvell ICU Interrupt Controller 2*4882a593Smuzhiyun-------------------------------- 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunThe Marvell ICU (Interrupt Consolidation Unit) controller is 5*4882a593Smuzhiyunresponsible for collecting all wired-interrupt sources in the CP and 6*4882a593Smuzhiyuncommunicating them to the GIC in the AP, the unit translates interrupt 7*4882a593Smuzhiyunrequests on input wires to MSG memory mapped transactions to the GIC. 8*4882a593SmuzhiyunThese messages will access a different GIC memory area depending on 9*4882a593Smuzhiyuntheir type (NSR, SR, SEI, REI, etc). 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunRequired properties: 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun- compatible: Should be "marvell,cp110-icu" 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun- reg: Should contain ICU registers location and length. 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunSubnodes: Each group of interrupt is declared as a subnode of the ICU, 18*4882a593Smuzhiyunwith their own compatible. 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunRequired properties for the icu_nsr/icu_sei subnodes: 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun- compatible: Should be one of: 23*4882a593Smuzhiyun * "marvell,cp110-icu-nsr" 24*4882a593Smuzhiyun * "marvell,cp110-icu-sr" 25*4882a593Smuzhiyun * "marvell,cp110-icu-sei" 26*4882a593Smuzhiyun * "marvell,cp110-icu-rei" 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun- #interrupt-cells: Specifies the number of cells needed to encode an 29*4882a593Smuzhiyun interrupt source. The value shall be 2. 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun The 1st cell is the index of the interrupt in the ICU unit. 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun The 2nd cell is the type of the interrupt. See arm,gic.txt for 34*4882a593Smuzhiyun details. 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun- interrupt-controller: Identifies the node as an interrupt 37*4882a593Smuzhiyun controller. 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun- msi-parent: Should point to the GICP controller, the GIC extension 40*4882a593Smuzhiyun that allows to trigger interrupts using MSG memory mapped 41*4882a593Smuzhiyun transactions. 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunNote: each 'interrupts' property referring to any 'icu_xxx' node shall 44*4882a593Smuzhiyun have a different number within [0:206]. 45*4882a593Smuzhiyun 46*4882a593SmuzhiyunExample: 47*4882a593Smuzhiyun 48*4882a593Smuzhiyunicu: interrupt-controller@1e0000 { 49*4882a593Smuzhiyun compatible = "marvell,cp110-icu"; 50*4882a593Smuzhiyun reg = <0x1e0000 0x440>; 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun CP110_LABEL(icu_nsr): interrupt-controller@10 { 53*4882a593Smuzhiyun compatible = "marvell,cp110-icu-nsr"; 54*4882a593Smuzhiyun reg = <0x10 0x20>; 55*4882a593Smuzhiyun #interrupt-cells = <2>; 56*4882a593Smuzhiyun interrupt-controller; 57*4882a593Smuzhiyun msi-parent = <&gicp>; 58*4882a593Smuzhiyun }; 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun CP110_LABEL(icu_sei): interrupt-controller@50 { 61*4882a593Smuzhiyun compatible = "marvell,cp110-icu-sei"; 62*4882a593Smuzhiyun reg = <0x50 0x10>; 63*4882a593Smuzhiyun #interrupt-cells = <2>; 64*4882a593Smuzhiyun interrupt-controller; 65*4882a593Smuzhiyun msi-parent = <&sei>; 66*4882a593Smuzhiyun }; 67*4882a593Smuzhiyun}; 68*4882a593Smuzhiyun 69*4882a593Smuzhiyunnode1 { 70*4882a593Smuzhiyun interrupt-parent = <&icu_nsr>; 71*4882a593Smuzhiyun interrupts = <106 IRQ_TYPE_LEVEL_HIGH>; 72*4882a593Smuzhiyun}; 73*4882a593Smuzhiyun 74*4882a593Smuzhiyunnode2 { 75*4882a593Smuzhiyun interrupt-parent = <&icu_sei>; 76*4882a593Smuzhiyun interrupts = <107 IRQ_TYPE_LEVEL_HIGH>; 77*4882a593Smuzhiyun}; 78*4882a593Smuzhiyun 79*4882a593Smuzhiyun/* Would not work with the above nodes */ 80*4882a593Smuzhiyunnode3 { 81*4882a593Smuzhiyun interrupt-parent = <&icu_nsr>; 82*4882a593Smuzhiyun interrupts = <107 IRQ_TYPE_LEVEL_HIGH>; 83*4882a593Smuzhiyun}; 84*4882a593Smuzhiyun 85*4882a593SmuzhiyunThe legacy bindings were different in this way: 86*4882a593Smuzhiyun 87*4882a593Smuzhiyun- #interrupt-cells: The value was 3. 88*4882a593Smuzhiyun The 1st cell was the group type of the ICU interrupt. Possible 89*4882a593Smuzhiyun group types were: 90*4882a593Smuzhiyun ICU_GRP_NSR (0x0) : Shared peripheral interrupt, non-secure 91*4882a593Smuzhiyun ICU_GRP_SR (0x1) : Shared peripheral interrupt, secure 92*4882a593Smuzhiyun ICU_GRP_SEI (0x4) : System error interrupt 93*4882a593Smuzhiyun ICU_GRP_REI (0x5) : RAM error interrupt 94*4882a593Smuzhiyun The 2nd cell was the index of the interrupt in the ICU unit. 95*4882a593Smuzhiyun The 3rd cell was the type of the interrupt. See arm,gic.txt for 96*4882a593Smuzhiyun details. 97*4882a593Smuzhiyun 98*4882a593SmuzhiyunExample: 99*4882a593Smuzhiyun 100*4882a593Smuzhiyunicu: interrupt-controller@1e0000 { 101*4882a593Smuzhiyun compatible = "marvell,cp110-icu"; 102*4882a593Smuzhiyun reg = <0x1e0000 0x440>; 103*4882a593Smuzhiyun 104*4882a593Smuzhiyun #interrupt-cells = <3>; 105*4882a593Smuzhiyun interrupt-controller; 106*4882a593Smuzhiyun msi-parent = <&gicp>; 107*4882a593Smuzhiyun}; 108*4882a593Smuzhiyun 109*4882a593Smuzhiyunnode1 { 110*4882a593Smuzhiyun interrupt-parent = <&icu>; 111*4882a593Smuzhiyun interrupts = <ICU_GRP_NSR 106 IRQ_TYPE_LEVEL_HIGH>; 112*4882a593Smuzhiyun}; 113