Skip to content

Update lgpio chip selection to work with more than 1 digit - #1120

Merged
makermelissa merged 1 commit into
adafruit:mainfrom
makermelissa:main
Jul 30, 2026
Merged

Update lgpio chip selection to work with more than 1 digit#1120
makermelissa merged 1 commit into
adafruit:mainfrom
makermelissa:main

Conversation

@makermelissa

Copy link
Copy Markdown
Collaborator

Fixes #1119.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the generic Linux lgpio backend to correctly select GPIO chips whose sysfs name includes multi-digit indices (e.g., gpiochip11), addressing Raspberry Pi 5 / newer kernel device naming and fixing #1119.

Changes:

  • Parse the full numeric suffix of gpiochip* sysfs entries instead of only the last character.
  • Open the corresponding lgpio chip using the parsed chip ID.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@makermelissa
makermelissa merged commit 37a4ff5 into adafruit:main Jul 30, 2026
1 check 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.

Kernel 6.12.96+rpt-rpi-2712 on Raspberry Pi OS 12 breaks gpiochip detection

2 participants