Skip to content

Commit b5183bc

Browse files
committed
Merge tag 'irq-core-2021-02-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq updates from Thomas Gleixner: "Updates for the irq subsystem: - The usual new irq chip driver (Realtek RTL83xx) - Removal of sirfsoc and tango irq chip drivers - Conversion of the sun6i chip support to hierarchical irq domains - The usual fixes, improvements and cleanups all over the place" * tag 'irq-core-2021-02-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: irqchip/imx: IMX_INTMUX should not default to y, unconditionally irqchip/loongson-pch-msi: Use bitmap_zalloc() to allocate bitmap irqchip/csky-mpintc: Prevent selection on unsupported platforms irqchip: Add support for Realtek RTL838x/RTL839x interrupt controller dt-bindings: interrupt-controller: Add Realtek RTL838x/RTL839x support irqchip/ls-extirq: add IRQCHIP_SKIP_SET_WAKE to the irqchip flags genirq: Use new tasklet API for resend_tasklet dt-bindings: qcom,pdc: Add compatible for SM8350 dt-bindings: qcom,pdc: Add compatible for SM8250 irqchip/sun6i-r: Add wakeup support irqchip/sun6i-r: Use a stacked irqchip driver dt-bindings: irq: sun6i-r: Add a compatible for the H3 dt-bindings: irq: sun6i-r: Split the binding from sun7i-nmi irqchip/gic-v3: Fix typos in PMR/RPR SCR_EL3.FIQ handling explanation irqchip: Remove sirfsoc driver irqchip: Remove sigma tango driver
2 parents 5bbb336 + 0b6d70e commit b5183bc

18 files changed

Lines changed: 703 additions & 457 deletions
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/interrupt-controller/allwinner,sun6i-a31-r-intc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Allwinner A31 NMI/Wakeup Interrupt Controller Device Tree Bindings
8+
9+
maintainers:
10+
- Chen-Yu Tsai <wens@csie.org>
11+
- Maxime Ripard <mripard@kernel.org>
12+
13+
allOf:
14+
- $ref: /schemas/interrupt-controller.yaml#
15+
16+
properties:
17+
"#interrupt-cells":
18+
const: 3
19+
description:
20+
The first cell is GIC_SPI (0), the second cell is the IRQ number, and
21+
the third cell is the trigger type as defined in interrupt.txt in this
22+
directory.
23+
24+
compatible:
25+
oneOf:
26+
- const: allwinner,sun6i-a31-r-intc
27+
- items:
28+
- enum:
29+
- allwinner,sun8i-a83t-r-intc
30+
- allwinner,sun8i-h3-r-intc
31+
- allwinner,sun50i-a64-r-intc
32+
- const: allwinner,sun6i-a31-r-intc
33+
- const: allwinner,sun50i-h6-r-intc
34+
35+
reg:
36+
maxItems: 1
37+
38+
interrupts:
39+
maxItems: 1
40+
description:
41+
The GIC interrupt labeled as "External NMI".
42+
43+
interrupt-controller: true
44+
45+
required:
46+
- "#interrupt-cells"
47+
- compatible
48+
- reg
49+
- interrupts
50+
- interrupt-controller
51+
52+
additionalProperties: false
53+
54+
examples:
55+
- |
56+
#include <dt-bindings/interrupt-controller/arm-gic.h>
57+
58+
r_intc: interrupt-controller@1f00c00 {
59+
compatible = "allwinner,sun50i-a64-r-intc",
60+
"allwinner,sun6i-a31-r-intc";
61+
interrupt-controller;
62+
#interrupt-cells = <3>;
63+
reg = <0x01f00c00 0x400>;
64+
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
65+
};
66+
67+
...

‎Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,16 @@ properties:
2222

