aragats

GPIO and SMbus in Linux

Discussion created by aragats on Jan 26, 2009

I have installed Linux 2.6.28 on Fit-pc [1] computer which based on
AMD Geode LX800 500MHz (Chipset AMD CS5536).

I want to utilize the GPIOs (as well as SMbus) to control some custom peripherals.
The kernel 2.6.28 already has cs5535_gpio driver, but I've patched
it to get the corresponding devices in /dev automatically [2].

Now I have the following devices:
/dev/cs5535_gpio1
/dev/cs5535_gpio2
/dev/cs5535_gpio5
/dev/cs5535_gpio6
/dev/cs5535_gpio10
/dev/cs5535_gpio11
/dev/cs5535_gpio12
/dev/cs5535_gpio13
/dev/cs5535_gpio24
/dev/cs5535_gpio25
/dev/cs5535_gpio27

Now I need to go to the next step.
What is the "proper way" to work with GPIO/SMbus from within Linux?
Could sombody advise and/or refer documentation/software/drivers?

[1] http://www.fit-pc.com/new/specifications.html
[2] http://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg02428.html//www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg02428.html

Outcomes