xref: /netbsd-src/share/man/man4/man4.x86/soekrisgpio.4 (revision 6cb10275d08f045e872662c371fe2f2724f2f6e6)
1.\" $NetBSD: soekrisgpio.4,v 1.5 2014/03/18 18:20:40 riastradh Exp $
2.\" from OpenBSD
3.\"
4.\" Copyright (c) 2013 Matt Dainty <matt <at> bodgit-n-scarper.com>
5.\"
6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies.
9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\"
18.Dd June 10, 2013
19.Dt SOEKRIS 4 x86
20.Os
21.Sh NAME
22.Nm soekrisgpio
23.Nd Soekris net6501 GPIO and LEDs
24.Sh SYNOPSIS
25.Cd "soekrisgpio0 at isa? port 0x680"
26.Cd "gpio* at soekrisgpio?"
27.Sh DESCRIPTION
28The
29.Nm
30driver provides support for the GPIO and LEDs as implemented by the Xilinx
31Spartan FGPA integrated into the Soekris net6501 programmed with the default
32bitstream found in the BIOS.
33.Pp
34Two standard
35.Xr gpio 4
36interfaces are provided, one for the 16 real pins which can be configured as
37either inputs or outputs and another with 2 output-only pins that map
38to the error and ready LEDs respectively.
39Both may be used with
40.Xr gpioctl 8 .
41.Sh SEE ALSO
42.Xr gpio 4 ,
43.Xr intro 4 ,
44.Xr isa 4 ,
45.Xr gpioctl 8
46.Sh HISTORY
47The
48.Nm
49driver first appeared in
50.Nx 7.0 .
51.Sh AUTHORS
52The
53.Nm
54driver was written by
55.An Matt Dainty Aq Mt matt@...
56and imported from a patch for
57.Ox
58to
59.Nx
60by
61.An Frank Kardel Aq Mt kardel@NetBSD.org .
62.Sh BUGS
63If the Xilinx FPGA is programmed with a different bitstream, the driver will
64likely not function.
65