Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: How do I setup a PCA9547 muxed i2c on by board file?

$
0
0

Additional info:

The MUX GPIO driver will not work with this chip as the chip is a mux and not a switch (the GPIO MUX driver only supports switches at this time).

If I use the i2c.davinci driver as a platform device, instead of the i2c.gpio driver, timeouts occur.

The linux distribution is from the linux-davinci git repo, the same as used by TI PSP3.22.00.06.
I have enabled the PCA954x MUX driver.

The board is configured without a UI expander. Instead, it has a PCA9547BS (8 channel mux) on the main board using address 0x73.

My .config I2C options are:
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_COMPAT=y
CONFIG_I2C_DAVINCI=y
CONFIG_I2C_DEBUG_ALGO=y
CONFIG_I2C_DEBUG_BUS=y
CONFIG_I2C_DEBUG_CORE=y
CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_INIT_USB_HUB=y
CONFIG_I2C_MUX_PCA954x=y
CONFIG_I2C_MUX=y
CONFIG_I2C=y

These options cause a timeout/bus recover.
I've also tried CONFIG_I2C_GPIO and CONFIG_I2C_MUX_GPIO. No timeouts, but the PCA954X driver returns a -16 error status (-EBUSY) while trying to enumerate the virtual adapters.


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>