Created attachment 238963 [details] gpioevents: add support for pull-down and floating input pins. gpioevents: add support for pull-down and floating input pins. The pin-mode (ft, pd, pu for floating, pull-down, pull-up) is specified after the intr-config (no, eb, ef, er) for each pin. Tested on my Raspberry Pi 1B. Approved by: (src committer)
It might be nice to merge this to stable/13 so that it lands in 13.2 ?
LGTM thanks.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=453db42291a3179a51b9bf41ca7dbc0a5298bffa commit 453db42291a3179a51b9bf41ca7dbc0a5298bffa Author: Rene Ladan <rene@FreeBSD.org> AuthorDate: 2022-12-21 21:24:11 +0000 Commit: Rene Ladan <rene@FreeBSD.org> CommitDate: 2022-12-22 09:13:59 +0000 gpioevents: add support for pull-down and floating input pins. The pin-mode (ft, pd, pu for floating, pull-down, pull-up) is specified after the intr-config (no, eb, ef, er) for each pin. Tested on my Raspberry Pi 1B. PR: 268504 Approved by: manu MFC after: 1 week tools/test/gpioevents/gpioevents.c | 47 +++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 6 deletions(-)
A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=bcd22066444374e61025c372668928ad20c8bf4a commit bcd22066444374e61025c372668928ad20c8bf4a Author: Rene Ladan <rene@FreeBSD.org> AuthorDate: 2022-12-21 21:24:11 +0000 Commit: Rene Ladan <rene@FreeBSD.org> CommitDate: 2022-12-29 17:01:36 +0000 gpioevents: add support for pull-down and floating input pins. The pin-mode (ft, pd, pu for floating, pull-down, pull-up) is specified after the intr-config (no, eb, ef, er) for each pin. Tested on my Raspberry Pi 1B. PR: 268504 Approved by: manu MFC after: 1 week (cherry picked from commit 453db42291a3179a51b9bf41ca7dbc0a5298bffa) gpioevents: fix some white-space errors Fixes: 453db42291a3 - gpioevents: add support for pull-down and floating input pins. Approved by: manu (implicit) MFC after: 1 week (cherry picked from commit e2f3742ab8b10ba5ec4dc190c5b64e9151bb0d57) tools/test/gpioevents/gpioevents.c | 47 +++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 6 deletions(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=534470090d987118b9728deda1b28f96ae5d1cec commit 534470090d987118b9728deda1b28f96ae5d1cec Author: Rene Ladan <rene@FreeBSD.org> AuthorDate: 2022-12-21 21:24:11 +0000 Commit: Rene Ladan <rene@FreeBSD.org> CommitDate: 2022-12-29 17:02:37 +0000 gpioevents: add support for pull-down and floating input pins. The pin-mode (ft, pd, pu for floating, pull-down, pull-up) is specified after the intr-config (no, eb, ef, er) for each pin. Tested on my Raspberry Pi 1B. PR: 268504 Approved by: manu MFC after: 1 week (cherry picked from commit 453db42291a3179a51b9bf41ca7dbc0a5298bffa) gpioevents: fix some white-space errors Fixes: 453db42291a3 - gpioevents: add support for pull-down and floating input pins. Approved by: manu (implicit) MFC after: 1 week (cherry picked from commit e2f3742ab8b10ba5ec4dc190c5b64e9151bb0d57) tools/test/gpioevents/gpioevents.c | 47 +++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 6 deletions(-)