Skip to content

Commit 65441ba

Browse files
committed
Merge tag 'irqchip-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/core
Pull irqchip updates for 4.18 from Marc Zyngier: - Support for Meson-AXG GPIO irqchip - Large stm32 irqchip rework (suspend/resume, hierarchical domains)
2 parents 48bda43 + 6a88c22 commit 65441ba

File tree

7 files changed

+623
-103
lines changed

7 files changed

+623
-103
lines changed

Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ number of interrupt exposed depends on the SoC.
99

1010
Required properties:
1111

12-
- 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)
12+
- 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)
17+
"amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X)
1718
- interrupt-parent : a phandle to the GIC the interrupts are routed to.
1819
Usually this is provided at the root level of the device tree as it is
1920
common to most of the SoC.

Documentation/devicetree/bindings/interrupt-controller/st,stm32-exti.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ Required properties:
55
- compatible: Should be:
66
"st,stm32-exti"
77
"st,stm32h7-exti"
8+
"st,stm32mp1-exti"
89
- reg: Specifies base physical address and size of the registers
910
- interrupt-controller: Indentifies the node as an interrupt controller
1011
- #interrupt-cells: Specifies the number of cells to encode an interrupt
1112
specifier, shall be 2
1213
- interrupts: interrupts references to primary interrupt controller
14+
(only needed for exti controller with multiple exti under
15+
same parent interrupt: st,stm32-exti and st,stm32h7-exti")
1316

1417
Example:
1518

arch/arm/boot/dts/stm32mp157-pinctrl.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#size-cells = <1>;
1313
compatible = "st,stm32mp157-pinctrl";
1414
ranges = <0 0x50002000 0xa400>;
15+
interrupt-parent = <&exti>;
16+
st,syscfg = <&exti 0x60 0xff>;
1517
pins-are-numbered;
1618

1719
gpioa: gpio@50002000 {
@@ -166,6 +168,8 @@
166168
compatible = "st,stm32mp157-z-pinctrl";
167169
ranges = <0 0x54004000 0x400>;
168170
pins-are-numbered;
171+
interrupt-parent = <&exti>;
172+
st,syscfg = <&exti 0x60 0xff>;
169173
status = "disabled";
170174

171175
gpioz: gpio@54004000 {

arch/arm/boot/dts/stm32mp157c.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@
183183
status = "disabled";
184184
};
185185

186+
exti: interrupt-controller@5000d000 {
187+
compatible = "st,stm32mp1-exti", "syscon";
188+
interrupt-controller;
189+
#interrupt-cells = <2>;
190+
reg = <0x5000d000 0x400>;
191+
};
192+
186193
usart1: serial@5c000000 {
187194
compatible = "st,stm32h7-uart";
188195
reg = <0x5c000000 0x400>;

drivers/irqchip/irq-meson-gpio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,16 @@ static const struct meson_gpio_irq_params gxl_params = {
6363
.nr_hwirq = 110,
6464
};
6565

66+
static const struct meson_gpio_irq_params axg_params = {
67+
.nr_hwirq = 100,
68+
};
69+
6670
static const struct of_device_id meson_irq_gpio_matches[] = {
6771
{ .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
6872
{ .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
6973
{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
7074
{ .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params },
75+
{ .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params },
7176
{ }
7277
};
7378

0 commit comments

Comments
 (0)