Skip to content

Commit 6d27aa1

Browse files
author
Phil Elwell
committed
overlays: Add gpio-no-bank0-irq overlay
See: #2590 Signed-off-by: Phil Elwell <[email protected]>
1 parent 94a06fb commit 6d27aa1

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
@@ -39,6 +39,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
3939
gpio-ir.dtbo \
4040
gpio-ir-tx.dtbo \
4141
gpio-key.dtbo \
42+
gpio-no-bank0-irq.dtbo \
4243
gpio-no-irq.dtbo \
4344
gpio-poweroff.dtbo \
4445
gpio-shutdown.dtbo \

arch/arm/boot/dts/overlays/README

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

621621

622+
Name: gpio-no-bank0-irq
623+
Info: Use this overlay to disable GPIO interrupts for GPIOs in bank 0 (0-27),
624+
which can be useful for UIO drivers.
625+
N.B. Using this overlay will trigger a kernel WARN during booting, but
626+
this can safely be ignored - the system should work as expected.
627+
Load: dtoverlay=gpio-no-bank0-irq
628+
Params: <None>
629+
630+
622631
Name: gpio-no-irq
623632
Info: Use this overlay to disable all GPIO interrupts, which can be useful
624633
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)