2323
compatible:
2424
oneOf:
25-
- const: allwinner,sun6i-a31-r-intc
2625
- const: allwinner,sun6i-a31-sc-nmi
2726
deprecated: true
2827
- const: allwinner,sun7i-a20-sc-nmi
29-
- items:
30-
- const: allwinner,sun8i-a83t-r-intc
31-
- const: allwinner,sun6i-a31-r-intc
3228
- items:
3329
- const: allwinner,sun8i-v3s-nmi
3430
- const: allwinner,sun9i-a80-nmi
3531
- const: allwinner,sun9i-a80-nmi
36-
- items:
37-
- const: allwinner,sun50i-a64-r-intc
38-
- const: allwinner,sun6i-a31-r-intc
3932
- items:
4033
- const: allwinner,sun50i-a100-nmi
4134
- const: allwinner,sun9i-a80-nmi
42-
- items:
43-
- const: allwinner,sun50i-h6-r-intc
44-
- const: allwinner,sun6i-a31-r-intc
4535

4636
reg:
4737
maxItems: 1

‎Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Properties:
2020
Definition: Should contain "qcom,<soc>-pdc" and "qcom,pdc"
2121
- "qcom,sc7180-pdc": For SC7180
2222
- "qcom,sdm845-pdc": For SDM845
23+
- "qcom,sdm8250-pdc": For SM8250
24+
- "qcom,sdm8350-pdc": For SM8350
2325

2426
- reg:
2527
Usage: required
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/interrupt-controller/realtek,rtl-intc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Realtek RTL SoC interrupt controller devicetree bindings
8+
9+
maintainers:
10+
- Birger Koblitz <mail@birger-koblitz.de>
11+
- Bert Vermeulen <bert@biot.com>
12+
- John Crispin <john@phrozen.org>
13+
14+
properties:
15+
compatible:
16+
const: realtek,rtl-intc
17+
18+
"#interrupt-cells":
19+
const: 1
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
interrupt-controller: true
28+
29+
"#address-cells":
30+
const: 0
31+
32+
interrupt-map:
33+
description: Describes mapping from SoC interrupts to CPU interrupts
34+
35+
required:
36+
- compatible
37+
- reg
38+
- "#interrupt-cells"
39+
- interrupt-controller
40+
- "#address-cells"
41+
- interrupt-map
42+
43+
additionalProperties: false
44+
45+
examples:
46+
- |
47+
intc: interrupt-controller@3000 {
48+
compatible = "realtek,rtl-intc";
49+
#interrupt-cells = <1>;
50+
interrupt-controller;
51+
reg = <0x3000 0x20>;
52+
#address-cells = <0>;
53+
interrupt-map =
54+
<31 &cpuintc 2>,
55+
<30 &cpuintc 1>,
56+
<29 &cpuintc 5>;
57+
};

‎Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎arch/arm/mach-sunxi/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ menuconfig ARCH_SUNXI
66
select CLKSRC_MMIO
77
select GENERIC_IRQ_CHIP
88
select GPIOLIB
9+
select IRQ_DOMAIN_HIERARCHY
10+
select IRQ_FASTEOI_HIERARCHY_HANDLERS
911
select PINCTRL
1012
select PM_OPP
1113
select SUN4I_TIMER

‎arch/arm64/Kconfig.platforms‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ config ARCH_SUNXI
2222
bool "Allwinner sunxi 64-bit SoC Family"
2323
select ARCH_HAS_RESET_CONTROLLER
2424
select GENERIC_IRQ_CHIP
25+
select IRQ_DOMAIN_HIERARCHY
26+
select IRQ_FASTEOI_HIERARCHY_HANDLERS
2527
select PINCTRL
2628
select RESET_CONTROLLER
2729
help

‎drivers/irqchip/Kconfig‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,6 @@ config ST_IRQCHIP
260260
help
261261
Enables SysCfg Controlled IRQs on STi based platforms.
262262

263-
config TANGO_IRQ
264-
bool
265-
select IRQ_DOMAIN
266-
select GENERIC_IRQ_CHIP
267-
268263
config TB10X_IRQC
269264
bool
270265
select IRQ_DOMAIN
@@ -432,7 +427,7 @@ config QCOM_PDC
432427
IRQs for Qualcomm Technologies Inc (QTI) mobile chips.
433428

434429
config CSKY_MPINTC
435-
bool "C-SKY Multi Processor Interrupt Controller"
430+
bool
436431
depends on CSKY
437432
help
438433
Say yes here to enable C-SKY SMP interrupt controller driver used
@@ -457,7 +452,8 @@ config IMX_IRQSTEER
457452
Support for the i.MX IRQSTEER interrupt multiplexer/remapper.
458453

