Back to home page

OSCL-LXR

 
 

    


0001 Amlogic meson GPIO interrupt controller
0002 
0003 Meson SoCs contains an interrupt controller which is able to watch the SoC
0004 pads and generate an interrupt on edge or level. The controller is essentially
0005 a 256 pads to 8 GIC interrupt multiplexer, with a filter block to select edge
0006 or level and polarity. It does not expose all 256 mux inputs because the
0007 documentation shows that the upper part is not mapped to any pad. The actual
0008 number of interrupt exposed depends on the SoC.
0009 
0010 Required properties:
0011 
0012 - compatible : must have "amlogic,meson8-gpio-intc" and either
0013     "amlogic,meson8-gpio-intc" for meson8 SoCs (S802) or
0014     "amlogic,meson8b-gpio-intc" for meson8b SoCs (S805) or
0015     "amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or
0016     "amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912)
0017     "amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X)
0018     "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2)
0019     "amlogic,meson-sm1-gpio-intc" for SM1 SoCs (S905D3, S905X3, S905Y3)
0020     "amlogic,meson-a1-gpio-intc" for A1 SoCs (A113L)
0021     "amlogic,meson-s4-gpio-intc" for S4 SoCs (S802X2, S905Y4, S805X2G, S905W2)
0022 - reg : Specifies base physical address and size of the registers.
0023 - interrupt-controller : Identifies the node as an interrupt controller.
0024 - #interrupt-cells : Specifies the number of cells needed to encode an
0025    interrupt source. The value must be 2.
0026 - meson,channel-interrupts: Array with the 8 upstream hwirq numbers. These
0027    are the hwirqs used on the parent interrupt controller.
0028 
0029 Example:
0030 
0031 gpio_interrupt: interrupt-controller@9880 {
0032         compatible = "amlogic,meson-gxbb-gpio-intc",
0033                      "amlogic,meson-gpio-intc";
0034         reg = <0x0 0x9880 0x0 0x10>;
0035         interrupt-controller;
0036         #interrupt-cells = <2>;
0037         meson,channel-interrupts = <64 65 66 67 68 69 70 71>;
0038 };