0
Henrik Larsson

I2C DTS Overlay enable pull up resistor

Recommended Posts

On my NanoPi Neo Air it seems there is no pull up resistors on I2C (SDA, SCL).  

 

Is it possible to enable pull-up on these pins in a DTS overlay (either the standard i2c dtb or in a user overlay)? If so could anyone give me an example of how to do that...I have tried to understand the dts files but failed.

 

 

Share this post


Link to post
Share on other sites

Don't try to enable internal GPIO pullups, it is waste of time since internal ones are too weak for I2C, which need something like 3K while internals are usually around 30K.

Simply add some external ones on one of your peripherals ...

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0