Mark Kettenis <[email protected]> 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&w=2 > > > > 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...
