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: 13284373 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A892EEB64DC for ; Mon, 19 Jun 2023 11:52:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbjFSLwF (ORCPT ); Mon, 19 Jun 2023 07:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjFSLwE (ORCPT ); Mon, 19 Jun 2023 07:52:04 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EE4610B; Mon, 19 Jun 2023 04:52:03 -0700 (PDT) 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 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.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(-)