public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* I2C_SMBUS_WORD Definition
@ 2008-01-18 20:30 Gary Chambers
       [not found] ` <Pine.LNX.4.64.0801181524040.14018-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Chambers @ 2008-01-18 20:30 UTC (permalink / raw)
  To: I2C Mailing List

All...

Please forgive my ignorance and naivete, but will someone please tell me 
why i2c_smbus_read_word doesn't exist?  Thank you very much!

-- 
Gary Chambers

// -------------------------------------
// Advanced SatComm Systems & Operations
// MIT Lincoln Laboratory / 781-981-0957
// Lexington, Massachusetts
// Nothing fancy and nothing Microsoft
// -------------------------------------

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

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

* Re: I2C_SMBUS_WORD Definition
       [not found] ` <Pine.LNX.4.64.0801181524040.14018-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
@ 2008-01-19 16:49   ` Jean Delvare
       [not found]     ` <20080119174950.1f12f3c0-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Jean Delvare @ 2008-01-19 16:49 UTC (permalink / raw)
  To: Gary Chambers; +Cc: I2C Mailing List

Hi Gary,

On Fri, 18 Jan 2008 15:30:56 -0500 (EST), Gary Chambers wrote:
> Please forgive my ignorance and naivete, but will someone please tell me 
> why i2c_smbus_read_word doesn't exist?  Thank you very much!

i2c_smbus_read_word_data() does exist, isn't it what you are looking
for? It corresponds to a "read word" transaction in SMBus terminology.

-- 
Jean Delvare

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

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

* Re: I2C_SMBUS_WORD Definition
       [not found]     ` <20080119174950.1f12f3c0-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2008-01-19 20:55       ` Gary Chambers
       [not found]         ` <Pine.LNX.4.64.0801191539500.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Chambers @ 2008-01-19 20:55 UTC (permalink / raw)
  To: Jean Delvare; +Cc: I2C Mailing List

Jean...

Thanks for the reply!

> i2c_smbus_read_word_data() does exist, isn't it what you are looking
> for? It corresponds to a "read word" transaction in SMBus terminology.

i2c_smbus_read_word_data() implies (to me, anyway) a required 
data/command in the transaction.  Some of the devices with which we deal 
apparently cannot tolerate this extra 8 bits on the bus when attempting 
to read a word from them.  The bus analyzer also indicates those extra 
bits are present.  I'm doing my work through the dev interface, and our 
functionality matrix seems to indicate that I cannot use pure I2C.  Any 
thoughts or insight?  Thanks very much!

-- 
Gary Chambers

// -------------------------------------
// Advanced SatComm Systems & Operations
// MIT Lincoln Laboratory / 781-981-0957
// Lexington, Massachusetts
// Nothing fancy and nothing Microsoft
// -------------------------------------

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

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

* Re: I2C_SMBUS_WORD Definition
       [not found]         ` <Pine.LNX.4.64.0801191539500.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
@ 2008-01-20  9:23           ` Jean Delvare
       [not found]             ` <20080120102335.5cc6a936-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Jean Delvare @ 2008-01-20  9:23 UTC (permalink / raw)
  To: Gary Chambers; +Cc: I2C Mailing List

Hi Gary,

On Sat, 19 Jan 2008 15:55:42 -0500 (EST), Gary Chambers wrote:
> > i2c_smbus_read_word_data() does exist, isn't it what you are looking
> > for? It corresponds to a "read word" transaction in SMBus terminology.
> 
> i2c_smbus_read_word_data() implies (to me, anyway) a required 
> data/command in the transaction.

That's correct, the "read word" SMBus transaction first writes a
"command" byte to the device (typically a register address in the
device) before reading two bytes from it.

>                                   Some of the devices with which we deal 
> apparently cannot tolerate this extra 8 bits on the bus when attempting 
> to read a word from them.  The bus analyzer also indicates those extra 
> bits are present.  I'm doing my work through the dev interface, and our 
> functionality matrix seems to indicate that I cannot use pure I2C.  Any 
> thoughts or insight?  Thanks very much!

Well, reading two bytes from a device directly doesn't correspond to any
SMBus transaction, so if your bus controller doesn't support I2C
messaging, I fear that you're pretty much stuck. What adapter is this?
And what chip are you trying to talk to?

-- 
Jean Delvare

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

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

* Re: I2C_SMBUS_WORD Definition
       [not found]             ` <20080120102335.5cc6a936-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2008-01-21 19:17               ` Gary Chambers
       [not found]                 ` <Pine.LNX.4.64.0801211310050.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Chambers @ 2008-01-21 19:17 UTC (permalink / raw)
  To: Jean Delvare; +Cc: I2C Mailing List

Jean...

> Well, reading two bytes from a device directly doesn't correspond to 
> any SMBus transaction, so if your bus controller doesn't support I2C 
> messaging, I fear that you're pretty much stuck.

How authoritative is the functionality matrix?  My call to it returns 
0xcfffc006 -- no pure I2C, but it appears that I can perform I2C block 
writes and reads.

> What adapter is this?  And what chip are you trying to talk to?

It's a [seemingly] simple TI DAC5571 (single-channel, 8-bit DAC) on an 
evaluation module.

Thanks for your (and the list's) patience while I gain some footing with 
this.

-- 
Gary Chambers

// -------------------------------------
// Advanced SatComm Systems & Operations
// MIT Lincoln Laboratory / 781-981-0957
// Lexington, Massachusetts
// Nothing fancy and nothing Microsoft
// -------------------------------------

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

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

* Re: I2C_SMBUS_WORD Definition
       [not found]                 ` <Pine.LNX.4.64.0801211310050.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
