From patchwork Thu Feb 15 13:34:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ludovic Barre X-Patchwork-Id: 873810 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nNJ6j2A4"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zhy3l4Qm3z9t3Z for ; Fri, 16 Feb 2018 00:36:35 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=VzMVViNBGHxlNwO/Bpjping6HphN6iJ1BFUwvGR+oak=; b=nNJ6j2A4c2+vgK Y+t2ijYr5jNOc2eX9MouVno0b0b2+yr31dwJFlpSIFS8wvnz4FWcGBDtquCim5Z6BKvkJPWgoojMU Hdi2aVU5i+8oEkdpQwE3yxSyaS7AIniVRCVy3ZsoqTuxIVjaahey+DV2oU6086J7cCx1LMrMx9I9s kYTcPOmYBZBYg0YG81M12VBU5YAiHiD2xTLo/L5z06aIbxA3iGb92wZFTNOr0M8XVdmPh7htKE02h pAyeDrFOVJZaQbsH2lqi6TsI4R9ng7Cis5xSAQXKwu4TsyB6Xvsk16CPYOpL9eDsTnSR0HYNLXUwU MFwmG12vAhf3q9mqshVA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emJi8-0006P7-SB; Thu, 15 Feb 2018 13:36:28 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1emJhf-0005yA-AO for linux-arm-kernel@lists.infradead.org; Thu, 15 Feb 2018 13:36:08 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w1FDYUPr017642; Thu, 15 Feb 2018 14:35:42 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2g22s07hh6-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Feb 2018 14:35:42 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9023E31; Thu, 15 Feb 2018 13:35:40 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4A1E24F2C; Thu, 15 Feb 2018 13:35:40 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.92) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 15 Feb 2018 14:35:39 +0100 Received: from lmecxl0923.lme.st.com (10.48.0.237) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 15 Feb 2018 14:35:39 +0100 From: Ludovic Barre To: Ulf Hansson , Rob Herring Subject: [PATCH 0/5] mmc: add stm32 sdmmc controller Date: Thu, 15 Feb 2018 14:34:52 +0100 Message-ID: <1518701697-14242-1-git-send-email-ludovic.Barre@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.48.0.237] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-02-15_05:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180215_053559_945562_68A2D674 X-CRM114-Status: GOOD ( 12.21 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [91.207.212.93 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Alexandre Torgue , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Ludovic Barre , Maxime Coquelin , Gerald Baeza , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: Ludovic Barre This patch serie adds support of stm32 SDMMC controller. stm32h7 is the first SoC to use stm32 SDMMC controller (previous SoC had pl180 controller). The SDMMC features include the following: -Full compliance with MultiMediaCard System Specification Version 4.51. Card support for three different databus modes: 1-bit (default), 4-bit and 8-bit. -Full compliance with SD memory card specifications version 4.1. SDR104 speed limited to maximum allowed I/O speed, SPI mode and UHS-II mode not supported. -Full compliance with SDIO card specification version 4.0. Ludovic Barre (5): dt-bindings: mmc: document the stm32 sdmmc bindings mmc: add stm32 sdmmc controller driver ARM: dts: stm32: add sdmmc support for stm32h743 ARM: dts: stm32: add sdmmc1 support for stm32h743i-eval ARM: configs: stm32: add mmc and ext2/3/4 support .../devicetree/bindings/mmc/st,stm32-sdmmc.txt | 35 + arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 26 + arch/arm/boot/dts/stm32h743.dtsi | 26 + arch/arm/boot/dts/stm32h743i-eval.dts | 11 + arch/arm/configs/stm32_defconfig | 4 +- drivers/mmc/host/Kconfig | 8 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/stm32-sdmmc.c | 710 +++++++++++++++++++++ drivers/mmc/host/stm32-sdmmc.h | 220 +++++++ 9 files changed, 1040 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/mmc/st,stm32-sdmmc.txt create mode 100644 drivers/mmc/host/stm32-sdmmc.c create mode 100644 drivers/mmc/host/stm32-sdmmc.h