18c2ecf20Sopenharmony_ciAmlogic meson GPIO interrupt controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciMeson SoCs contains an interrupt controller which is able to watch the SoC
48c2ecf20Sopenharmony_cipads and generate an interrupt on edge or level. The controller is essentially
58c2ecf20Sopenharmony_cia 256 pads to 8 GIC interrupt multiplexer, with a filter block to select edge
68c2ecf20Sopenharmony_cior level and polarity. It does not expose all 256 mux inputs because the
78c2ecf20Sopenharmony_cidocumentation shows that the upper part is not mapped to any pad. The actual
88c2ecf20Sopenharmony_cinumber of interrupt exposed depends on the SoC.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciRequired properties:
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci- compatible : must have "amlogic,meson8-gpio-intc" and either
138c2ecf20Sopenharmony_ci    "amlogic,meson8-gpio-intc" for meson8 SoCs (S802) or
148c2ecf20Sopenharmony_ci    "amlogic,meson8b-gpio-intc" for meson8b SoCs (S805) or
158c2ecf20Sopenharmony_ci    "amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or
168c2ecf20Sopenharmony_ci    "amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912)
178c2ecf20Sopenharmony_ci    "amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X)
188c2ecf20Sopenharmony_ci    "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2)
198c2ecf20Sopenharmony_ci    "amlogic,meson-sm1-gpio-intc" for SM1 SoCs (S905D3, S905X3, S905Y3)
208c2ecf20Sopenharmony_ci    "amlogic,meson-a1-gpio-intc" for A1 SoCs (A113L)
218c2ecf20Sopenharmony_ci- reg : Specifies base physical address and size of the registers.
228c2ecf20Sopenharmony_ci- interrupt-controller : Identifies the node as an interrupt controller.
238c2ecf20Sopenharmony_ci- #interrupt-cells : Specifies the number of cells needed to encode an
248c2ecf20Sopenharmony_ci   interrupt source. The value must be 2.
258c2ecf20Sopenharmony_ci- meson,channel-interrupts: Array with the 8 upstream hwirq numbers. These
268c2ecf20Sopenharmony_ci   are the hwirqs used on the parent interrupt controller.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciExample:
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_cigpio_interrupt: interrupt-controller@9880 {
318c2ecf20Sopenharmony_ci	compatible = "amlogic,meson-gxbb-gpio-intc",
328c2ecf20Sopenharmony_ci		     "amlogic,meson-gpio-intc";
338c2ecf20Sopenharmony_ci	reg = <0x0 0x9880 0x0 0x10>;
348c2ecf20Sopenharmony_ci	interrupt-controller;
358c2ecf20Sopenharmony_ci	#interrupt-cells = <2>;
368c2ecf20Sopenharmony_ci	meson,channel-interrupts = <64 65 66 67 68 69 70 71>;
378c2ecf20Sopenharmony_ci};
38