Discussion:
GPIO on FreeBSD 9.1
(too old to reply)
Alberto Mijares
2013-02-07 09:03:59 UTC
Permalink
Hi list,

I have a net4801 Soekris board. It has 12-pin GPIO interface.

GENERIC kernel doesn't show any /dev/gpio* device. I tried including

device gpio

and I see the module with

# kldstat -v | grep gpio

but still no /dev/gpio* device.

Could anyone point me to the steps to follow in order to enable such
interface? And taking the opportunity for a second shot, any
recommendation for a Perl module to work with?

Thanks in advance

Regards.


Alberto Mijares
Anton Yuzhaninov
2013-05-15 17:20:30 UTC
Permalink
On Thu, 07 Feb 2013 13:03:41, Alberto Mijares wrote:
AM> I have a net4801 Soekris board. It has 12-pin GPIO interface.
AM>
AM> GENERIC kernel doesn't show any /dev/gpio* device. I tried including
AM>
AM> device gpio
AM>
AM> and I see the module with
AM>
AM> # kldstat -v | grep gpio
AM>
AM> but still no /dev/gpio* device.
AM>
AM> Could anyone point me to the steps to follow in order to enable such
AM> interface? And taking the opportunity for a second shot, any
AM> recommendation for a Perl module to work with?

Try to add
options CPU_GEODE
to kernel config

I don't have eny experience with Soekris, but /sys/i386/conf/NOTES
said:
CPU_GEODE is for the SC1100 Geode embedded processor

And net4801 specification said about NSC SC1100 single chip processor
Luiz Otavio O Souza
2013-05-16 01:13:40 UTC
Permalink
Post by Alberto Mijares
Hi list,
I have a net4801 Soekris board. It has 12-pin GPIO interface.
GENERIC kernel doesn't show any /dev/gpio* device. I tried including
device gpio
and I see the module with
# kldstat -v | grep gpio
but still no /dev/gpio* device.
Could anyone point me to the steps to follow in order to enable such
interface? And taking the opportunity for a second shot, any
recommendation for a Perl module to work with?
Hi Alberto,

I think you need the phk driver: http://phk.freebsd.dk/soekris/env4801/

There is no support for it on the gpio framework (which would create the
gpio controller device entry - /dev/gpiocX).

Regards,
Luiz

Loading...