blob: 23b18b92c5581210f658777216b66c131587dbd3 [file] [log] [blame]
Jerome Brunetdf48d3b2017-09-18 15:46:09 +02001Amlogic meson GPIO interrupt controller
2
3Meson SoCs contains an interrupt controller which is able to watch the SoC
4pads and generate an interrupt on edge or level. The controller is essentially
5a 256 pads to 8 GIC interrupt multiplexer, with a filter block to select edge
6or level and polarity. It does not expose all 256 mux inputs because the
7documentation shows that the upper part is not mapped to any pad. The actual
8number of interrupt exposed depends on the SoC.
9
10Required properties:
11
Yixun Lan0e416352018-04-08 14:56:58 +000012- compatible : must have "amlogic,meson8-gpio-intc" and either
13 "amlogic,meson8-gpio-intc" for meson8 SoCs (S802) or
14 "amlogic,meson8b-gpio-intc" for meson8b SoCs (S805) or
15 "amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or
16 "amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912)
Yixun Lan3212dca2018-04-08 14:56:59 +000017 "amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X)
Xingyu Chen5028bd62019-06-08 21:04:09 +020018 "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2)
Jerome Brunetabc08aa2019-08-29 18:16:34 +020019 "amlogic,meson-sm1-gpio-intc" for SM1 SoCs (S905D3, S905X3, S905Y3)
Qianggui Songfd6765b2019-12-16 20:36:42 +080020 "amlogic,meson-a1-gpio-intc" for A1 SoCs (A113L)
Jerome Brunetdf48d3b2017-09-18 15:46:09 +020021- reg : Specifies base physical address and size of the registers.
22- interrupt-controller : Identifies the node as an interrupt controller.
23- #interrupt-cells : Specifies the number of cells needed to encode an
24 interrupt source. The value must be 2.
25- meson,channel-interrupts: Array with the 8 upstream hwirq numbers. These
26 are the hwirqs used on the parent interrupt controller.
27
28Example:
29
30gpio_interrupt: interrupt-controller@9880 {
31 compatible = "amlogic,meson-gxbb-gpio-intc",
32 "amlogic,meson-gpio-intc";
33 reg = <0x0 0x9880 0x0 0x10>;
34 interrupt-controller;
35 #interrupt-cells = <2>;
36 meson,channel-interrupts = <64 65 66 67 68 69 70 71>;
37};