1 From 174a2e7f83a033252da488edd3072f446f82325d Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 19 Jun 2018 15:04:45 +0100
4 Subject: [PATCH 316/454] overlays: Add gpio-no-irq overlay
6 An overlay to disable all GPIO interrupts.
8 See: https://github.com/raspberrypi/linux/issues/2550
10 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
12 arch/arm/boot/dts/overlays/Makefile | 1 +
13 arch/arm/boot/dts/overlays/README | 7 +++++++
14 arch/arm/boot/dts/overlays/gpio-no-irq-overlay.dts | 14 ++++++++++++++
15 3 files changed, 22 insertions(+)
16 create mode 100644 arch/arm/boot/dts/overlays/gpio-no-irq-overlay.dts
18 --- a/arch/arm/boot/dts/overlays/Makefile
19 +++ b/arch/arm/boot/dts/overlays/Makefile
20 @@ -35,6 +35,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
28 --- a/arch/arm/boot/dts/overlays/README
29 +++ b/arch/arm/boot/dts/overlays/README
30 @@ -583,6 +583,13 @@ Params: gpio GPIO pin
31 keycode Set the key code for the button
35 +Info: Use this overlay to disable all GPIO interrupts, which can be useful
36 + for user-space GPIO edge detection systems.
37 +Load: dtoverlay=gpio-no-irq
42 Info: Drives a GPIO high or low on poweroff (including halt). Enabling this
43 overlay will prevent the ability to boot by driving GPIO3 low.
45 +++ b/arch/arm/boot/dts/overlays/gpio-no-irq-overlay.dts
51 + compatible = "brcm,bcm2835";
54 + // Configure the gpio pin controller