Skip to content

Commit 4f776c2

Browse files
6by9pelwell
authored andcommitted
dtoverlay: Add autorepeat option to gpio-key overlay
It's a standard option of the gpio_keys driver, so add an override for it in the overlay. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 894abbc commit 4f776c2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,7 @@ Params: gpio GPIO pin to trigger on (default 3)
15921592
(GPIO3) has an external pullup
15931593
label Set a label for the key
15941594
keycode Set the key code for the button
1595+
autorepeat Set the key to autorepeat
15951596

15961597

15971598

arch/arm/boot/dts/overlays/gpio-key-overlay.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
keycode = <&key>,"linux,code:0";
4444
gpio_pull = <&pin_state>,"brcm,pull:0";
4545
active_low = <&key>,"gpios:8";
46+
autorepeat = <&button>,"autorepeat?";
4647
};
4748

4849
};

0 commit comments

Comments
 (0)