From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B38D1D72367 for ; Fri, 23 Jan 2026 09:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=R2dnjTDdAxtFe1SNVIGyD//Zr6oIkw6elS/2GxgPMzM=; b=3/X6AtSRtbQxFtcX4qqFKZvzx9 x2SiV+1UZJUm9+ptrMfgRZ/e1ih+uPJBTfHpi/7gs8+Uk0vxz2Bz3JHHd0dQ4ZELp6ZhWLceY0p1j mK43VJI7FXVWQXAWmIK0mKqJLsQRW0f25RfOWaGI2v/c4Vstg5co+m5VP9DHBRhvJbpF4unuLVL3v RI1GSmSlHgd3/aiAmlZW2spgHr9tcgzjAcFBokg98QjARYq1GZpm4fkIRYzRHz/DoeDVWc+j1T6IB lTVTidOb3IWGmE1uZPJohjAOVDJrbR1F1PnkIcxlimlNbjpAgn0YNUw23VJA3WEtDXrApa/r6Z+W7 mh2CQhYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vjDrd-00000008czi-2Y9m; Fri, 23 Jan 2026 09:54:01 +0000 Received: from mail-m32110.qiye.163.com ([220.197.32.110]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vjDrb-00000008cuS-0CQP for linux-arm-kernel@lists.infradead.org; Fri, 23 Jan 2026 09:54:00 +0000 Received: from albert-OptiPlex-7080.. (unknown [112.65.126.162]) by smtp.qiye.163.com (Hmail) with ESMTP id 31bc9a75e; Fri, 23 Jan 2026 17:53:50 +0800 (GMT+08:00) From: Albert Yang To: Ulf Hansson , Adrian Hunter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ge Gordon , Arnd Bergmann Cc: BST Linux Kernel Upstream Group , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Albert Yang Subject: [PATCH v5 0/6] mmc: add support for BST C1200 SDHCI controller Date: Fri, 23 Jan 2026 17:53:36 +0800 Message-ID: <20260123095342.272505-1-yangzh0906@thundersoft.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Tid: 0a9bea463c2709cckunm2b675df11c3d86 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaSEpCVhhMGhpNShhPQh1OT1YVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlKSklVTU5VSklNVUpNSVlXWRYaDxIVHRRZQVlPS0hVSktJT09PSFVKS0 tVSkJLS1kG DKIM-Signature: a=rsa-sha256; b=FEab32P+zcZXZFCMSdiOH2kEhavXVqtATqWfMdbsLa6WtU+tCRK7IPsRE4ZRAPHVYjRt6HVq0//JaBoziCAsfatIhgmD+UOPKYxxOhpXa4fjRDpD5d7VeTlh2EeAn4etETjKyxTjktIqdl373jo1nWddkLB/v+culGDEinl2SCw=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=R2dnjTDdAxtFe1SNVIGyD//Zr6oIkw6elS/2GxgPMzM=; h=date:mime-version:subject:message-id:from; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260123_015359_493855_18F7DAAD X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds MMC/eMMC controller support for Black Sesame Technologies C1200 SoC. BST is a leading automotive-grade computing SoC provider focusing on intelligent driving, computer vision, and AI capabilities for ADAS and autonomous driving applications. More information: https://bst.ai == Background == This is the MMC portion split from the original v4 series [1] following feedback from Arnd Bergmann [2]. The platform support (vendor-prefix, SoC bindings, Kconfig ARCH_BST, base DTS, defconfig ARCH_BST) has already been merged into Linux 6.19 through the SoC tree [3]. == Series Overview == Patch 1: dt-bindings: mmc: add binding for BST DWCMSHC SDHCI controller Patch 2: mmc: sdhci: allow drivers to pre-allocate bounce buffer Patch 3: mmc: sdhci: add Black Sesame Technologies BST C1200 controller driver Patch 4: arm64: dts: bst: enable eMMC controller in C1200 CDCU1.0 board Patch 5: arm64: defconfig: enable BST SDHCI controller Patch 6: MAINTAINERS: add MMC files to BST entry == Testing == - checkpatch.pl: PASS (all patches) - dt_binding_check: PASS - dtbs_check (CHECK_DTBS=y): PASS - Build tested with ARCH=arm64 defconfig == Changes since v4 == - Split: Platform patches merged separately via SoC tree; this series is MMC-only, submitted to MMC maintainers DT binding (patch 1): - Rename file from bst,dwcmshc-sdhci.yaml to bst,c1200-sdhci.yaml - Fix example compatible string to match property definition Driver (patch 3): - Fix compatible string to match dt-bindings (bst,c1200-sdhci) - Simplify clock divider calculation with clearer frequency range logic - Add linux/bits.h and linux/bitfield.h headers - Remove unused linux/ioport.h header - Rename SDHCI_TUNING_COUNT to BST_TUNING_COUNT - Rename BST_EMMC_CTRL_BIT2 to BST_EMMC_CTRL_RST_N - Fix BST_DEFAULT_MAX_FREQ from 2MHz to 200MHz - Convert kernel-doc to regular comments (per Adrian Hunter) - Add sdhci_bst_free_bounce_buffer() helper (per Adrian Hunter) == References == [1] v4: https://lore.kernel.org/lkml/20250923-v4-patch-final-v1-0-2283ad7cbf88@thundersoft.com/ [2] Split: https://lore.kernel.org/lkml/09b1318e-21dc-4354-8733-866b70696295@app.fastmail.com/ [3] Merged via soc-newsoc-6.19 Albert Yang (6): dt-bindings: mmc: add binding for BST DWCMSHC SDHCI controller mmc: sdhci: allow drivers to pre-allocate bounce buffer mmc: sdhci: add Black Sesame Technologies BST C1200 controller driver arm64: dts: bst: enable eMMC controller in C1200 CDCU1.0 board arm64: defconfig: enable BST SDHCI controller MAINTAINERS: add MMC files to BST entry .../bindings/mmc/bst,c1200-sdhci.yaml | 70 +++ MAINTAINERS | 2 + .../dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts | 19 + arch/arm64/boot/dts/bst/bstc1200.dtsi | 18 + arch/arm64/configs/defconfig | 1 + drivers/mmc/host/Kconfig | 14 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-of-bst.c | 521 ++++++++++++++++++ drivers/mmc/host/sdhci.c | 7 + 9 files changed, 653 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/bst,c1200-sdhci.yaml create mode 100644 drivers/mmc/host/sdhci-of-bst.c base-commit: 0f61b1860cc3f52aef9036d7235ed1f017632193 -- 2.43.0