From patchwork Thu Dec 14 13:09:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 848530 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=65.50.211.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="SmuIOOD+"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="v3N3QvkT"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3yyDbb0QSGz9t2f for ; Fri, 15 Dec 2017 00:16:27 +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=AvViGt+abDF9Oy27XVNWaEZ/WFCNR0/XuUd/rLaNZQo=; b=SmuIOOD+scVqov h10gBNMxoxtB/m63NlyvF2o/MggHLTK3LzorRRl9vVbqTPtvTkMLGahqKpdsiGflpEmrNXEl7fIjT EkHwZK5qd5Y6UnJBolZwy0Pc6zo26nm9uieB5vzqu0cBEeTM1gOOCvXRMEoVD2hlwS9RJz2rNw9qg CIiT4Yb72CJ1W0CwORGtBsaDgXoYZ20dF88x50ayASzk1wla94F74zf357CI3sjlBg6d0ZabZEVIn Uj9EaVNk9Ne6pCgA6HQp/m9GlPhjR0UYnxTWpQ8vggnEcSiwkfBSb6EtgBkbnJWzODqCS9nAQ3cEO 53Cy/BOxSIxQyXjiGGKQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePTNB-0005kK-B3; Thu, 14 Dec 2017 13:16:25 +0000 Received: from fllnx209.ext.ti.com ([198.47.19.16]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePTJ2-0000lS-R2 for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2017 13:13:07 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id vBEDA8Fj022171; Thu, 14 Dec 2017 07:10:08 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1513257008; bh=XtfT/CMAIh0+fFKfxxv8By0CQR80kugwzTgXDqqNptY=; h=From:To:CC:Subject:Date; b=v3N3QvkT73mdJmChlJhedtM/kzXYvJEbTHxjdPnEDUJdCRhsosYCb6X6ZQlADG0cm 36oWODJf9FBKXUmvJyxOYoScK/jB0/kXmuiguTpM49b25QwmRy+S2hJ4k8Y/bnn4rR C2CSUAaplhdC/oB6Ly3CUr9THEbLtv4Y5FLSFxpE= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBEDA3P3013336; Thu, 14 Dec 2017 07:10:03 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Thu, 14 Dec 2017 07:10:02 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Thu, 14 Dec 2017 07:10:02 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBED9wdM032017; Thu, 14 Dec 2017 07:09:59 -0600 From: Kishon Vijay Abraham I To: Ulf Hansson , Rob Herring , Tony Lindgren , Adrian Hunter Subject: [PATCH 00/12] mmc: sdhci-omap: Add UHS/HS200 mode support Date: Thu, 14 Dec 2017 18:39:29 +0530 Message-ID: <20171214130941.26666-1-kishon@ti.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171214_051209_801058_482F02DF X-CRM114-Status: UNSURE ( 8.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.47.19.16 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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: Mark Rutland , devicetree@vger.kernel.org, kishon@ti.com, nsekhar@ti.com, linux-mmc@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, 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 Add UHS/HS200 mode support in sdhci-omap. The programming sequence for voltage switching, tuning is followed from AM572x TRM http://www.ti.com/lit/ug/spruhz6i/spruhz6i.pdf (Similar to all AM57x/DRA7x SoCs). The patch series also implements workaround for errata published in http://www.ti.com/lit/er/sprz429k/sprz429k.pdf. While most of this series is specific to sdhci-omap, it also patches sdhci to use software timer when the requested timeout is greater than hardware capablility. This re-uses the SW data timer already implemented in sdhci while disabling the HW timeout (so that spurious timeout is not observed). The patch for sdhci.c is based on an earlier patch that was done specific to omap_hsmmc.c (https://patchwork.kernel.org/patch/9791449/) It also includes a pdata-quirk patch since both pdata-quirks and sdhci-omap uses struct sdhci_omap_platform_data. The dt patches enabling UHS/HS200 will be follow this patch series. This series is created on git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next Kishon Vijay Abraham I (12): mmc: sdhci-omap: Update 'power_mode' outside sdhci_omap_init_74_clocks mmc: sdhci-omap: Add card_busy host ops mmc: sdhci-omap: Add custom set_uhs_signaling sdhci_host ops mmc: sdhci-omap: Add tuning support mmc: sdhci-omap: Workaround for Errata i802 mmc: sdhci_omap: Add support to set IODELAY values mmc: sdhci_omap: Fix sdhci-omap quirks mmc: sdhci-omap: Add support to override f_max and iodelay from pdata mmc: sdhci: Use software timer when timeout greater than hardware capablility dt-bindings: sdhci-omap: Add K2G specific binding mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC ARM: OMAP2+: Use sdhci-omap specific pdata-quirks for MMC/SD on DRA74x EVM .../devicetree/bindings/mmc/sdhci-omap.txt | 2 + arch/arm/mach-omap2/pdata-quirks.c | 34 +- drivers/mmc/host/sdhci-omap.c | 446 ++++++++++++++++++++- drivers/mmc/host/sdhci.c | 41 +- drivers/mmc/host/sdhci.h | 11 + include/linux/platform_data/sdhci-omap.h | 35 ++ 6 files changed, 544 insertions(+), 25 deletions(-) create mode 100644 include/linux/platform_data/sdhci-omap.h Reviewed-by: Rob Herring Acked-by: Adrian Hunter Acked-by: Adrian Hunter Acked-by: Adrian Hunter