public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* Complex I2C device
@ 2008-01-30 14:46 Rodolfo Giometti
       [not found] ` <20080130144657.GA9444-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Rodolfo Giometti @ 2008-01-30 14:46 UTC (permalink / raw)
  To: i2c-GZX6beZjE8VD60Wz+7aTrA

Hello,

my custom board has a «complex» device... let me explain better: it's
formed by a custom I2C device and an I/O extender PCA9539.

Ascii art:


                +---------+
          --+---+         |
            |   | PCA9539 |
            |   +---------+
Bus I2C ->> |      | | |
            |      | | | <<--- GPIOs
            |      | | |
            |   +---------+
            +---+         |
                |   CHIP  |
                +---------+  

Some input GPIOs of CHIP are managed by the PCA9539. So fisically I
have two devices but logically they are merged together into one.

I can send commands to CHIP by both I2C bus and the GPIOs, which in
turn are controlled by the PCA9539.

Can you please suggest me the best way to manage this problem? My
solution was to provide PCA9539's driver of some exported symbols and
using them into the CHIP's driver. Is that right? Or, can I "call" (in
any way) PCA9539 driver's methods from CHIP's driver?

Thanks,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org
Linux Device Driver                             giometti-kaDoWcXyVrEAvxtiuMwx3w@public.gmane.org
Embedded Systems                     		giometti-k2GhghHVRtY@public.gmane.org
UNIX programming                     phone:     +39 349 2432127

_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-19 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 14:46 Complex I2C device Rodolfo Giometti
     [not found] ` <20080130144657.GA9444-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2008-01-30 20:32   ` Guennadi Liakhovetski
     [not found]     ` <Pine.LNX.4.64.0801302126150.6547-0199iw4Nj15frtckUFj5Ag@public.gmane.org>
2008-01-31  9:16       ` Rodolfo Giometti
     [not found]         ` <20080131091619.GI9444-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2008-02-19 13:21           ` Jean Delvare
     [not found]             ` <20080219142133.2e022910-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-02-19 14:10               ` Rodolfo Giometti
     [not found]                 ` <20080219141049.GD8190-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2008-02-19 14:23                   ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox