Making a file descriptor for I2C

"J.P. Norair" <[email protected]>
Newsgroups gmane.comp.handhelds.general
Message-ID <9E04BC4BC628A9459A1833A688BF484522C914@srv-iris.proximities.local>
Hi,
 
First off I'd like to mention that I know a lot more about hardware than
I do about software, and I'm stuck trying to figure out some Linux
related issues.  My goal is to have a very portable I2C device that I
can use to send/receive data on an I2C bus, and later to do some more
advanced things.
 
I have an iPaq 5550 with Linux installed (distro is Familiar 0.8.2).  It
has the PXA255, which means that it also has an I2C bus.  I opened it up
and found that the I2C bus seems to be used only to handle an A/V ASIC:
if I were a betting man, I'd say it's used to send Analog-to-Digital
conversion samples back to the XScale, since the iPaq does have an
ambient light sensor.  Anyway, I managed to solder wires from the I2C
bus to two unused pins on the cradle connector.  This concludes the part
of the project where I have expertise.
 
Some digging has revealed that there are I2C object files at
/lib/2.4.19-rmk6-pxa1-hh37/kernel/drivers/i2c/.
These are: 
i2c-adap-pxa.o
i2c-core.o
i2c-algo-pxa.o
 
These are the standard i2c library files, and I'm very glad that they
exist already in the distribution.  But I need to get some file
descriptors (FIFOs) in the /dev/ folder such as /dev/i2c-0, /dev/i2c-1,
etc.  I'm looking for some guidance in regard to this task.  I've looked
around the internet, but I don't think I have the lingo down to the
point where I can get started.
 
 
 
Thanks,
JP Norair
[email protected]
321-723-4985 x111
 
Proximities, Inc.
1335 Gateway Dr.
Suite 2005
Melbourne, FL 32901

_______________________________________________
Open Source Software on Handheld Devices.
Handhelds mailing list
[email protected]
https://handhelds.org/mailman/listinfo/handhelds
irc://irc.openprojects.net #handhelds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.