cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
1,063 Views
Registered: ‎02-09-2017

how to use i2c-cadence driver in slave mode?

I find i2c-cadence driver has added slave mode according to the wiki page. http://www.wiki.xilinx.com/Cadence+I2C+Driver

 

However, the wiki page did not give the test procedure for the i2c-cadence in slave mode.

I know I should added CONFIG_I2C_SLAVE in the kernel config file. But I do not know how to set the i2c slave address and how to communicate with the master.

 

Can someone give me a test procedure just like the wiki page ? 

Thanks very much.

0 Kudos
4 Replies
Highlighted
Visitor
Visitor
994 Views
Registered: ‎04-10-2018

Hi Felven

I'm sorry i can not help you.I wonder are you a blogger of CSDN?? I think Your blog post is very helpful.

If you are, Can you help me with a question about enable the UART0 in the Zynq PS?

Any reply will be thanked.

 

0 Kudos
Highlighted
Moderator
Moderator
974 Views
Registered: ‎06-27-2017

Hi @felven,

 

You can use attached docuement to refer the steps on how to validate slave mode.

We have tested on Zynq Utlrascale and used aardvark adapter as master.

 

--------------------------------------------------------------------------------------------------------

Please mark post as accepted solution if provided information is helpful for you.

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
Adventurer
Adventurer
960 Views
Registered: ‎02-09-2017

What's your question?
0 Kudos
Highlighted
Adventurer
Adventurer
957 Views
Registered: ‎02-09-2017

thanks, but I do not have aardvark i2c master adapter.
0 Kudos