* sub devices sharing same i2c address
@ 2009-06-23 18:10 Karicheri, Muralidharan
2009-06-23 19:10 ` Daniel Glöckner
0 siblings, 1 reply; 4+ messages in thread
From: Karicheri, Muralidharan @ 2009-06-23 18:10 UTC (permalink / raw)
To: linux-media@vger.kernel.org
Hi,
I am having to switch between two sub devices that shares the same i2c address. First one is TVP5146 and the other is MT9T031. The second has a i2c switch and the evm has a data path switch. So in our internal release we could switch capture inputs between the two by configuring the above two switches. Right now, I am loading up the i2c sub devices using the new API (added by Hans) v4l2_i2c_new_subdev_board(). But since the i2c addresses are shared, it fails for the second sub device. Does someone know a way to get around this so that I could load up both sub devices and switch between them for capture?
Murali Karicheri
Software Design Engineer
Texas Instruments Inc.
Germantown, MD 20874
Phone : 301-515-3736
email: m-karicheri2@ti.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sub devices sharing same i2c address
2009-06-23 18:10 sub devices sharing same i2c address Karicheri, Muralidharan
@ 2009-06-23 19:10 ` Daniel Glöckner
2009-06-24 17:44 ` Karicheri, Muralidharan
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Glöckner @ 2009-06-23 19:10 UTC (permalink / raw)
To: Karicheri, Muralidharan; +Cc: linux-media@vger.kernel.org
On Tue, Jun 23, 2009 at 01:10:11PM -0500, Karicheri, Muralidharan wrote:
> I am having to switch between two sub devices that shares the same i2c
> address. First one is TVP5146 and the other is MT9T031. The second has
> a i2c switch and the evm has a data path switch.
You could try Rodolfo Giometti's i2c bus multiplexing code:
http://i2c.wiki.kernel.org/index.php/I2C_bus_multiplexing
It will create a new i2c_adapter for each output of the i2c switch
and the switch is handled transparently when accessing the devices.
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: sub devices sharing same i2c address
2009-06-23 19:10 ` Daniel Glöckner
@ 2009-06-24 17:44 ` Karicheri, Muralidharan
2009-06-24 19:23 ` Daniel Glöckner
0 siblings, 1 reply; 4+ messages in thread
From: Karicheri, Muralidharan @ 2009-06-24 17:44 UTC (permalink / raw)
To: Daniel Glöckner; +Cc: linux-media@vger.kernel.org
Daniel,
Thanks for responding....
Any reason why this is not added to upstream ? I think this is exactly what is needed to support this.
Murali Karicheri
Software Design Engineer
Texas Instruments Inc.
Germantown, MD 20874
Phone : 301-515-3736
email: m-karicheri2@ti.com
>-----Original Message-----
>From: Daniel Glöckner [mailto:daniel-gl@gmx.net]
>Sent: Tuesday, June 23, 2009 3:11 PM
>To: Karicheri, Muralidharan
>Cc: linux-media@vger.kernel.org
>Subject: Re: sub devices sharing same i2c address
>
>On Tue, Jun 23, 2009 at 01:10:11PM -0500, Karicheri, Muralidharan wrote:
>> I am having to switch between two sub devices that shares the same i2c
>> address. First one is TVP5146 and the other is MT9T031. The second has
>> a i2c switch and the evm has a data path switch.
>
>You could try Rodolfo Giometti's i2c bus multiplexing code:
>http://i2c.wiki.kernel.org/index.php/I2C_bus_multiplexing
>
>It will create a new i2c_adapter for each output of the i2c switch
>and the switch is handled transparently when accessing the devices.
>
> Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-24 19:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-23 18:10 sub devices sharing same i2c address Karicheri, Muralidharan
2009-06-23 19:10 ` Daniel Glöckner
2009-06-24 17:44 ` Karicheri, Muralidharan
2009-06-24 19:23 ` Daniel Glöckner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox