I2C3 returns "AT91 i2c bus driver (hw version: 0x0)."

Moderator: nferre

CortexAlex
Posts: 17
Joined: Thu Jan 26, 2017 12:48 pm

I2C3 returns "AT91 i2c bus driver (hw version: 0x0)."

Thu Jun 06, 2019 5:12 pm

hello everyone,

on the sama5d4xplained dev board, I'm trying to use a PCA9685 device connected to the I2C3 interface. I added a new node in the board device tree for i2c3 bus based on the other i2c nodes and configured it to use interrupt 62, base addr 0xF8038000, AT91_XDMAC_DT_PERIOD(8) for "tx" and 9 for "rx", (tried both DMAC0 and 1 by the way), configured the appropriate pinctrl and selected the twi3_clk. Then I created another node for the PCA9685 device to reference i2c3.
Yet, at boot time, Linux keeps returning "AT91 i2c bus driver (hw version: 0x0)." for i2c3.
When I change the PCA9685 node to point to i2c0, 1 or 2, I get the expected "AT91 i2c bus driver (hw version: 0x502)." string.

So question: is i2c3 not functioning on that board or is it not configured correctly by my mods ?

thanks in advance
Alex
blue_z
Location: USA
Posts: 1959
Joined: Thu Apr 19, 2007 10:15 pm

Re: I2C3 returns "AT91 i2c bus driver (hw version: 0x0)."

Thu Jun 06, 2019 10:42 pm

CortexAlex wrote: I added a new node in the board device tree for i2c3 bus based on the other i2c nodes and configured it to use interrupt 62, base addr 0xF8038000, AT91_XDMAC_DT_PERIOD(8) for "tx" and 9 for "rx", (tried both DMAC0 and 1 by the way), configured the appropriate pinctrl and selected the twi3_clk. Then I created another node for the PCA9685 device to reference i2c3.
A verbal summary is not a good substitute for the actual code.

CortexAlex wrote: Yet, at boot time, Linux keeps returning "AT91 i2c bus driver (hw version: 0x0)." for i2c3.
...
So question: is i2c3 not functioning on that board or is it not configured correctly by my mods ?
I don't know about your actual "mods", but you mention using a "base addr 0xF8038000", and that region of SAMA5D4 memory is marked 'Reserved' in my copy of the datasheet.

Regards
CortexAlex
Posts: 17
Joined: Thu Jan 26, 2017 12:48 pm

Re: I2C3 returns "AT91 i2c bus driver (hw version: 0x0)."

Fri Jun 07, 2019 9:29 am

When you read the docs too fast... :roll: Thank you !

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 3 guests