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

Sysfs interface for GPIO is now deprecated #38

Open
samdolt opened this issue Oct 28, 2017 · 4 comments
Open

Sysfs interface for GPIO is now deprecated #38

samdolt opened this issue Oct 28, 2017 · 4 comments

Comments

@samdolt
Copy link

@samdolt 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

@posborne posborne commented Oct 30, 2017

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

@posborne posborne commented Oct 30, 2017

@marshallpierce
Copy link

@marshallpierce marshallpierce commented Mar 12, 2018

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

@posborne posborne commented Mar 12, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants