public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Walls <awalls@radix.net>
To: Jean Delvare <khali@linux-fr.org>
Cc: Matthias Fechner <idefix@fechner.net>,
	linux-media@vger.kernel.org, Jarod Wilson <jarod@wilsonet.com>,
	"Igor M. Liplianin" <liplianin@me.by>
Subject: Re: IR Receiver on an Tevii S470
Date: Sun, 22 Nov 2009 19:17:59 -0500	[thread overview]
Message-ID: <1258935479.1896.29.camel@localhost> (raw)
In-Reply-To: <20091122213230.38650f8d@hyperion.delvare>

On Sun, 2009-11-22 at 21:32 +0100, Jean Delvare wrote:
> On Sun, 22 Nov 2009 21:25:27 +0100, Matthias Fechner wrote:
> > Hi Andy,
> > 
> > Andy Walls wrote:
> > >
> > > # modprobe cx23885
> > > # modprobe i2c-dev
> > > # i2c-detect -l
> > > (to list all the i2c buses, including cx23885 mastered i2c buses)
> > >   
> > i2c-0    smbus         SMBus nForce2 adapter at 4d00       SMBus adapter
> > i2c-1    i2c           cx23885[0]                          I2C adapter
> > i2c-2    i2c           cx23885[0]                          I2C adapter
> > i2c-3    i2c           cx23885[0]                          I2C adapter
> > i2c-4    i2c           NVIDIA i2c adapter                  I2C adapter
> > i2c-5    i2c           NVIDIA i2c adapter                  I2C adapter
> > i2c-6    i2c           NVIDIA i2c adapter                  I2C adapter
> > 
> > > # i2c-detect -y N
> > > (to show the addresses in use on bus # N: only query the cx23885 buses)
> > >
> > >   
> > vdrhd1 ~ # i2cdetect -y 1
> >      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
> > 00:          -- -- -- -- -- -- -- -- -- -- -- -- --
> > 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 30: 30 31 32 33 34 35 36 37 -- -- -- -- -- -- -- --
> > 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
> > 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 70: -- -- -- -- -- -- -- --                        
> > vdrhd1 ~ # i2cdetect -y 2
> >      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
> > 00:          -- -- -- -- -- -- -- -- -- -- -- -- --
> > 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 30: 30 31 32 33 34 35 36 37 -- -- -- -- -- -- -- --
> > 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
> > 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
> > 70: -- -- -- -- -- -- -- --                        
> > vdrhd1 ~ # i2cdetect -y 3
> >      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
> > 00:          -- -- -- -- -- -- -- -- -- -- -- -- --
> > 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 30: 30 31 32 33 34 35 36 37 -- -- -- -- -- -- -- --
> > 40: -- -- -- -- 44 -- -- -- -- -- -- -- 4c -- -- --
> > 50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
> > 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > 70: -- -- -- -- -- -- -- --                        
> 
> The fact that 0x30-0x37 and 0x50-0x5f all reply suggest that the bus
> driver erroneously returns success to "SMBus receive byte" transactions
> even when no device acks. This is a bug which should get fixed. If you
> point me to the I2C adapter driver code, I can take a look.

Jean,

Although Igor's information makes the original need for this moot, here
is the i2c adapter driver code:

http://linuxtv.org/hg/v4l-dvb/file/8bff7e6c44d4/linux/drivers/media/video/cx23885/cx23885-i2c.c

Note the CX2388[578] chips have 3 I2C masters, 2 for external buses, and
1 internal "on silicon" bus which the driver sets up as the 3rd bus.
The internal bus should at least have devices at 0x44 and 0x4c as
confirmed above.  I'll note the comment in this file, that indicates the
"on silicon" I2C bus runs at 1.95 MHz:

http://linuxtv.org/hg/v4l-dvb/file/8bff7e6c44d4/linux/drivers/media/video/cx23885/cx23885-core.c


The TeVii S470 card had what looked like at serial I2C EEPROM with the
A0, A1, and A2 pins all grounded, so I assume it is at 0x50 on one of
the CX23885's external I2C buses.

Regards,
Andy


> In the meantime, you can try i2cdetect -q to force i2cdetect to use
> "SMBus quick" commands for all the addresses. Beware though that some
> chips are known to not like it at all (in particular the infamous
> AT24RF08... not that I expect to ever see one on a TV adapter but you
> never know.)
> 
> At least the above scan has already found 3 chips.
> 



  reply	other threads:[~2009-11-23  0:19 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18 20:31 IR Receiver on an Tevii S470 Matthias Fechner
2009-11-21 17:10 ` Matthias Fechner
2009-11-21 20:41   ` Andy Walls
2009-11-21 22:19     ` Jonas Kvinge
2009-11-22  1:03     ` Igor M. Liplianin
2009-11-22  2:48       ` Andy Walls
2009-11-22 18:08         ` Matthias Fechner
2009-11-22 20:11           ` Andy Walls
2009-11-22 20:25             ` Matthias Fechner
2009-11-22 20:32               ` Jean Delvare
2009-11-23  0:17                 ` Andy Walls [this message]
2009-11-23  8:54                   ` Jean Delvare
2009-11-25  0:25                     ` Andy Walls
2009-11-26 16:43                       ` Matthias Fechner
2009-11-29 14:22                         ` Andy Walls
2009-11-22 20:26             ` Jean Delvare
2009-11-22 22:29             ` Igor M. Liplianin
2009-11-22 23:40               ` Andy Walls
2009-12-06 21:40       ` Andy Walls
2009-12-06 22:36         ` Matthias Fechner
2009-12-07  1:23         ` Igor M. Liplianin
2009-12-07  3:35           ` Andy Walls
2009-12-08 17:59             ` Igor M. Liplianin
2009-12-09 11:47               ` Andy Walls
2009-12-09 15:54                 ` Igor M. Liplianin
2009-12-10  1:12                   ` Andy Walls
2009-12-10 16:16                     ` Igor M. Liplianin
2009-12-11  2:32                       ` Andy Walls
  -- strict thread matches above, loose matches on Subject: below --
2009-11-23  0:15 Igor M. Liplianin
2009-12-12  0:30 Igor M. Liplianin
2009-12-12  1:00 ` Andy Walls
2009-12-12  1:42   ` Igor M. Liplianin
2009-12-12  2:58     ` Andy Walls
2009-12-12 11:49       ` Igor M. Liplianin
2009-12-12 14:15         ` Andy Walls
2009-12-12 16:01           ` Igor M. Liplianin
2009-12-12 16:22           ` Igor M. Liplianin
2009-12-12 16:59             ` Andy Walls
2009-12-31 12:46               ` Guillem Solà Aranda
2009-12-31 15:23                 ` Igor M. Liplianin
2010-01-06 21:21   ` Andreas Tschirpke
2010-01-07  0:44     ` Andy Walls

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1258935479.1896.29.camel@localhost \
    --to=awalls@radix.net \
    --cc=idefix@fechner.net \
    --cc=jarod@wilsonet.com \
    --cc=khali@linux-fr.org \
    --cc=linux-media@vger.kernel.org \
    --cc=liplianin@me.by \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox