All of lore.kernel.org
 help / color / mirror / Atom feed
* I2C on mpc8248 / device tree
@ 2007-11-13 23:39 Alan Bennett
  2007-11-13 23:56 ` Jon Smirl
  2007-11-14  7:17 ` Kumar Gala
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Bennett @ 2007-11-13 23:39 UTC (permalink / raw)
  To: Scott Wood, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

I've got four devices on i2c that I need to read.  Simple thermal and
voltage monitors.  I2c works fine in uboot, and now I'm trying to get things
to work in linux.

In the kernel .config I enable
  I2C
and
  I2C_MPC

During the platform boot code:
I init the IO ports for i2c, (same as ep8248e code)
    {3, 14, CPM_PIN_INPUT | CPM_PIN_SECONDARY},
    {3, 15, CPM_PIN_INPUT | CPM_PIN_SECONDARY},

__Do I need to configure a brg for the i2c along with the other devices ?
i.e. cpm2_clk_setup ?


Next, I'm sure my device tree needs work, but my first stab adds i2c onto
the SOC @ 11860  (immr+11860= I2c mode register) and interrupt 1.
       soc@e0000000 {
               ...
               cpm@119c0 {
               ...
               i2c@11860 {
                   device_type = "i2c";
                   compatible = "fsl-i2c";
                   reg = <11860 18>;
                   interrupts = <1 3>;
                   interrupt-parent = <&PIC>;
               };

After Cleaning up these routines and descriptions, would I be expected to
continue using the /dev/i2c- entries?

-Alan

[-- Attachment #2: Type: text/html, Size: 2054 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-11-14 20:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 23:39 I2C on mpc8248 / device tree Alan Bennett
2007-11-13 23:56 ` Jon Smirl
2007-11-14 15:31   ` Alan Bennett
2007-11-14 16:20     ` Kumar Gala
2007-11-14 17:49       ` Alan Bennett
2007-11-14 17:56         ` Scott Wood
2007-11-14 19:26           ` Jon Smirl
2007-11-14 20:21             ` Kumar Gala
2007-11-14  7:17 ` Kumar Gala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.