We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:xu4_hardware_hsi2c [2017/04/26 14:48]
charles.park [Table]
en:xu4_hardware_hsi2c [2017/04/26 14:57] (current)
charles.park
Line 1: Line 1:
-====== HS-I2C ======+====== HS-I2C ​(HighSpeed) ​======
 This page introduces how you can I2C interface using Expansion Board. This page introduces how you can I2C interface using Expansion Board.
  
 The Expansion Board have two I2C devices.\\ The Expansion Board have two I2C devices.\\
-You can use the devices via H/W I2C(I2C-A : HSI2C).+You can use the devices via H/W I2C(I2C-A : HS-I2C).
  
-**H/W I2C(I2C-A : HSI2C)**+{{:​en:​xu4:​xu4_hsi2c_with_expansion.png?​700|}} 
 + 
 +**H/W I2C(I2C-A : HS-I2C)**
 ^  Kernel 3.10.y\\ (node name)  ^  Kernel 4.9.y\\ (node name)  ^  Pin Number\\ (XU4-CON11) ​ ^  Net Name            ^  Export Number ​ ^  Description ​ ^ ^  Kernel 3.10.y\\ (node name)  ^  Kernel 4.9.y\\ (node name)  ^  Pin Number\\ (XU4-CON11) ​ ^  Net Name            ^  Export Number ​ ^  Description ​ ^
 |  /​dev/​i2c-1 ​                  ​| ​ /​dev/​i2c-5 ​                 |  4                         ​| ​ GPA2[2](I2C_5.SDA) ​ |  187            |  SDA          | |  /​dev/​i2c-1 ​                  ​| ​ /​dev/​i2c-5 ​                 |  4                         ​| ​ GPA2[2](I2C_5.SDA) ​ |  187            |  SDA          |
 |  :::                          |  :::                         ​| ​ 6                         ​| ​ GPA2[3](I2C_5.SCL) ​ |  188            |  SCL          | |  :::                          |  :::                         ​| ​ 6                         ​| ​ GPA2[3](I2C_5.SCL) ​ |  188            |  SCL          |
  
-{{:​en:​xu4:​xu4_hsi2c_with_expansion.png?​700|}} 
  
-{{http://dn.odroid.com/wiki_image/xu4/​xu4_hw_hsi2c.png|}}+<note warning>​I2C-A(HS-I2C) doesn'​t work with i2cdetect command on Kenrnel 3.10.y</note> 
 + 
 +  * Using the H/W I2C(I2C-A : HS-I2C) with Expansion BoardI2C Physical Address : 0x12CB0000 
  
-** Using the HW-HSI2C(/​dev/​i2c-1) with Expansion Board. I2C Physical Address : 0x12CB0000 ** +**HW-HSI2C ​Test Code**
-** Must Read : Can't use SMBus Quick Write command on this bus.(Not support i2cdetect) ​**+
  
-HW-HSI2C Test Code 
 <file c xu4_hsi2c.c>​ <file c xu4_hsi2c.c>​
 //​------------------------------------------------------------------------------------------------------------ //​------------------------------------------------------------------------------------------------------------
Line 112: Line 114:
 // //
 //​------------------------------------------------------------------------------------------------------------ //​------------------------------------------------------------------------------------------------------------
-// const char *i2cHandleNode = "/​dev/​i2c-3";+// kernel 4.9.y device node 
 +// const char *i2cHandleNode = "/​dev/​i2c-5"; 
 + 
 +// kernel 3.10.y device node
 const char *i2cHandleNode = "/​dev/​i2c-1";​ const char *i2cHandleNode = "/​dev/​i2c-1";​
 static ​ int i2c_fd = -1; static ​ int i2c_fd = -1;
en/xu4_hardware_hsi2c.1493187495.txt.gz · Last modified: 2017/04/26 14:48 by charles.park
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0