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.<br><br>In the kernel .config I enable <br> I2C<br>
and<br> I2C_MPC<br><br>During the platform boot code:<br>I init the IO ports for i2c, (same as ep8248e code)<br> {3, 14, CPM_PIN_INPUT | CPM_PIN_SECONDARY},<br> {3, 15, CPM_PIN_INPUT | CPM_PIN_SECONDARY},<br><br>__Do I need to configure a brg for the i2c along with the other devices ?
i.e. cpm2_clk_setup ?<br><br><br>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.<br> soc@e0000000 {<br> ...
<br> cpm@119c0 {<br> ...<br> i2c@11860 { <br> device_type = "i2c";<br> compatible = "fsl-i2c";<br> reg = <11860 18>;
<br> interrupts = <1 3>;<br> interrupt-parent = <&PIC>;<br> };<br><br>After Cleaning up these routines and descriptions, would I be expected to continue using the /dev/i2c- entries?
<br><br>-Alan<br><br>