Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BPro internal pull up on I2C

Featured Replies

I am sorry but even after long searching I could not find out how to enable internal pull up resistors in an A20. I am on a BananaPro with Bionic, kernel 4.14.70. I want to use the pull ups on I2C-1. Presumably it is quite easy.

I know that internal pull resistors are usually too weak for I2C, but the I2C is only connected to an external level shifter since all connected I2C devices have 5V lines. So the internal resistors should be sufficient, and the expansion board  is working reliably on an old Rapsberry model B with internal pull ups.

 

So, how can I enable internal pullups? The I2C-1 overlay seems not to have an option for that. Can it be done via device tree or writing to /sys/class?

 

Thanks for suggestions.

Best Regards

If I remember correctly, internal pullups are only active when the pins are in gpio input mode, therefore when switched to i2c mode, I don't think the pullups remains.

Why don't you add some directly on your level shifter module, and some of those level shifter maybe have them already ? ...

  • Author

Ok... thats a bit strange. And it is not possible to turn on the pullups again after configuring for I2C?

The problem is that the expansion board is already finished (it was designed for and used on a RPi). The level shifter is made of two MOSFETs as described in here (pdf, see page 4). Inserting pullups requires a hardware patch. But it seems there is no way around.

 

Thanks for your reply.

 

Regards

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.