1*4882a593SmuzhiyunAmlogic meson GPIO interrupt controller 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunMeson SoCs contains an interrupt controller which is able to watch the SoC 4*4882a593Smuzhiyunpads and generate an interrupt on edge or level. The controller is essentially 5*4882a593Smuzhiyuna 256 pads to 8 GIC interrupt multiplexer, with a filter block to select edge 6*4882a593Smuzhiyunor level and polarity. It does not expose all 256 mux inputs because the 7*4882a593Smuzhiyundocumentation shows that the upper part is not mapped to any pad. The actual 8*4882a593Smuzhiyunnumber of interrupt exposed depends on the SoC. 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunRequired properties: 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun- compatible : must have "amlogic,meson8-gpio-intc" and either 13*4882a593Smuzhiyun "amlogic,meson8-gpio-intc" for meson8 SoCs (S802) or 14*4882a593Smuzhiyun "amlogic,meson8b-gpio-intc" for meson8b SoCs (S805) or 15*4882a593Smuzhiyun "amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or 16*4882a593Smuzhiyun "amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912) 17*4882a593Smuzhiyun "amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X) 18*4882a593Smuzhiyun "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2) 19*4882a593Smuzhiyun "amlogic,meson-sm1-gpio-intc" for SM1 SoCs (S905D3, S905X3, S905Y3) 20*4882a593Smuzhiyun "amlogic,meson-a1-gpio-intc" for A1 SoCs (A113L) 21*4882a593Smuzhiyun- reg : Specifies base physical address and size of the registers. 22*4882a593Smuzhiyun- interrupt-controller : Identifies the node as an interrupt controller. 23*4882a593Smuzhiyun- #interrupt-cells : Specifies the number of cells needed to encode an 24*4882a593Smuzhiyun interrupt source. The value must be 2. 25*4882a593Smuzhiyun- meson,channel-interrupts: Array with the 8 upstream hwirq numbers. These 26*4882a593Smuzhiyun are the hwirqs used on the parent interrupt controller. 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunExample: 29*4882a593Smuzhiyun 30*4882a593Smuzhiyungpio_interrupt: interrupt-controller@9880 { 31*4882a593Smuzhiyun compatible = "amlogic,meson-gxbb-gpio-intc", 32*4882a593Smuzhiyun "amlogic,meson-gpio-intc"; 33*4882a593Smuzhiyun reg = <0x0 0x9880 0x0 0x10>; 34*4882a593Smuzhiyun interrupt-controller; 35*4882a593Smuzhiyun #interrupt-cells = <2>; 36*4882a593Smuzhiyun meson,channel-interrupts = <64 65 66 67 68 69 70 71>; 37*4882a593Smuzhiyun}; 38