Skip to content

dtoverlay: Add autorepeat option to gpio-key overlay#6933

Merged
pelwell merged 1 commit intoraspberrypi:rpi-6.12.yfrom
6by9:rpi-6.12.y-dtoverlays2
Jul 2, 2025
Merged

dtoverlay: Add autorepeat option to gpio-key overlay#6933
pelwell merged 1 commit intoraspberrypi:rpi-6.12.yfrom
6by9:rpi-6.12.y-dtoverlays2

Conversation

@6by9
Copy link
Copy Markdown
Contributor

@6by9 6by9 commented Jul 2, 2025

It's a standard option of the gpio_keys driver, so add an override for it in the 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>
@6by9
Copy link
Copy Markdown
Contributor Author

6by9 commented Jul 2, 2025

@pelwell
Copy link
Copy Markdown
Contributor

pelwell commented Jul 2, 2025

It looks correct - have you verified that it works?

@6by9
Copy link
Copy Markdown
Contributor Author

6by9 commented Jul 2, 2025

It looks correct - have you verified that it works?

Yes I've tested it.
dtoverlay=gpio-key,gpio=4,keycode=16,autorepeat, and I get the letter q autorepeating on my console.
Keydown event when the GPIO goes low, repeats whilst held low, and stops when taken high. (RTFM to note that active_low defaults to 1)

@pelwell pelwell merged commit c0b918a into raspberrypi:rpi-6.12.y Jul 2, 2025
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jul 7, 2025
kernel: vcsm-cma fixes for lockdep warnings
See: raspberrypi/linux#6929

kernel: dtoverlay: Add autorepeat option to gpio-key overlay
See: raspberrypi/linux#6933

kernel: drivers: media: cfe: Workaround for 16-bit mismatch in the hardware
See: raspberrypi/linux#6935

kernel: configs: Enable more packet classification options
See: raspberrypi/linux#6938

kernel: overlays: ili9881-7inch: Fix overlay name in preamble
See: raspberrypi/linux#6940

kernel: iommu: bcm2712-iommu: Add locking; fix address offset; tidy
See: raspberrypi/linux#6939
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jul 7, 2025
kernel: vcsm-cma fixes for lockdep warnings
See: raspberrypi/linux#6929

kernel: dtoverlay: Add autorepeat option to gpio-key overlay
See: raspberrypi/linux#6933

kernel: drivers: media: cfe: Workaround for 16-bit mismatch in the hardware
See: raspberrypi/linux#6935

kernel: configs: Enable more packet classification options
See: raspberrypi/linux#6938

kernel: overlays: ili9881-7inch: Fix overlay name in preamble
See: raspberrypi/linux#6940

kernel: iommu: bcm2712-iommu: Add locking; fix address offset; tidy
See: raspberrypi/linux#6939
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants