From nobody Fri Oct 03 14:36:13 2025 X-Original-To: dev-commits-src-main@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 4cdWSF27Scz69wRs; Fri, 03 Oct 2025 14:36:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cdWSF1g15z3r0j; Fri, 03 Oct 2025 14:36:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759502173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sv7b0FhvOnqGAf6ckZP7E26EpFmq5zsSZuCs67FSk9w=; b=e876s/jdcbMtmYzTU3TKCsIb5EX99Dgv18Q0BG7fD/lmFbdXznFw9ZKxmzaplTewiK4BST Tys1l10s9HEfBZ1giQyAOL3ijsiCkQR/TBtqOa7wXfhayoiI5TE9Slo0Je1o3UBvBc+DMG P0JvvE0luFFn70q3wr51YyOnceZzj8JUIahs2P4wcWzYcL1rYSH45wiWW6D1kZujzSybB6 eEJ10eqQsnlEebP050jmIGn39Lx4Flj3IovPdD7AqZcnRsi0wPkgmF4+MgICYMBGxah8Wz qX0TlK14Ufu9WRzCRfQKVn1Ah/NN0mj12z+9BexEJZK8GXwm0gSb/flhFGt8dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759502173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sv7b0FhvOnqGAf6ckZP7E26EpFmq5zsSZuCs67FSk9w=; b=Er6qow1yhGnzdS9xnTdSRxNLu111MYrFbYYx29Ge3Rcv3jYdgcike+GJaIyX+faXmSyeU+ c8Rx2wGqeu/bgfUIQthiDJuwgxJFr7yrYJ7S7Y1IQRGFySKmv3dmB++86QoC6mq44mJc/Y HxazRulmaWJfVvAPK/+g7Jn6bK1eut5tM9SIxPNZiKFb58vxverDmgFICdyhGa6xwTQq9j hdmh3R3pPzj44WZFpxugp5yct0b8lRbJCRt2REWXN/e9HA+TTbycB/pjBKE8YZ9Dmwue6c OzDdCbC1Okrv0kRjRnoeOY49qNdKukGPRgSYpg5PNovx3yD0m6OtrB7hy1kfag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759502173; a=rsa-sha256; cv=none; b=JDwM5Z+GnNvUxhqiGt5CtIMmubxO97e6HnKwcrULIuxCylx0FnxgHpQ5aKx+WMFzKEtZr4 m+XZYSVSDYHVvVtH+8vmlscIn85LmWjw3ydePqywzVc+BqxErQZ0plhrP1h6ebal47OeVx RD7xYz+OD/Ag9j2JtN/5EyY3zYVUQpL+AnMjtTEmOcRTLNWgqiKmHiMwsmtbfzWHC6N1vE Si1OArzpyQc48Eap0NPUg1Pke3FH6UbLb8H/jZo7c0SZ8xjsCQZfGhKu/p4ERu1lS54PQH wliWqqKKE1MTWxHRkR9+Qz+3qLelAtdfAuG1dGeTG5GbLh+YfIiRPIHReT54kw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cdWSF1BY8zyn9; Fri, 03 Oct 2025 14:36:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 593EaDYi002645; Fri, 3 Oct 2025 14:36:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 593EaDLR002642; Fri, 3 Oct 2025 14:36:13 GMT (envelope-from git) Date: Fri, 3 Oct 2025 14:36:13 GMT Message-Id: <202510031436.593EaDLR002642@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: bc433a0b7b04 - main - sdhci.4: Improve HARDWARE for HW Relnotes + SPDX List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc433a0b7b046b0412777e0f3cc8f18a233af8ff Auto-Submitted: auto-generated The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=bc433a0b7b046b0412777e0f3cc8f18a233af8ff commit bc433a0b7b046b0412777e0f3cc8f18a233af8ff Author: Warner Losh AuthorDate: 2025-10-03 13:49:32 +0000 Commit: Alexander Ziaee CommitDate: 2025-10-03 14:35:27 +0000 sdhci.4: Improve HARDWARE for HW Relnotes + SPDX MFC after: 1 hr Discussed with: ivy, olce Co-authored-by: ziaee (typed up imps suggestion, tagged spdx) Differential Revision: https://reviews.freebsd.org/D52860 --- share/man/man4/sdhci.4 | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/share/man/man4/sdhci.4 b/share/man/man4/sdhci.4 index 4a4e02539acd..1608d9c2fe1a 100644 --- a/share/man/man4/sdhci.4 +++ b/share/man/man4/sdhci.4 @@ -1,4 +1,6 @@ .\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" Copyright (c) 2008 Alexander Motin .\" All rights reserved. .\" @@ -22,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 25, 2020 +.Dd October 3, 2025 .Dt SDHCI 4 .Os .Sh NAME @@ -56,21 +58,28 @@ detaches it on card removing. .Sh HARDWARE The .Nm -driver supports different specification compatible chips. -The following chips have been verified to work: +driver supports the SD Host Controller Specification. +When attaching via the PCI bus, +the controller is automatically configured. +Many SoC chips provide a SDHCI controller directly mapped to I/O memory. +For those, the controller may be configured using +.Xr fdt 4 +or +.Xr acpi 4 +methods, supplied by your board's vendor. .Pp -.Bl -bullet -compact -.It -ENE CB712 -.It -ENE CB714 -.It -RICOH R5C822 -.It -RICOH R5CE823 -.It -TI PCIXX21/XX11/XX12 -.El +Unlike most other drivers that support a generic standard, +.Nm +requires a large number of quirks to cope with hardware bugs, +proprietary registers and poorly specified power management. +While many chipsets from +Intel, Xilinx, Rockchip, Frescale, Ricoh, and TI have these entries, +suboptimal performance may result when using some controllers. +Quirks and custom configuration are most often required +when the device is configured via +.Xr fdt 4 +or +.Xr acpi 4 . .Sh SEE ALSO .Xr mmc 4 , .Xr mmcsd 4 @@ -79,8 +88,3 @@ TI PCIXX21/XX11/XX12 .Re .Sh AUTHORS .An Alexander Motin Aq Mt mav@FreeBSD.org -.Sh BUGS -Many of existing SD controller chips have some nonstandard requirements, -proprietary registers and hardware bugs, requiring additional handling. -ENE chips are handled to work fine, while some revisions of RICOH and TI -controllers still do not see cards without some additional initialization.