NetBSD Problem Report #58754

From www@netbsd.org  Wed Oct 16 15:09:38 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 69ECD1A923D
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 16 Oct 2024 15:09:38 +0000 (UTC)
Message-Id: <20241016150937.6371C1A923E@mollari.NetBSD.org>
Date: Wed, 16 Oct 2024 15:09:37 +0000 (UTC)
From: nmingotti@gmail.com
Reply-To: nmingotti@gmail.com
To: gnats-bugs@NetBSD.org
Subject: No pull-up|down in BeagleBone GPIO pin 
X-Send-Pr-Version: www-1.0

>Number:         58754
>Category:       port-evbarm
>Synopsis:       No pull-up|down in BeagleBone GPIO pin
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    lloyd
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 16 15:10:00 +0000 2024
>Last-Modified:  Thu Oct 17 20:53:44 +0000 2024
>Originator:     Dr. Nicola Mingotti
>Release:        10.99.12
>Organization:
Borghi SRL
>Environment:
NetBSD pulce5 10.99.12 NetBSD 10.99.12 (GENERIC) #0: Wed Oct  9 08:58:30 CEST 2024  p@netb1.borghi.lan:/home/p/systems/netbsd-CURRENT/arch/earmv7hf/sys/arch/evbarm/compile/GENERIC evbarm

>Description:
The BeagleBone Black permits to set an input GPIO pin
as pull-up or pull-down. This is very useful
at the moment of using the BBB to interface with 
external circuits. 

gpioctl(8) does not permit setting the "pu","pd" flags
which control the connection of on-board pull-up and pull-down resistors.


>How-To-Repeat:

---- rc.conf ---
gpio=yes
----------------

---- gpio.conf ---
gpio1 17 set in pd
------------------

#> reboot 

---- dmesg ----------
...
Checking quotas: done.
Configuring GPIO.
gpioctl: GPIOSET: Operation not supported by device
...
---------------------



>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-evbarm-maintainer->lloyd
Responsible-Changed-By: lloyd@NetBSD.org
Responsible-Changed-When: Thu, 17 Oct 2024 20:53:44 +0000
Responsible-Changed-Why:
I picked up the PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.