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

Support for Pull up / Pull down resistors #9

Open
rm-hull opened this issue May 27, 2017 · 2 comments
Open

Support for Pull up / Pull down resistors #9

rm-hull opened this issue May 27, 2017 · 2 comments

Comments

@rm-hull
Copy link
Owner

rm-hull commented May 27, 2017

Pull request #8 added faux-compatibility for pull up/down resistors by adding an optional parameter, so that existing code doesn't break. This issue is a placeholder to add real support for pull-up/down resistors.

Related (originating) issue: #6

@gw0
Copy link

gw0 commented Nov 19, 2017

As I understand, the sysfs interface does not support dynamic configuration of internal pull-up/down resistors. So an Allwinner-specific solution is necessary, just like Raspberry Pi has Broadcom-specific solutions.

  • The Allwinner-specific sunxi interface supports this, but you have to access the system memory directly. Is it compatible with sysfs interface?
  • Another option seems to be writing DTS overlays (like on RPi) and rebooting each time. But it seems this is not yet supported (/boot/dtb-4.13.8-sunxi/overlay/README.sun8i-h3-overlays)?
  • A similar Allwinner-specific solution are Fex Guide GPIO configuration and rebooting each time?

@enesbcs
Copy link

enesbcs commented Apr 15, 2020

I've found a DTS that enables internal pullup, not sure if it can be used.
https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/gpio-button.dts

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

No branches or pull requests

3 participants