From patchwork Mon Jun 19 11:51:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Gautier X-Patchwork-Id: 13284379 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 2554FEB64DA for ; Mon, 19 Jun 2023 11:52:25 +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=XJ8omWW2ikzDdCNt3fmUXkO2BcmL56aaMP+p1ZOVgA4=; b=3SGYUdauJ5ALMx TVAjZmwWFxdyjheKyEIf7K2GC1oSANLoM2FnsWHmNiIYlEoyTvF6zjWEQO+UxcUM4RjSNXG4MM3tR qi+VnZG2a8vVl2K9OyGX2xKoaMVS/du0UZgr0W/AH4rS9hUHNHj/0fC2RX6+y03qAh1PhT9TQd7i/ O3DoNJON+MOIQVJ+9jvfcLEuDlehS1DsvXXOH3i9GaeMq7woVOdiKJX2T55rtVgdKeaDrPcLNBako vCBlHjn5BnWGJprpTzhOfRSE/yj0QiSU198vy4JICO3WjJfbaobSaERAOh5u6qyxJWCbAwaoxNSIn 9FQr5anB6JyFs17sxB9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBDQN-008PPD-2s; Mon, 19 Jun 2023 11:51:59 +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 1qBDQK-008POF-1b for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 11:51:58 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35JAiV8x017493; Mon, 19 Jun 2023 13:51:31 +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=XMJnVSv0T7nCBxS+9vu0ogPkCSj//pIU8jGy+wxMdT8=; b=ZfJvzNYMtTbmpVrR74XAneE3UGXw5Gf9oAO8KxboaGR0xkIwHT44QYDAqo+lTx3YKFrA jsvGLydrY12uhjQFG0bkADarU0ydU7kOZ0H7WwCdCq2UTbfYZPePIHHbhy+lmQqfKa8S RmqSqev5ny8e8s3V/HCfiHmqGnlNcAn9cOlFkCoyBSr5V8RNu6qh3iY/gfX0sEeLFWMx wvMHe2o2cp+yv8B0TTgPJPWujIxdNSL/1rgvyjBNzJcMaH6UOYSxsVxsonRO5pfip0l5 hB9y8g7JNQXh9iK14njmxcTpxvvksGliK4rBrOUzuxFZkvO8wENRbBl+o3O3rFq+bkel og== 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 3rah6bt9jd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Jun 2023 13:51:31 +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 E14F810002A; Mon, 19 Jun 2023 13:51:28 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D34CC228A33; Mon, 19 Jun 2023 13:51:28 +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; Mon, 19 Jun 2023 13:51:28 +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 v2 0/6] Update MMCI driver for STM32MP25 Date: Mon, 19 Jun 2023 13:51:14 +0200 Message-ID: <20230619115120.64474-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.591,FMLib:17.11.176.26 definitions=2023-06-19_08,2023-06-16_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_045157_010312_DB2297D6 X-CRM114-Status: GOOD ( 15.56 ) 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 Changes in v2: - update dt-bindings file (remove bootloader reference and use enum) 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 | 7 +- drivers/mmc/host/mmci.c | 35 ++++ drivers/mmc/host/mmci.h | 8 +- drivers/mmc/host/mmci_stm32_sdmmc.c | 149 ++++++++++++++++-- 4 files changed, 179 insertions(+), 20 deletions(-)