UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
7,356 Views
Registered: ‎11-17-2015

Linux I2C Slave mode

Hi there,

 

regarding the wiki http://www.wiki.xilinx.com/Cadence+I2C+Driver, I2C Slave mode is not yet available.

 

Does anyone have made some experience or

spent some effort in order to realize the I2C Slave API?

 

Thanks.

Andreas

 

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
7,342 Views
Registered: ‎09-10-2008

Re: Linux I2C Slave mode

Hi Andreas,

 

I didn't even realize the upstream supported slave mode. Looks like a newer feature.

 

I'm curious what your use case is for Linux as a slave.  You can look at the Xilinx SDK standalone drivers as they do support slave mode but I've got no experience with Linux as a slave.

 

Thanks

John

0 Kudos
7,330 Views
Registered: ‎11-17-2015

Re: Linux I2C Slave mode

Hi John,

 

our Zynq-PS is intended to be a I2C slave towards a HMI front panel.

Except for I2C, the HMI has no further interfaces. Additionally, it's not possible

to add another I2C slave IP in the PL.

 

Due to this I followed the approach with the Linux I2C slave API, which is indeed relatively new.

https://www.kernel.org/doc/Documentation/i2c/slave-interface

 

Finally, thanks for your hint about the standalone drivers.

Maybe I can inherit a few lines of code to implement the I2C slave API...

 

Thanks,

Andreas

0 Kudos