Skip to contentSkip to conversation

i2c support for MPC 8247

DISCUSSION Daniel Ng 2 participants 3 messages Dec 4, 2008 – Dec 7, 2008

lore
Share & tools
lore

Daniel Ng

author
#0 lore raw

Hi,

We were successfully using drivers/i2c/busses/i2c-mpc8260.c for I2C support on a MPC8247 in Linux 2.6.14.

Now, we are wanting to upgrade our embedded system to Linux 2.6.24.

However, in 2.6.24, the file i2c-mpc8260.c doesn't exist. There is a i2c-mpc.c but this doesn't seem to handle the MPC8247. This is because I get the following message when I try to access the I2C device:

"/dev/i2c-0: No such device"

Perhaps the i2c-mpc.c driver uses a different device node? There is nothing in the i2c-mpc.c file which specifies a particular dev node.

Is I2C supported on the MPC8247 in Linux 2.6.24?

If so, what is the appropriate driver file?

Cheers,
Daniel

#1 lore raw

Hi Daniel,

Quoted 11 lines · On Thursday 04 December 2008 02:49:45 Daniel Ng wrote:

Hi,

We were successfully using drivers/i2c/busses/i2c-mpc8260.c for I2C support on a MPC8247 in Linux 2.6.14.

Now, we are wanting to upgrade our embedded system to Linux 2.6.24.

However, in 2.6.24, the file i2c-mpc8260.c doesn't exist. There is a i2c-mpc.c but this doesn't seem to handle the MPC8247. This is because I get the following message when I try to access the I2C device:

Quoted 8 lines

"/dev/i2c-0: No such device"

Perhaps the i2c-mpc.c driver uses a different device node? There is nothing in the i2c-mpc.c file which specifies a particular dev node.

Is I2C supported on the MPC8247 in Linux 2.6.24?

If so, what is the appropriate driver file?

The MPC8247 I2C controller is supported by the i2c-cpm driver, introduced in 2.6.27. It shouldn't be difficult to backport the driver to 2.6.24. Please note that the driver only supports the powerpc architecture and won't work on ppc kernels.

Alternatively, you could port the i2c-mpc8260 driver to 2.6.24.

Best regards,

Signature · 9 lines
Laurent Pinchart
CSE Semaphore Belgium

Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75
author
#2 lore raw
Quoted 3 lines · Laurent Pinchart <laurentp <at> cse-semaphore.com> writes:

The MPC8247 I2C controller is supported by the i2c-cpm driver, introduced in 2.6.27. It shouldn't be difficult to backport the driver to 2.6.24. Please note that the driver only supports the powerpc architecture and won't work

on

Quoted 4 lines

ppc kernels.

Alternatively, you could port the i2c-mpc8260 driver to 2.6.24.

Great! Thanks for the info Laurent.

Daniel