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

Add support for other I2C buses #87

Merged
merged 2 commits into from
May 22, 2024
Merged

Conversation

alees24
Copy link
Contributor

@alees24 alees24 commented May 22, 2024

This PR adds support for the other I2C buses on the Sonata board.

  • I2C0 drives qwiic0, RPi HAT ID and Arduino.
  • I2C1 drives qwiic1, RPi GPIO/I2C bus and mikroBUS Click.

The i2c_hat_id demo application is modified to read and report the SparkFun AS6212 Temperature Sensor reading as well as the IMU 'WHO_AM_I' registers from the other I2C bus on the RPi Sense HAT.

This is therefore reading from I2C1 (IMU) as well as two separate devices on the I2C0 bus. I2C devices are presently not available on mikroBUS Click and Arduino boards for testing.

alees24 added 2 commits May 22, 2024 15:29
Ensure that all Sonata I2C buses are accessible via
the two I2C controllers, by combining them within
the FPGA.

Enable internal pull-ups on all buses for which there
is no pull-up resistor on the board, in case there is
nothing connected.
Introduce basic test for for the IMU on RPi Sense HAT
and the Sparkfun AS6212 Temperature Sensor.
@alees24 alees24 requested review from marnovandermaas and HU90m May 22, 2024 14:43
Copy link
Contributor

@marnovandermaas marnovandermaas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for me, thanks!

@marnovandermaas marnovandermaas merged commit 6b94650 into lowRISC:main May 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants