0
WZ9V

Le Potato i2c bus

Recommended Posts

If I do i2cdetect -y 0 I don't see the device id I expect to 0x10 but I do see 0x30 and 0x50 which I shouldn't because there should only be one device at 0x10.  I only see one i2c bus at /dev/i2c-0.  

 

Is that the i2c bus using header pins 3 and 5 which is where my device is attached?

 

If not how would I enable the bus on pins 3 and 5?

Share this post


Link to post
Share on other sites

http://ix.io/1wtZ
 

BTW i2cdetect -l says

i2c-0    i2c           DesignWare HDMI                     I2C adapter

 

My best guess is that /dev/i2c-0 is picking up an i2c channel on the hdmi interface and not the one on header pins 3 and 5.  The docs say you can enable onboard i2c/spi via the armbian_config System->Hardware menu but I don't have the menu option when I run it from the Applications menu.
 

Share this post


Link to post
Share on other sites

OK, I'm adding the I2C for that to the device tree.  For 4.19 I'll toss a set of overlays out so the various hardware can be configured at will.

 

Install the deb attached into your 4.14 install and let me know if it works for you.

 

Not complete, I need to add proper processor pin names for a few of these yet:

 

image.png.998f8126f294add46daf02938fde4076.png

linux-dtb-meson64_5.67_arm64.deb

Share this post


Link to post
Share on other sites

Thanks, worked great.  I now see bus /dev/i2c-0 and /dev/i2c-1 and my device id shows up on /dev/i2c-0

 

i2cdetect -l

i2c-1    i2c           DesignWare HDMI                     I2C adapter
i2c-0    i2c           Meson I2C adapter                   I2C adapter
 

Looking forward to the future update with the overlays and eMMC, I have what I need to try and port the Pi-Top device support over now.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0