MPC8260 I2C Problem
I download the linux kernel 2.6.19 from
ftp://ftp.denx.de/pub/linux/ site.
When I add mpc8260 I2C driver to Linux kernel 2.6.19, the init function looks like that
static int __init fsl_i2c_init(void)
{
return driver_register(&fsl_i2c_driver);
}I set the debug on, and found that the fsl_i2c_probe() function is never called, so there is not I2C device enabled, and the user space function open("/dev/i2c-0",O_RDWR) always return error. I set something wrong? Could somebody help me?
____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of
Quoted 11 lines
jimmy liu
Sent: Thursday, January 25, 2007 11:22 AM
To: embedded linuxppc
Subject: MPC8260 I2C Problem
=20
I download the linux kernel 2.6.19 from ftp://ftp.denx.de/pub/linux/ site.
=20
When I add mpc8260 I2C driver to Linux kernel 2.6.19, the init function looks like that
static int__initfsl_i2c_init(void)
Quoted 8 lines
{ return driver_register(&fsl_i2c_driver); }I set the debug on, and found that the
fsl_i2c_probe()function is never called, so there is not I2C device enabled, and the user space functionopen("/dev/i2c-0",O_RDWR)always return error. I set something wrong? Could somebody help me?
Do you have an fsl-i2c node in your device tree?
- Leo
hi Leo
You must check the platform bus.
My MPC8270 board's tree is follow.
MPC8270:/sys/bus/platform# tree . =2E |-- devices | |-- fsl-cpm-fcc.1 -> ../../../devices/platform/fsl-cpm-fcc.1 | |-- fsl-cpm-fcc.2 -> ../../../devices/platform/fsl-cpm-fcc.2 | |-- fsl-cpm-fcc.3 -> ../../../devices/platform/fsl-cpm-fcc.3 | |-- fsl-cpm-i2c.1 -> ../../../devices/platform/fsl-cpm-i2c.1 | |-- fsl-cpm-mcc.1 -> ../../../devices/platform/fsl-cpm-mcc.1 | |-- fsl-cpm-scc.1 -> ../../../devices/platform/fsl-cpm-scc.1 | |-- fsl-cpm-scc.2 -> ../../../devices/platform/fsl-cpm-scc.2 | |-- fsl-cpm-scc.3 -> ../../../devices/platform/fsl-cpm-scc.3 | |-- fsl-cpm-scc.4 -> ../../../devices/platform/fsl-cpm-scc.4 | |-- fsl-cpm-smc.1 -> ../../../devices/platform/fsl-cpm-smc.1 | |-- fsl-cpm-smc.2 -> ../../../devices/platform/fsl-cpm-smc.2 | |-- fsl-cpm-spi.1 -> ../../../devices/platform/fsl-cpm-spi.1
- hirohata
In the arch\ppc\syslib\pq2_devices.c, there has the device descriptions.
Do I still need manually create the plateform bus tree?
Quoted 3 lines · --- Li Yang-r58472 <[email protected]> wrote:
Quoted 2 lines
-----Original Message-----
From:
Quoted 2 lines
Quoted 1 line
[mailto:[email protected]]
Quoted 21 lines
On
Behalf OfQuoted 9 lines
jimmy liu
Sent: Thursday, January 25, 2007 11:22 AM
To: embedded linuxppc
Subject: MPC8260 I2C ProblemI download the linux kernel 2.6.19 from
ftp://ftp.denx.de/pub/linux/ site.When I add mpc8260 I2C driver to Linux kernel
2.6.19,
Quoted 6 lines
the init function looks like that
static int__initfsl_i2c_init(void){ return driver_register(&fsl_i2c_driver); }I set the debug on, and found that the
fsl_i2c_probe()Quoted 1 line
function is never called, so there is not I2C
device
Quoted 9 lines
Quoted 2 lines
enabled, and the user space function
open("/dev/i2c-0",O_RDWR)always return error. Iset
Quoted 1 line
something wrong? Could somebody help me?
Do you have an fsl-i2c node in your device tree?
- Leo
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
You are talking about the wrong i2c driver. For 8260, you need a cpm i2c driver, not the i2c-mpc driver.
- Leo
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of
Quoted 45 lines
jimmy liu
Sent: Friday, January 26, 2007 1:06 AM
To: embedded linuxppc
Subject: RE: MPC8260 I2C Problem
=20
In the arch\ppc\syslib\pq2_devices.c, there has the device descriptions.
Do I still need manually create the plateform bus tree?
=20
--- Li Yang-r58472 <[email protected]> wrote:
=20Quoted 3 lines
Quoted 2 lines
-----Original Message-----
From:Quoted 2 lines
Quoted 1 line
[mailto:[email protected]]
Quoted 26 lines
On
Behalf OfQuoted 9 lines
jimmy liu
Sent: Thursday, January 25, 2007 11:22 AM
To: embedded linuxppc
Subject: MPC8260 I2C ProblemI download the linux kernel 2.6.19 from
ftp://ftp.denx.de/pub/linux/ site.When I add mpc8260 I2C driver to Linux kernel
2.6.19,
Quoted 6 lines
the init function looks like that
static int__initfsl_i2c_init(void){ return driver_register(&fsl_i2c_driver); }I set the debug on, and found that the
fsl_i2c_probe()Quoted 1 line
function is never called, so there is not I2C
device
Quoted 2 lines
enabled, and the user space function
open("/dev/i2c-0",O_RDWR)always return error. Iset
Quoted 1 line
something wrong? Could somebody help me?
Quoted 9 lines
Quoted 4 lines
Do you have an fsl-i2c node in your device tree?
- Leo
=20
=20
=20
=20
________________________________________________________________________
______
Quoted 8 lines
______
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
I am sure that I used i2c-mpc8260.c in the
drivers\i2c\busses folder, it is for mpc8260.
Quoted 9 lines · --- Li Yang-r58472 <[email protected]> wrote:
You are talking about the wrong i2c driver. For
8260, you need a cpm
i2c driver, not the i2c-mpc driver.- Leo
Quoted 2 lines
-----Original Message-----
From:
Quoted 2 lines
Quoted 1 line
[mailto:[email protected]]
Quoted 20 lines
On
Behalf OfQuoted 6 lines
jimmy liu
Sent: Friday, January 26, 2007 1:06 AM
To: embedded linuxppc
Subject: RE: MPC8260 I2C ProblemIn the arch\ppc\syslib\pq2_devices.c, there has
the
Quoted 10 lines
device descriptions.
Do I still need manually create the plateform bus
tree?Quoted 3 lines · --- Li Yang-r58472 <[email protected]> wrote:
Quoted 2 lines
-----Original Message-----
From:
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
[mailto:[email protected]]
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
On
Behalf OfQuoted 9 lines
jimmy liu
Sent: Thursday, January 25, 2007 11:22 AM
To: embedded linuxppc
Subject: MPC8260 I2C ProblemI download the linux kernel 2.6.19 from
ftp://ftp.denx.de/pub/linux/ site.When I add mpc8260 I2C driver to Linux kernel
2.6.19,
Quoted 6 lines
the init function looks like that
static int__initfsl_i2c_init(void){ return driver_register(&fsl_i2c_driver); }I set the debug on, and found that the
Quoted 19 lines
Quoted 5 lines
Quoted 5 lines
fsl_i2c_probe()Quoted 1 line
function is never called, so there is not I2C
device
Quoted 2 lines
enabled, and the user space function
open("/dev/i2c-0",O_RDWR)always return error.I
Quoted 12 lines
Quoted 7 lines
set
Quoted 1 line
something wrong? Could somebody help me?
Do you have an fsl-i2c node in your device tree?
- Leo
________________________________________________________________________
Quoted 10 lines
______
Quoted 8 lines
______
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 1 line
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
I got it.
In the board environment, we have to define theBOARD_CHIP_NAME. It looks like:
#define BOARD_CHIP_NAME "8260"
Quoted 9 lines · --- Li Yang-r58472 <[email protected]> wrote:
You are talking about the wrong i2c driver. For
8260, you need a cpm
i2c driver, not the i2c-mpc driver.- Leo
Quoted 2 lines
-----Original Message-----
From:
Quoted 2 lines
Quoted 1 line
[mailto:[email protected]]
Quoted 20 lines
On
Behalf OfQuoted 6 lines
jimmy liu
Sent: Friday, January 26, 2007 1:06 AM
To: embedded linuxppc
Subject: RE: MPC8260 I2C ProblemIn the arch\ppc\syslib\pq2_devices.c, there has
the
Quoted 10 lines
device descriptions.
Do I still need manually create the plateform bus
tree?Quoted 3 lines · --- Li Yang-r58472 <[email protected]> wrote:
Quoted 2 lines
-----Original Message-----
From:
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
[mailto:[email protected]]
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
On
Behalf OfQuoted 9 lines
jimmy liu
Sent: Thursday, January 25, 2007 11:22 AM
To: embedded linuxppc
Subject: MPC8260 I2C ProblemI download the linux kernel 2.6.19 from
ftp://ftp.denx.de/pub/linux/ site.When I add mpc8260 I2C driver to Linux kernel
2.6.19,
Quoted 6 lines
the init function looks like that
static int__initfsl_i2c_init(void){ return driver_register(&fsl_i2c_driver); }I set the debug on, and found that the
Quoted 19 lines
Quoted 5 lines
Quoted 5 lines
fsl_i2c_probe()Quoted 1 line
function is never called, so there is not I2C
device
Quoted 2 lines
enabled, and the user space function
open("/dev/i2c-0",O_RDWR)always return error.I
Quoted 12 lines
Quoted 7 lines
set
Quoted 1 line
something wrong? Could somebody help me?
Do you have an fsl-i2c node in your device tree?
- Leo
________________________________________________________________________
Quoted 10 lines
______
Quoted 8 lines
______
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 1 line
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/