From patchwork Thu Jun 15 09:19:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Gautier X-Patchwork-Id: 13280938 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 2F5BCEB64D9 for ; Thu, 15 Jun 2023 09:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9DC7GaburfcWj4DFT6w1oeo8TGuNenjTpPAg7SwmAmQ=; b=ISx1Ksc5YAXPgz IubBVGsqneeoiZ27WVBv1N1GjP74ZYoaCtdji5hQbPlkQYNuG1JOk2LLVKoZ5R/kAB8Hqr8pzmRTR FSUXvkEzHoMlIig9GnHshpCVVRyOGQFHPID26IUV8OJ5cfWxZ6af5Zp29FHJGAvvFVizEpjILOThv cflw8HMhy8WpN/3I3u7wJU6S/vNCLnfmFiQrn9lV0ZKaB0W+HKNLnNskhXZZenqlDVENrdXg7uP9D nwbEyHp2IhDFUr7JKpZpVXawr1keFbGs6z6OJ18QZm8Ras03K5QgId4ys+L7OKPxEwnb9uk/RwhT4 U/s98h8SjzgyNFLKqVhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q9j9m-00EH1s-2G; Thu, 15 Jun 2023 09:20:42 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q9j9j-00EH0i-0b for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2023 09:20:40 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35F7tDqF022612; Thu, 15 Jun 2023 11:20:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=fV+MUTfMQZ55uq32Wxz0qSm4NPFewZXzm6azDpLbunA=; b=d5BrOOap237y2IVKM1DsnNHEdGbytRp34z96fcvZ1wj/lBTH2wUneTU+XxmbBnebqGxa Du7fWNtpHN2orZJHljU4Ztu1HqT8uwodqf98NiDlRq+7/gTugrbUnDXPUsLENY5He6JM uoTGN9AlzuttVyr/d/ocBJ5Lp+bVWdlg44UVTZH1Bs/vsdBpZip7Uv8Zp5o/CRjfwx0v 8eWIvNa3WAI8qeQR/s8Ky294KDQwg2z/RlanR3WLkE7oU90LYWrKbMfF4OnhKE+KOu/b lxZEM0ub8cVCYd5DIK6PqPQP7oaXdru0Q9mdH7BS9MPj54/V8dNIsuVx4Jghf9/1Vllf 3w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3r7vkfsqb8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 11:20:09 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D7DB510004A; Thu, 15 Jun 2023 11:20:07 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C8CF121A231; Thu, 15 Jun 2023 11:20:07 +0200 (CEST) Received: from localhost (10.201.21.210) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 15 Jun 2023 11:20:06 +0200 From: Yann Gautier To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , , CC: Conor Dooley , Russell King , Philipp Zabel , Christophe Kerello , , Marek Vasut , Alexandre Torgue , Maxime Coquelin , Linus Walleij , Yang Yingliang , Xiang wangx , , , Yann Gautier Subject: [PATCH 0/6] Update MMCI driver for STM32MP25 Date: Thu, 15 Jun 2023 11:19:55 +0200 Message-ID: <20230615092001.1213132-1-yann.gautier@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.201.21.210] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-15_06,2023-06-14_02,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230615_022039_528115_66B4D3E3 X-CRM114-Status: GOOD ( 15.40 ) 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 STM32MP25 is a new SoC from STMicroelectronics. The machine was pushed by Alexandre [1] in his tree. On this new SoC, the SDMMC peripheral, using PL18x/MMCI driver has been updated to v3. The driver has been updated to manage this new version, and the new features it supports: * FIFO size increased from 64B to 1kB * IDMA size alignment/mask updated * New block gap hardware flow control * Delay block updated and dependent on SoC This series was pushed on top of next branch in Ulf's mmc tree, as it requires feedback clock update patch [2]. [1] https://lore.kernel.org/lkml/59f4a900-34ee-d991-c350-265d38e7c862@foss.st.com/T/ [2] https://lore.kernel.org/r/20230613150148.429828-1-yann.gautier@foss.st.com Yann Gautier (6): dt-bindings: mmc: mmci: Add st,stm32mp25-sdmmc2 compatible mmc: mmci: add stm32_idmabsize_align parameter mmc: mmci: Add support for sdmmc variant revision v3.0 mmc: mmci: stm32: manage block gap hardware flow control mmc: mmci: stm32: prepare other delay block support mmc: mmci: stm32: add delay block support for STM32MP25 .../devicetree/bindings/mmc/arm,pl18x.yaml | 6 + drivers/mmc/host/mmci.c | 35 ++++ drivers/mmc/host/mmci.h | 8 +- drivers/mmc/host/mmci_stm32_sdmmc.c | 149 ++++++++++++++++-- 4 files changed, 181 insertions(+), 17 deletions(-)