cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
7,508 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
Highlighted
Xilinx Employee
Xilinx Employee
7,494 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
Highlighted
7,482 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