Skip to contentSkip to conversation

Linux MPC8xx I2C Interface

DISCUSSION Jeff Stevens 2 participants 2 messages Feb 3, 2004

lore
Share & tools
lore
#0 lore raw

I am working on a proprietary board which I have U-Boot and ELDK Linux ported over to. On the board there is an I2C bus that first connects to a PCA9556 (I2C Hub Controller at 0x18) & PCA9516 (I2C Octal Hub). So I need to be able to talk to the PCA9556 to set up the hub controller to activate one of the bus segments on the hub. I am able to read and write to all my I2C devices under U-Boot, but not under Linux. I have tried both compiling, and creating modules of i2c-core, i2c-dev, and i2c-algo-8xx. I also patched the kernel with the i2c patch which also gave me i2c-proc. I don't get any errors when I boot with them compiled into the kernel, or when I insert them as modules. However, I don't see any devices. What am I doing wrong? Also, I would rather talk to the I2C devices directly through the CPM interface, and not through the dev interface. Is there a way to do this? Is there any good documentation out there?

Thanks in advace,
Jeff Stevens

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 16 lines · In message <[email protected]> you wrote:

I am working on a proprietary board which I have U-Boot and ELDK Linux ported over to. On the board there is an I2C bus that first connects to a PCA9556 (I2C Hub Controller at 0x18) & PCA9516 (I2C Octal Hub). So I need to be able to talk to the PCA9556 to set up the hub controller to activate one of the bus segments on the hub. I am able to read and write to all my I2C devices under U-Boot, but not under Linux. I have tried both compiling, and creating modules of i2c-core, i2c-dev, and i2c-algo-8xx. I also patched the kernel with the i2c patch which also gave me i2c-proc. I don't get any errors when I boot with them compiled into the kernel, or when I insert them as modules. However, I don't see any devices. What am I doing wrong? Also, I would rather talk to the

Which kernel tree is this? Did you by any chance tried the sources from our CVS server?

Best regards,

Wolfgang Denk

--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] A conservative is a man with two perfectly good legs who has never
learned to walk. - Franklin D. Roosevelt

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/