From nobody Mon May 15 04:43:32 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QKRZw2Gz5z4B71b for ; Mon, 15 May 2023 04:43:36 +0000 (UTC) (envelope-from t_uemura@macome.co.jp) Received: from mail.macome.co.jp (mail.v4000-114.mailsecure.jp [203.138.86.114]) by mx1.freebsd.org (Postfix) with ESMTP id 4QKRZv0QgNz4QCq for ; Mon, 15 May 2023 04:43:34 +0000 (UTC) (envelope-from t_uemura@macome.co.jp) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of t_uemura@macome.co.jp designates 203.138.86.114 as permitted sender) smtp.mailfrom=t_uemura@macome.co.jp; dmarc=none Received: from towerrecords.dyndns.org (unknown [111.90.40.59]) (Authenticated sender: t_uemura@macome.co.jp) by macome.co.jp (Postfix) with ESMTPA id 27E6024D81 for ; Mon, 15 May 2023 13:43:33 +0900 (JST) Received: by towerrecords.dyndns.org (Postfix, from userid 58) id E2F1D9B8773; Mon, 15 May 2023 13:43:32 +0900 (JST) X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on towerrecords.dyndns.org Received: from [192.168.1.21] (p8585038-ipngn39001marunouchi.tokyo.ocn.ne.jp [180.39.37.38]) by towerrecords.dyndns.org (Postfix) with ESMTPSA id AC6419B8771 for ; Mon, 15 May 2023 13:43:29 +0900 (JST) From: UEMURA Tetsuya To: freebsd-arm@FreeBSD.org Subject: [patch][RPi4] Add support for BCM2711 GPIO pull configuration. List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.81.04 [ja] Message-Id: <20230515044332.E2F1D9B8773@towerrecords.dyndns.org> Date: Mon, 15 May 2023 13:43:32 +0900 (JST) X-Spamd-Result: default: False [-3.15 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; NEURAL_HAM_LONG(-0.96)[-0.961]; R_SPF_ALLOW(-0.20)[+ip4:203.138.86.114/32:c]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[macome.co.jp]; MLMMJ_DEST(0.00)[freebsd-arm@FreeBSD.org]; ARC_NA(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:2514, ipnet:203.138.0.0/16, country:JP] X-Rspamd-Queue-Id: 4QKRZv0QgNz4QCq X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hi. As I've commented on the bug 256372, the current FreBSD's BCM2835 GPIO driver can't handle internal pull up/down configuration of BCM2711 (the SoC on RPI4 family) GPIO. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256372 Fortunately NetBSD has support for the newer method and it's fairly trivial to port it on FreeBSD, so I've written a patch. Please someone test and commit it, or if necessary, I'll create a review on Phabricator. Thanks in advance for help. -- Tetsuya Uemura