8000 dtoverlay: Add autorepeat option to gpio-key overlay by 6by9 · Pull Request #6933 · raspberrypi/linux · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

6by9
Copy link
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
Contributor Author
6by9 commented Jul 2, 2025

@pelwell
Copy link
Contributor
pelwell commented Jul 2, 2025

It looks correct - have you verified that it works?

@6by9
Copy link
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
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
0