Skip to content

Commit bcfa89b

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
overlays: Add gpio-no-bank0-irq overlay
See: #2590 Signed-off-by: Phil Elwell <[email protected]>
1 parent 1e56d8a commit bcfa89b

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
3737
gpio-ir.dtbo \
3838
gpio-ir-tx.dtbo \
3939
gpio-key.dtbo \
40+
gpio-no-bank0-irq.dtbo \
4041
gpio-no-irq.dtbo \
4142
gpio-poweroff.dtbo \
4243
gpio-shutdown.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,15 @@ Params: gpio GPIO pin to trigger on (default 3)
597597
keycode Set the key code for the button
598598

599599

600+
Name: gpio-no-bank0-irq
601+
Info: Use this overlay to disable GPIO interrupts for GPIOs in bank 0 (0-27),
602+
which can be useful for UIO drivers.
603+
N.B. Using this overlay will trigger a kernel WARN during booting, but
604+
this can safely be ignored - the system should work as expected.
605+
Load: dtoverlay=gpio-no-bank0-irq
606+
Params: <None>
607+
608+
600609
Name: gpio-no-irq
601610
Info: Use this overlay to disable all GPIO interrupts, which can be useful
602611
for user-space GPIO edge detection systems.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
compatible = "brcm,bcm2835";
6+
7+
fragment@0 {
8+
// Configure the gpio pin controller
9+
target = <&gpio>;
10+
__overlay__ {
11+
interrupts = <255 255>, <2 18>;
12+
};
13+
};
14+
};

0 commit comments

Comments
 (0)