@ 2008-01-22 14:01                   ` Jean Delvare
       [not found]                     ` <20080122150115.03eed1b6-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Jean Delvare @ 2008-01-22 14:01 UTC (permalink / raw)
  To: Gary Chambers; +Cc: I2C Mailing List

Hi Gary,

On Mon, 21 Jan 2008 14:17:00 -0500 (EST), Gary Chambers wrote:
> > Well, reading two bytes from a device directly doesn't correspond to 
> > any SMBus transaction, so if your bus controller doesn't support I2C 
> > messaging, I fear that you're pretty much stuck.
> 
> How authoritative is the functionality matrix?  My call to it returns 
> 0xcfffc006 -- no pure I2C, but it appears that I can perform I2C block 
> writes and reads.

The functionality matrix can be trusted in general, but if you'd tell
me what i2c adapter driver this is, I could double-check. Also note
that "i2cdetect -F" can list the functionality in a much more
human-friendly format.

> > What adapter is this?  And what chip are you trying to talk to?
> 
> It's a [seemingly] simple TI DAC5571 (single-channel, 8-bit DAC) on an 
> evaluation module.

Are you sure that the TI DAC5571 DAC value can be read at all? I've
downloaded the datasheet and all it mentions is writing to the DAC5571,
not reading from it.

> Thanks for your (and the list's) patience while I gain some footing with 
> this.

You're welcome.

-- 
Jean Delvare

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

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

* DAC5571
       [not found]                     ` <20080122150115.03eed1b6-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2008-01-23 20:48                       ` Gary Chambers
       [not found]                         ` <Pine.LNX.4.64.0801231538250.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Chambers @ 2008-01-23 20:48 UTC (permalink / raw)
  To: Jean Delvare; +Cc: I2C Mailing List

Jean...

> Are you sure that the TI DAC5571 DAC value can be read at all? I've 
> downloaded the datasheet and all it mentions is writing to the 
> DAC5571, not reading from it.

It appears that you're correct!  I was lead down the primrose path by 
someone who assumed it was a device which provided read access to the 
analog output setting.  My cover is blown -- it's now official that 
everyone knows definitively that I know little to nothing about what I'm 
doing.  :)

I don't know how beneficial it will be, but I have nearly completed a 
driver for the DAC5571.  We're currently using Linux 2.4 in our embedded 
project, but we may soon be upgrading to a 2.6 kernel.

> The functionality matrix can be trusted in general, but if you'd tell 
> me what i2c adapter driver this is, I could double-check. Also note

We're using the tqm8260Algorithm-bit adapter.  Are you familiar with it?

-- 
Gary Chambers

// -------------------------------------
// Advanced SatComm Systems & Operations
// MIT Lincoln Laboratory / 781-981-0957
// Lexington, Massachusetts
// Nothing fancy and nothing Microsoft
// -------------------------------------

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

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

* Re: DAC5571
       [not found]                         ` <Pine.LNX.4.64.0801231538250.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
@ 2008-01-26  9:37                           ` Jean Delvare
  0 siblings, 0 replies; 8+ messages in thread
From: Jean Delvare @ 2008-01-26  9:37 UTC (permalink / raw)
  To: Gary Chambers; +Cc: I2C Mailing List

Hi Gary,

On Wed, 23 Jan 2008 15:48:09 -0500 (EST), Gary Chambers wrote:
> I don't know how beneficial it will be, but I have nearly completed a 
> driver for the DAC5571.  We're currently using Linux 2.4 in our embedded 
> project, but we may soon be upgrading to a 2.6 kernel.

A Linux 2.4 driver obviously won't make it upstream, but a Linux 2.6
driver could. You can always post your code on the i2c list, where it
will be archived for other users to look at. If there are more users
interested, the driver can be reviewed and merged upstream.

> (...)
> We're using the tqm8260Algorithm-bit adapter.  Are you familiar with it?

Never heard of that one, it's not upstream as far as I can see.

-- 
Jean Delvare

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

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

end of thread, other threads:[~2008-01-26  9:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18 20:30 I2C_SMBUS_WORD Definition Gary Chambers
     [not found] ` <Pine.LNX.4.64.0801181524040.14018-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
2008-01-19 16:49   ` Jean Delvare
     [not found]     ` <20080119174950.1f12f3c0-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-01-19 20:55       ` Gary Chambers
     [not found]         ` <Pine.LNX.4.64.0801191539500.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
2008-01-20  9:23           ` Jean Delvare
     [not found]             ` <20080120102335.5cc6a936-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-01-21 19:17               ` Gary Chambers
     [not found]                 ` <Pine.LNX.4.64.0801211310050.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
2008-01-22 14:01                   ` Jean Delvare
     [not found]                     ` <20080122150115.03eed1b6-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-01-23 20:48                       ` DAC5571 Gary Chambers
     [not found]                         ` <Pine.LNX.4.64.0801231538250.18738-kD1P2mHmSlqz6L9v6lnKkIdd74u8MsAO@public.gmane.org>
2008-01-26  9:37                           ` DAC5571 Jean Delvare

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