Page MenuHomeFreeBSD

Add a GPIO poweroff and reset driver.
ClosedPublic

Authored by jhibbits on Nov 15 2016, 5:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 6:11 AM
Unknown Object (File)
Wed, Sep 24, 9:21 PM
Unknown Object (File)
Sep 13 2025, 1:25 AM
Unknown Object (File)
Aug 24 2025, 1:42 AM
Unknown Object (File)
Jul 19 2025, 2:00 AM
Unknown Object (File)
Jul 9 2025, 7:59 PM
Unknown Object (File)
Jun 27 2025, 7:49 PM
Unknown Object (File)
Jun 27 2025, 8:26 AM
Subscribers

Details

Summary

This implements part of the gpio-poweroff and gpio-restart device tree
bindings. Optional properties are not handled currently. It also currently
only supports level-triggered reset.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5950
Build 6231: arc lint + arc unit

Event Timeline

jhibbits retitled this revision from to Add a GPIO poweroff and reset driver..
jhibbits updated this object.
jhibbits edited the test plan for this revision. (Show Details)
jhibbits added reviewers: gonzo, adrian, imp.
gonzo edited edge metadata.

Except for two nitpicks driver looks OK

sys/dev/gpio/gpiopower.c
84

May be a good idea to print it only for verbose boot. This information is of no use to normal user.

111

I think the convention here is not to capitalize message, so it, "dev0: message" looks more natural than "dev0: Message"

This revision is now accepted and ready to land.Nov 15 2016, 5:44 PM
This revision was automatically updated to reflect the committed changes.