* sensors can't be detected on i2c-mpc
@ 2009-06-09 1:20 Hide Saito
2009-06-09 3:19 ` Grant Likely
0 siblings, 1 reply; 2+ messages in thread
From: Hide Saito @ 2009-06-09 1:20 UTC (permalink / raw)
To: linuxppc-dev; +Cc: saito
sensors can't be detected on i2c-mpc
Hi all,
The sensors can't be detected on the built-in I2C interface on the Freescale's MPC processors on linux-2.6.29.
If it is not yet fixed, I think that it is forgotten to set the following values in the class.
Signed-off-by: Hideo Saito <hsaito.ppc@gmail.com>
---
--- drivers/i2c/busses/i2c-mpc.c.org 2009-03-24 08:12:14.000000000 +0900
+++ drivers/i2c/busses/i2c-mpc.c 2009-06-04 08:50:34.000000000 +0900
@@ -304,16 +304,17 @@ static u32 mpc_functionality(struct i2c_
static const struct i2c_algorithm mpc_algo = {
.master_xfer = mpc_xfer,
.functionality = mpc_functionality,
};
static struct i2c_adapter mpc_ops = {
.owner = THIS_MODULE,
+ .class = I2C_CLASS_HWMON | I2C_CLASS_SPD,
.name = "MPC adapter",
.algo = &mpc_algo,
.timeout = 1,
};
static int __devinit fsl_i2c_probe(struct of_device *op, const struct of_device_id *match)
{
int result = 0;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: sensors can't be detected on i2c-mpc
2009-06-09 1:20 sensors can't be detected on i2c-mpc Hide Saito
@ 2009-06-09 3:19 ` Grant Likely
0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2009-06-09 3:19 UTC (permalink / raw)
To: Hide Saito; +Cc: linuxppc-dev, saito
On Mon, Jun 8, 2009 at 7:20 PM, Hide Saito<hsaito.ppc@gmail.com> wrote:
> sensors can't be detected on i2c-mpc
>
> Hi all,
>
> The sensors can't be detected on the built-in I2C interface on the Freescale's MPC processors on linux-2.6.29.
> If it is not yet fixed, I think that it is forgotten to set the following values in the class.
>
> Signed-off-by: Hideo Saito <hsaito.ppc@gmail.com>
Since i2c probing is hit and miss at best; Most MPCxxxx SPI busses get
the i2c bus topology out of the device tree file
(arch/powerpc/boot/dts/<board-name>.dts) and do not support probing.
If the i2c device you need is missing, then add a node to the .dts
file for the missing device (there are lots of examples of this in the
dts directory).
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-09 3:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09 1:20 sensors can't be detected on i2c-mpc Hide Saito
2009-06-09 3:19 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).