|
|
Subscribe / Log in / New account

Re: gpio(4) support for APU2

From:  "Theo de Raadt" <deraadt-AT-openbsd.org>
To:  Mark Kettenis <mark.kettenis-AT-xs4all.nl>
Subject:  Re: gpio(4) support for APU2
Date:  Mon, 10 Feb 2020 10:31:08 -0700
Message-ID:  <24639.1581355868@cvs.openbsd.org>
Cc:  Nathanael Rensen <nathanael-AT-list.polymorpheus.com>, tech-AT-openbsd.org, owner-tech-AT-openbsd.org
Archive-link:  Article

Mark Kettenis <mark.kettenis@xs4all.nl> wrote:

> Nathanael Rensen schreef op 2020-01-29 15:47:
> > The diff below adds gpio(4) support to wbsio(4) for Nuvoton NCT5104D
> > (pcengines APU2). It is based on Matt Dainty's diff posted to this list
> > in November 2018:
> >
> >   https://marc.info/?l=openbsd-tech&m=154134941027009&...
> >
> > A key difference from Matt Dainty's original diff is the use of
> > config_search() rather than config_found() to avoid problems with
> > the lm78 driver mentioned in his post.
> 
> But as before this diff does nothing to make sure it is actually
> safe to touch these gpio pins.  Other machines might have the same
> chip but use the pins internally to switch power to on-board
> components.

gpio devices, sigh.

It's like wrapping a scarf around your head and crawling under a porch or deck.

You never know what surprises you'll put your hands onto.

spiders and pet poo, maybe some broken glass...




to post comments


Copyright © 2020, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds