[i2c] Doubts related to I2c Subsystem

kishore kadiyala kishorek.kadiyala at gmail.com
Thu May 3 21:10:31 CEST 2007


hi ,

Can any one please clarify the Following doubts regarding I2c Subsystem

1) Regarding I2c-dev interface
     a)I have  a setup with a codec Chip interfaced with the processor
through I2c bus.
        My doubt is when i open a /dev/i2c-0 twice i will be getting a
file-descriptor say fd1 & fd2.
        Does fd1 and fd2 mean different clients?
       If so how can a Single Slave can have different Clients.?
     b) USing Dev interface can I Communicate with two slaves on i2c bus
interfaced with processor?

2)Regarding Chip driver

        i have a setup with two different slave devices say S1 & S2 on I2c
bus interface towards processor .
      Using Chip driver with Slave address mentioned in normal_i2c[] =
{s1_address,s2_address ,I2C_CLIENT_END };
       Is it possible to communicate with the 2 slave devices .?
       If not Do I have to write Two different chip drivers for two slaves?

3) Regarding Sub system Layering

          What is the Role of I2c_driver in the Subsytem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/i2c/attachments/20070503/e0cb9f4b/attachment.html 


More information about the i2c mailing list