|
|
|
date: Mon, 26 May 2008 12:12:01 +0100,
group: uk.comp.os.linux
back
GPIO access
Does anyone know if there is a simple packaged solution to getting
access to GPIO that so many motherboards seem to carry these days (with
almost no other information).
I am only really interested in being able to read the state of the
pins from userspace, although some sort of interrupt control would be
really nice).
--
Will J G
date: Mon, 26 May 2008 12:12:01 +0100
author: Folderol
|
Re: GPIO access
Folderol wrote:
> Does anyone know if there is a simple packaged solution to getting
> access to GPIO that so many motherboards seem to carry these days (with
> almost no other information).
Many of them are supported by lm_sensors
http://www.lm-sensors.org/
If not you can easily modify a similar driver if you have the datasheet for
the chip.
Simon
date: Mon, 26 May 2008 12:19:16 +0100
author: Simon J. Rowe
|
Re: GPIO access
On Mon, 26 May 2008 12:19:16 +0100
"Simon J. Rowe" wrote:
> Folderol wrote:
>
> > Does anyone know if there is a simple packaged solution to getting
> > access to GPIO that so many motherboards seem to carry these days (with
> > almost no other information).
>
> Many of them are supported by lm_sensors
>
> http://www.lm-sensors.org/
>
> If not you can easily modify a similar driver if you have the datasheet for
> the chip.
>
> Simon
>
I followed this link, but could only find references to sensors, not to
user accessible GPIO. Is there something I am missing?
--
Will J G
date: Tue, 27 May 2008 20:21:18 +0100
author: Folderol
|
Re: GPIO access
Folderol wrote:
> I followed this link, but could only find references to sensors, not to
> user accessible GPIO. Is there something I am missing?
The GPIO lines typically hang off a super I/O chip, one function is to
support sensors. If you install lm_sensors, run sensors-detect to set it
and then look at what the chip it reports you have. If you're lucky you'll
be able to access the GPIO lines via sysfs. If not, how's your coding?...
Simon
date: Tue, 27 May 2008 20:59:19 +0100
author: Simon J. Rowe
|
Re: GPIO access
On Tue, 27 May 2008 20:59:19 +0100
"Simon J. Rowe" wrote:
> Folderol wrote:
>
> > I followed this link, but could only find references to sensors, not to
> > user accessible GPIO. Is there something I am missing?
>
> The GPIO lines typically hang off a super I/O chip, one function is to
> support sensors. If you install lm_sensors, run sensors-detect to set it
> and then look at what the chip it reports you have. If you're lucky you'll
> be able to access the GPIO lines via sysfs. If not, how's your coding?...
>
> Simon
I was rather hoping for something more of a plugin like the python
serial & parallel wrappers. I guess I've got rather spoiled by the fact
that modern distros seem to automagically identify just about
everything!
I don't have anything like the skill needed for writing drivers :(
--
Will J G
date: Sat, 31 May 2008 18:11:23 +0100
author: Folderol
|
Re: GPIO access
Folderol wrote:
> I was rather hoping for something more of a plugin like the python
> serial & parallel wrappers. I guess I've got rather spoiled by the fact
> that modern distros seem to automagically identify just about
> everything!
>
> I don't have anything like the skill needed for writing drivers
If your motherboard has a parallel port then you can use that for I/O.
Simon
date: Sat, 31 May 2008 20:09:17 +0100
author: Simon J. Rowe
|
Re: GPIO access
On Sat, 31 May 2008 20:09:17 +0100
"Simon J. Rowe" wrote:
> Folderol wrote:
>
> > I was rather hoping for something more of a plugin like the python
> > serial & parallel wrappers. I guess I've got rather spoiled by the fact
> > that modern distros seem to automagically identify just about
> > everything!
> >
> > I don't have anything like the skill needed for writing drivers
>
> If your motherboard has a parallel port then you can use that for I/O.
>
> Simon
I do have a parallel port on one machine, but I'm reluctant to rely on
it too much, as these are becoming steadily more rare with each new
generation of MBOs. Also (and I could quite possibly be wrong) I get
the impression that GPIO gives faster access.
--
Will J G
date: Sat, 7 Jun 2008 14:59:20 +0100
author: Folderol
|
|
|