Post Go back to editing

i2c on BF537 stamp

Hi,

I have problems to get a i2c communication between the BF537 and simple i2c device (LM75) running.

my question: i would expect to find something like /dev/i2c-0 in the /dev directory.

what I have is:

root:/dev> ls

console             network_throughput  ram14               random

cpu_dma_latency     null                ram15               rtc0

fd                  ptmx                ram2                stderr

foo                 pts                 ram3                stdin

full                ram0                ram4                stdout

kmsg                ram1                ram5                tty

log                 ram10               ram6                ttyBF0

mdev.seq            ram11               ram7                urandom

mem                 ram12               ram8                watchdog

network_latency     ram13               ram9                zero

does that mean that my kernel is not i2c capable?

and if not, since I flagged i2c support (x), what should I do else?

thanks in advance

Ralph

Parents
  • Thanks Sonic,

    after following Aaronwus advice to change M to Y in the kernel settings

    (M = module, I expected to enable all child options ...??)

    plus some recompilation trails I found out

    Device Drivers  --->

          {*} I2C support  --->

         <*>   I2C device interface

         I2C Hardware Bus support  --->

             <*> Blackfin TWI I2C suppor

    I didn't enable Blackfin TWI2C support as you mentioned in your last post. after that it works

    some functions expect a link in the path /dev/i2c-0 similar to gpio interface

    the entry however is under:

    root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0

    anyway for me it's fine

    thanks for your help

    Ralph

Reply
  • Thanks Sonic,

    after following Aaronwus advice to change M to Y in the kernel settings

    (M = module, I expected to enable all child options ...??)

    plus some recompilation trails I found out

    Device Drivers  --->

          {*} I2C support  --->

         <*>   I2C device interface

         I2C Hardware Bus support  --->

             <*> Blackfin TWI I2C suppor

    I didn't enable Blackfin TWI2C support as you mentioned in your last post. after that it works

    some functions expect a link in the path /dev/i2c-0 similar to gpio interface

    the entry however is under:

    root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0

    anyway for me it's fine

    thanks for your help

    Ralph

Children
No Data