From: Jean Delvare <[EMAIL PROTECTED]> Date: Wed, 15 Oct 2008 14:52:28 +0200
> Hi David, > > On Thu, 21 Aug 2008 02:43:30 -0700 (PDT), David Miller wrote: > > > > i2c: Add bus addressing support. > > > > Some I2C bus controllers support the driving of multiple I2C bus > > segments (think PCI domains). > > > > For example, the pcf8584 variants on some sparc64 boxes can do this. > > They have an auxiliary 8-bit register that specifies the I2C bus each > > I2C operation acts upon. In the openfirmware device tree, the I2C > > client devices are described using an 8-bit bus address and a 10-bit > > I2C device address. > > Can you please point me to the part of the PCF8454 datasheet which > explains this? I can't find it. As I read the datasheet, the PCF8454 > supports a single I2C bus. It's a feature Sun added to their PCF chips. The register address is forwarded to an internal MUX they implemented which implements the register selecting the I2C bus. > Oh my, holy crap! I can't believe you dared to propose this. Propose an alternative solution that actually works and preserves compatability, as mine does. > I don't like this at all. This really looks like a custom hack to solve > the problem at hand without paying too much attention to compatibility > issues which I am certain will arise. Just to mention the first one > that comes to mind: access from user-space through i2c-dev, and > specifically i2c-tools. I got that working, read the patch my patch works, I was careful to keep things working. > What makes your setup fundamentally different from a motherboard with > more than one I2C bus (which is a rather common case)? Why don't you > simply register one i2c_adapter for each i2c bus segment? It doesn't work like that. All the bit banging goes through the one I2C controller, the bus it is accessing is simply changed behind it's back by that special register. _______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c
