kernel: bump 4.14 to 4.14.93
[openwrt/staging/chunkeey.git] / target / linux / brcm2708 / patches-4.14 / 950-0316-overlays-Add-gpio-no-irq-overlay.patch
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
5
6 An overlay to disable all GPIO interrupts.
7
8 See: https://github.com/raspberrypi/linux/issues/2550
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
11 ---
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
17
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) += \
21 gpio-ir.dtbo \
22 gpio-ir-tx.dtbo \
23 gpio-key.dtbo \
24 + gpio-no-irq.dtbo \
25 gpio-poweroff.dtbo \
26 gpio-shutdown.dtbo \
27 hifiberry-amp.dtbo \
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
32
33
34 +Name: gpio-no-irq
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
38 +Params: <None>
39 +
40 +
41 Name: gpio-poweroff
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.
44 --- /dev/null
45 +++ b/arch/arm/boot/dts/overlays/gpio-no-irq-overlay.dts
46 @@ -0,0 +1,14 @@
47 +/dts-v1/;
48 +/plugin/;
49 +
50 +/ {
51 + compatible = "brcm,bcm2835";
52 +
53 + fragment@0 {
54 + // Configure the gpio pin controller
55 + target = <&gpio>;
56 + __overlay__ {
57 + interrupts;
58 + };
59 + };
60 +};