Skip to contentSkip to conversation

i2c: omap: highspeed only over 1000mhz]

PATCH New Nishanth Menon 1 participant 1 message Oct 20, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: omap: highspeed only over 1000mhz]

Looping in list. my html mail bounced :(

-------- Original Message --------
Subject: Re: [PATCH] i2c: omap: highspeed only over 1000mhz
Date: Mon, 20 Oct 2008 08:18:20 -0500
From: Nishanth Menon <[email protected]>
To: [email protected]
CC: [email protected], Ben Dooks <[email protected]>, Tony
Lindgren <[email protected]>
References: <[email protected]>
<[email protected]> <[email protected]> <[email protected]>

Felipe Balbi said the following on 10/20/2008 07:53 AM:

Quoted 38 lines · ext Nishanth Menon
Quoted 30 lines

Felipe,
Felipe Balbi said the following on 10/20/2008 05:26 AM:

Quoted 12 lines

up to 1000khz it's Fast Mode+, not highspeed.

---
 drivers/i2c/busses/i2c-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-omap.c +0 -0
index a999606..53d6244 100644

drivers/i2c/busses/i2c-omap.c static int omap_i2c_init(struct omap_i2c_dev *dev) · line 301

Quoted 7 lines
drivers/i2c/busses/i2c-omap.c +1 -1
@@ -296,7 +296,7 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
 		psc = psc - 1;
 
 		/* If configured for High Speed */
-		if (dev->speed > 400) {
+		if (dev->speed > 1000) {
 
 

Ref: http://www.nxp.com/acrobat_download/literature/9398/39340011.pdf
Page 4:
"Serial, 8-bit oriented, bi-directional data transfers can be made at *up to* 100 kbit/s in the Standard-mode, *up to* 400 kbit/s in the Fast-mode, or *up to* 3.4 Mbit/s in the High-speed mode"

Quoted 2 lines

Why do say high speed is >1000khz?

http://www.standardics.nxp.com/support/documents/i2c/pdf/i2c.bus.specification.pdf

section 5.2:

Quoted 10 lines

"Fast-mode Plus (Fm+) devices offer an increase in I2C-bus transfer speeds and total bus capacitance. Fm+ devices can transfer information at bit rates of up to 1 Mbit/s, yet they remain fully downward compatible with Fast- or Standard-mode devices for bidirectional communication in a mixed-speed bus system. The same serial bus protocol and data format is maintained as with the Fast- or Standard-mode system. Fm+ devices also offer increased drive current over Fast- or Standard-mode devices allowing them to drive longer and/or more heavily loaded buses so that bus buffers do not need
to be used"

Aaah, rev 3 of the spec! However, OMAP TRM says:
" three multimaster HS I2C controllers have the following features:
• Compliance with Philips I2C specification version 2.1
"

So does this change make sense? FM+ devices might actually be confusing the OMAP3430?
Regards,
Nishanth Menon

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html