Skip to content
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

Add hack to handle BBB GPIO remapping #153

Merged
merged 1 commit into from Dec 15, 2023

Conversation

fhunleth
Copy link
Contributor

@fhunleth fhunleth commented Dec 3, 2023

As of Linux 5.15, the AM335x GPIO banks got reordered and this throws off the pin numbering. See comments for more details. The gist is that we hide it from existing programs to avoid the new mapping that's different from almost every Beaglebone doc on the web. This will make programs work with the caveat that anyone doing manual debugging of sysfs will notice it, be confused, and hopefully find this commit.

The future has been to switch to cdev, but that's not happening in the v1.x branch so this is the workaround to allow Linux 5.15 and later.

As of Linux 5.15, the AM335x GPIO banks got reordered and this throws
off the pin numbering. See comments for more details. The gist is that
we hide it from existing programs to avoid the new mapping that's
different from almost every Beaglebone doc on the web. This will make
programs work with the caveat that anyone doing manual debugging of
sysfs will notice it, be confused, and hopefully find this commit.

The future has been to switch to cdev, but that's not happening in the
v1.x branch so this is the workaround to allow Linux 5.15 and later.
@fhunleth fhunleth merged commit 1eb50e1 into maint-v1.x Dec 15, 2023
7 checks passed
@fhunleth fhunleth deleted the maint-v1.x-support-bbb-linux-5.15 branch December 15, 2023 00:04
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.

None yet

1 participant