459454
config IMX_INTMUX
460-
def_bool y if ARCH_MXC || COMPILE_TEST
455+
bool "i.MX INTMUX support" if COMPILE_TEST
456+
default y if ARCH_MXC
461457
select IRQ_DOMAIN
462458
help
463459
Support for the i.MX INTMUX interrupt multiplexer.

‎drivers/irqchip/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ obj-$(CONFIG_OR1K_PIC) += irq-or1k-pic.o
2424
obj-$(CONFIG_ORION_IRQCHIP) += irq-orion.o
2525
obj-$(CONFIG_OMAP_IRQCHIP) += irq-omap-intc.o
2626
obj-$(CONFIG_ARCH_SUNXI) += irq-sun4i.o
27+
obj-$(CONFIG_ARCH_SUNXI) += irq-sun6i-r.o
2728
obj-$(CONFIG_ARCH_SUNXI) += irq-sunxi-nmi.o
2829
obj-$(CONFIG_ARCH_SPEAR3XX) += spear-shirq.o
2930
obj-$(CONFIG_ARM_GIC) += irq-gic.o irq-gic-common.o
@@ -45,7 +46,6 @@ obj-$(CONFIG_I8259) += irq-i8259.o
4546
obj-$(CONFIG_IMGPDC_IRQ) += irq-imgpdc.o
4647
obj-$(CONFIG_IRQ_MIPS_CPU) += irq-mips-cpu.o
4748
obj-$(CONFIG_IXP4XX_IRQ) += irq-ixp4xx.o
48-
obj-$(CONFIG_SIRF_IRQ) += irq-sirfsoc.o
4949
obj-$(CONFIG_JCORE_AIC) += irq-jcore-aic.o
5050
obj-$(CONFIG_RDA_INTC) += irq-rda-intc.o
5151
obj-$(CONFIG_RENESAS_INTC_IRQPIN) += irq-renesas-intc-irqpin.o
@@ -55,7 +55,6 @@ obj-$(CONFIG_VERSATILE_FPGA_IRQ) += irq-versatile-fpga.o
5555
obj-$(CONFIG_ARCH_NSPIRE) += irq-zevio.o
5656
obj-$(CONFIG_ARCH_VT8500) += irq-vt8500.o
5757
obj-$(CONFIG_ST_IRQCHIP) += irq-st.o
58-
obj-$(CONFIG_TANGO_IRQ) += irq-tango.o
5958
obj-$(CONFIG_TB10X_IRQC) += irq-tb10x.o
6059
obj-$(CONFIG_TS4800_IRQ) += irq-ts4800.o
6160
obj-$(CONFIG_XTENSA) += irq-xtensa-pic.o
@@ -113,3 +112,4 @@ obj-$(CONFIG_LOONGSON_PCH_PIC) += irq-loongson-pch-pic.o
113112
obj-$(CONFIG_LOONGSON_PCH_MSI) += irq-loongson-pch-msi.o
114113
obj-$(CONFIG_MST_IRQ) += irq-mst-intc.o
115114
obj-$(CONFIG_SL28CPLD_INTC) += irq-sl28cpld.o
115+
obj-$(CONFIG_MACH_REALTEK_RTL) += irq-realtek-rtl.o

‎drivers/irqchip/irq-gic-v3.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ static DEFINE_STATIC_KEY_TRUE(supports_deactivate_key);
7575
* are presented to the GIC CPUIF as follow:
7676
* (GIC_(R)DIST_PRI[irq] >> 1) | 0x80;
7777
*
78-
* If SCR_EL3.FIQ == 1, the values writen to/read from PMR and RPR at non-secure
78+
* If SCR_EL3.FIQ == 1, the values written to/read from PMR and RPR at non-secure
7979
* EL1 are subject to a similar operation thus matching the priorities presented
8080
* from the (re)distributor when security is enabled. When SCR_EL3.FIQ == 0,
81-
* these values are unchanched by the GIC.
81+
* these values are unchanged by the GIC.
8282
*
8383
* see GICv3/GICv4 Architecture Specification (IHI0069D):
8484
* - section 4.8.1 Non-secure accesses to register fields for Secure interrupt

0 commit comments

Comments
 (0)