mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Hellermann <stefan@the2masters.de>
To: linux-kernel@vger.kernel.org,
	David Brownell <david-b@pacbell.net>,
	David Brownell <david-b@pacbell.net>
Subject: GPIO-Ports on VIA EPIA-SN
Date: Mon, 09 Jun 2008 20:00:05 +0200	[thread overview]
Message-ID: <1213034405.2592.22.camel@hel-stefan.lan> (raw)

[-- Attachment #1: Type: text/plain, Size: 1090 bytes --]

Hello,

I have a VIA Epia-SN embedded-board with 8 GPIO-connectors. I got the
attached documentation from VIA after I asked how to use the
GPIO-connectors with Linux.
The GPIO is connected to the VT8251 southbridge, here is lspci-output:

# lspci -vv -s 00:11.0
00:11.0 ISA bridge: VIA Technologies, Inc. VT8251 PCI to ISA Bridge
	Subsystem: VIA Technologies, Inc. VT8251 PCI to ISA Bridge
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
	Capabilities: [c0] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-


Can anybody help me writing a small kernel-driver for this? I heard of
the GPIO-framework, but I have no clue where to start with. I simply
want to switch these ports to 0 or 1 :).

I don't know under what license this documentation is, I simply got
these 6 pages with sample source code.

Kind Regards
Stefan Hellermann

[-- Attachment #2: SN_Digital_IO_Operating Guide_021908 .pdf --]
[-- Type: application/pdf, Size: 61219 bytes --]

             reply	other threads:[~2008-06-09 18:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 18:00 Stefan Hellermann [this message]
2008-06-09 19:03 ` Bart Van Assche
2008-06-09 19:57   ` David Brownell
2008-06-10 11:27 ` Alan Cox
2008-06-10 22:51   ` [patch 1/1] Add driver for GPIO on Via Epia-SN - vt8251 Stefan Hellermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1213034405.2592.22.camel@hel-stefan.lan \
    --to=stefan@the2masters.de \
    --cc=david-b@pacbell.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®