Skip to content

Sysfs interface for GPIO is now deprecated #38

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

Closed
samdolt opened this issue Oct 28, 2017 · 5 comments
Closed

Sysfs interface for GPIO is now deprecated #38

samdolt opened this issue Oct 28, 2017 · 5 comments

Comments

@samdolt
Copy link

samdolt commented Oct 28, 2017

And it will be removed in 2020.

See https://www.kernel.org/doc/Documentation/ABI/obsolete/sysfs-gpio
And the new https://www.kernel.org/doc/Documentation/ABI/testing/gpio-cdev

You can also see this talk from the last Embedded Linux Conference Europe (posted yesterday by the Linux Foundation):

https://www.youtube.com/watch?v=cdTLewJCL1Y&list=PLbzoR-pLrL6pISWAq-1cXP4_UZAyRtesk&index=56

@posborne
Copy link
Member

Thanks for the heads up @samdolt, I believe we should be able to select the appropriate one at runtime, but this will require a bit more investigation into the specifics of how gpio-cdev works. Dropping sysfs support altogether will probably not be wise for some time (as plenty of systems still run kernels older than 4.4).

@posborne
Copy link
Member

@marshallpierce
Copy link

I found https://www.youtube.com/watch?v=76j3TIqTPTI&feature=youtu.be to be pretty helpful in understanding the new gpio interface.

@posborne
Copy link
Member

Thanks @marshallpierce. I've started a bit of development (not pushed yet). Staging for that work will be at https://github.com/posborne/rust-gpio-cdev

@eldruin
Copy link
Member

eldruin commented Sep 20, 2021

gpio-cdev exists now so I will go ahead and close this.

@eldruin eldruin closed this as completed Sep 20, 2021
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

No branches or pull requests

4 participants