Received: by 10.223.148.5 with SMTP id 5csp7535117wrq; Thu, 18 Jan 2018 06:38:31 -0800 (PST) X-Google-Smtp-Source: ACJfBov+XaxTFwLdFPn2gMv7Vk+ksRLKk6ZFWA+19pdfwRVJ/o3MXf6DZHeHi6vw0dNxaRhqu+2T X-Received: by 10.101.77.8 with SMTP id i8mr9676133pgt.308.1516286311152; Thu, 18 Jan 2018 06:38:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516286311; cv=none; d=google.com; s=arc-20160816; b=O41QTmEUhdpi9lk3zp43G0PThpHLqPQSrqRYt2z0TwT08dUon0wVyKpf9JVC/bRHUX lboxo0u9nNEStlMxAKZrVwi2Eh6aQ8RFjiGDOmC/FddJ9gGbNmNFk/8DIUPsfsNkC+n6 bCcyCAACl8Ge+qs+RcRTnyVwjUCklhS6946yqLk0y3AFemen0K1EXBiGJWMvdHnehYUU iRHfz4T1f50NNYG3EeXiBZa3NWW8wSy7ghNXiCmY5GdkejPWqZzch4mbphtfXO2fiStz p1xXnNZ+Uy9MNDmsg0yFMsVlkeOwEtqMVCUhBSenpi6o/bcrKKS4fsrQ3AvP1F+qDX3F KsSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=bO1LMUNQ+ds1PV0UK798BoOf72VDO8w4TiLdBp7kLWI=; b=xQ6TbCFzIfmHS9HMhZwYLnPvIVCUiFrlBsCp2giUdno6Luu+2k3y2eqnuhfTFGv4zw BpT6rhGU/QBCA1svgvogqykCVdghVxAqd5Mdm1sz9H6EIHVxtKtXlXjQ/Gb4rd8yR4TG opCyDGzi/R/6xULlBfayv6CTNvyFf4XInlvhgtX6mlsbAFJ94aenQKP51QsDNPJJymS4 YkPV87q3YwOMFy+rNEbr3rieCIrth0q5aingwr5mH4g9guU8Fu05uK9yhAyUH/lEujbG g9xC2G9MNCYR+Z40qEmhsiEBXVrR4ovCcN3yePX32rA5V4GHQTksNTCXPHBbGBNZYNYj 4JMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si6168372pgf.103.2018.01.18.06.38.17; Thu, 18 Jan 2018 06:38:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932545AbeAROhi (ORCPT + 99 others); Thu, 18 Jan 2018 09:37:38 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:18330 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756624AbeAROgI (ORCPT ); Thu, 18 Jan 2018 09:36:08 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w0IEYUrD028883; Thu, 18 Jan 2018 15:34:52 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2fgyacvxrm-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 18 Jan 2018 15:34:52 +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 084303A; Thu, 18 Jan 2018 14:34:50 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C06A62646; Thu, 18 Jan 2018 14:34:50 +0000 (GMT) Received: from localhost (10.75.127.46) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 18 Jan 2018 15:34:50 +0100 From: To: Russell King , Ulf Hansson , Michael Turquette , Stephen Boyd , Linus Walleij , Rob Herring , Mark Rutland , Alexandre Torgue CC: , , , , , , Patrice Chotard Subject: [PATCH v3 00/14] Add MMCI support for STM32F SoCs family Date: Thu, 18 Jan 2018 15:34:16 +0100 Message-ID: <1516286070-24927-1-git-send-email-patrice.chotard@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To SFHDAG6NODE3.st.com (10.75.127.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-18_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Patrice Chotard This series reworks patches submitted one year ago by Andrea Merello [1] but without succeed to merged it. STM32F4 and STM32F7 SoCs families embeds a variant of the ARM PrimeCell PL18x SD host controller, for which the mmci driver exists. This series adds support for these SoCs to the mmci driver. As other variants, this one need some specific quirks, that this series address. This series has been tested on following boards : _ stm32f429-eval _ stm32f469-disco _ stm32f746-eval _ stm32f769-disco DT update for stm32f7 pinctrl, stm32f746-eval and stm32f769-disco boards will be sent later to avoid conflict with pending stm32f7 series [1] which is not yet merged on kernel mainline. [1] https://www.spinics.net/lists/linux-mmc/msg41616.html [2] https://patchwork.kernel.org/patch/10104447/ v3: _ patch 3: use variant->opendrain instead of host->variant->opendrain _ patch 4: exit from probe() if no pinctrl dt node are found _ previous patch 15: removed as already applied in pinctrl tree v2: _ add Revievied-by, Acked-by in some patches _ replace bool by u32 for start_err and opendrain fields of struct variant_data _ split previous patch 3 in two parts, first patch clean the open drain bit code and second part add pinctrl pins management when no open drain bit is available. _ replace "pl180" by "PL180" in patch "mmc: mmci: Add STM32 variant" Andrea Merello (2): ARM: dts: stm32: Add pin map for SDIO controller on stm32f4 ARM: dts: stm32: Enable SDIO controller on stm32f469 disco board Patrice Chotard (12): mmc: mmci: Don't pretend all variants to have MMCIMASK1 register mmc: mmci: Don't pretend all variants to have MCI_STARBITERR flag mmc: mmci: Don't pretend all variants to have OPENDRAIN bit mmc: mmci: Add support for setting pad type via pinctrl mmc: mmci: Add STM32 variant ARM: dts: stm32: Add SDIO controller for stm32f746 ARM: dts: stm32: Add SDIO controller for stm32f429 ARM: dts: stm32: Enable SDIO controller on stm32429i-eval board ARM: stm32: Add AMBA support for STM32F4 and STM32F7 SoCs ARM: configs: stm32: Enable MMC_ARMMMCI support ARM: configs: stm32: Enable EXT3_FS support clk: stm32: Add clk entry for SDMMC2 on stm32F769 arch/arm/boot/dts/stm32429i-eval.dts | 19 +++++ arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 31 +++++++++ arch/arm/boot/dts/stm32f429.dtsi | 11 +++ arch/arm/boot/dts/stm32f469-disco.dts | 19 +++++ arch/arm/boot/dts/stm32f746.dtsi | 22 ++++++ arch/arm/configs/stm32_defconfig | 3 + arch/arm/mach-stm32/Kconfig | 3 + drivers/clk/clk-stm32f4.c | 3 +- drivers/mmc/host/mmci.c | 124 ++++++++++++++++++++++++++++----- drivers/mmc/host/mmci.h | 6 ++ 10 files changed, 224 insertions(+), 17 deletions(-) -- 1.9.1