alix 2c3 and i2c

2008-10-23 Thread Per-Erik Persson

A while ago I purchased an alix board.
The plan is to hook up some external i2c sensors to it.
I see the i2c-header on the board, but while reviewing the dmesg I 
cannot find anything related to i2c.


Has the header no real function or is the driver for the i2c bus not 
written yet or do I need to enable it in some way?
Reading the code under i2c gives me hints about bitbanging the gpio, but 
that is just guessing.




Re: alix 2c3 and i2c

2008-10-23 Thread Girish Venkatachalam
On 16:16:02 Oct 23, Per-Erik Persson wrote:
 A while ago I purchased an alix board.
 The plan is to hook up some external i2c sensors to it.
 I see the i2c-header on the board, but while reviewing the dmesg I cannot 
 find anything related to i2c.

 Has the header no real function or is the driver for the i2c bus not 
 written yet or do I need to enable it in some way?
 Reading the code under i2c gives me hints about bitbanging the gpio, but 
 that is just guessing.


How can i squared c driver not be written yet? ;)

Do you think OpenBSD will run on so many platforms without supporting
this bus?

I go to /usr/src/sys/dev/i2c and find some files there.

Any guess what those files do?

-Girish



Re: alix 2c3 and i2c

2008-10-23 Thread Stuart Henderson
On 2008-10-23, Per-Erik Persson [EMAIL PROTECTED] wrote:
 Has the header no real function or is the driver for the i2c bus not 
 written yet or do I need to enable it in some way?

I don't think it's been written for the CS5536 yet, I haven't checked
but if it's similar to the SC1100 you may be able to take gscsio(4) as
a starting point. Try comparing the SC1100 and CS5536 data books.