From patchwork Wed Mar 7 13:20:09 2018 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: 130880 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5175160lja; Wed, 7 Mar 2018 05:21:06 -0800 (PST) X-Google-Smtp-Source: AG47ELs2Y7Kop1VB9LpD1H1zfMpx+wlKQ6r27TcENgkvQEv+4TKZANCeH0dw1D9VRjWcGq2TN6WD X-Received: by 10.99.96.18 with SMTP id u18mr18645409pgb.124.1520428866716; Wed, 07 Mar 2018 05:21:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520428866; cv=none; d=google.com; s=arc-20160816; b=BGnGm6X6Ne18N5JYY3XtNSIZ/cAMwVBODa+TSIult1a1N8AAQ244JBw1NncBZOi8AE /cMbLUrRCcVoR23tHltl7KBMaF5UFYtUalH6yHVbZ029b6jzUCub54Dm9ITaJ103tVPC ztynit3szKmAFg5Fu/2SwFgvHA0LmBfw8+ohUGxyFYx98DtbRLW2MQZIhhA6HvsJw/yO 1alxRznMzElCJE7arBkF9KPIZH8S1WKrFIvGKcts2RZ1hqHOsAPkZkO/LrkbriOieVO0 Xv2AxEW+QmlSKDSRqgkOQ8iA5lMTTOcjWcyon0v+bK92xZK54xGhgBTWIoka5weKv17z XNHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=y8ii5sQTkjIbVQ0rJge6Gtcneq+pm+STjpDN7HdNupA=; b=PYpIYD5+J2D+O53vKlE3bvYo9G70GS+qM4IbJSW/fMgx6UBBedj2r0u3M7d4iM5dZo bW5dGC7c8Qfr79MXVH45zkmBCCpmxf5/Zzx42Eu2cAPXWtnqIo/faAid8oxTFUQ9bbV6 SSNoUJXl9e+6wu8djxxOA08k8/H/+iJzDp5JBEk5DIm2PkPFSsre0i/dKvhdkyHyKf+B ldpfveq+RF4IaEbVjqhTeIUT6p6gZpnIrAtAbDk2/JaF1jKLuVHsMWtGR6XTR8+C8n+Q 47cp0E4JMzab4sIaSrWLM32LY+1gHcwqeK1xBSW0JfNC9+iZy8G7Jf62M9TiZnuReIrn js8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=grPZukTt; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z96-v6si12893575plh.35.2018.03.07.05.21.06; Wed, 07 Mar 2018 05:21:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=grPZukTt; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751241AbeCGNVE (ORCPT + 5 others); Wed, 7 Mar 2018 08:21:04 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:62558 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbeCGNVD (ORCPT ); Wed, 7 Mar 2018 08:21:03 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w27DKSUC004019; Wed, 7 Mar 2018 07:20:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1520428828; bh=Y1Ya93Ope3/tZ9rGURZhQpF9QhFEQPZdxdoEImB3XW4=; h=From:To:CC:Subject:Date; b=grPZukTt2ZpPBQAB+ZWidbJjkH2mfmb+hnV2pmV4aCLwcFgV0bnI0gjm6ZRQiu43c hW5InRefENegFm6gnNKQ9FBoe+Wm1vg0PlvR2QEFwfKY+TcHy5uSOzY2gtWeQtkZA/ X+hEiZApZwdZ0qxAJ5qEvhKtQQljH1a2P6vYv968= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w27DKSgP015559; Wed, 7 Mar 2018 07:20:28 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 7 Mar 2018 07:20:28 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 7 Mar 2018 07:20:28 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w27DKMnK018331; Wed, 7 Mar 2018 07:20:23 -0600 From: Kishon Vijay Abraham I To: Ulf Hansson , Tony Lindgren , Adrian Hunter CC: Rob Herring , Mark Rutland , Russell King , , , , , , Subject: [PATCH v3 00/11] mmc: sdhci-omap: Add UHS/HS200 mode support Date: Wed, 7 Mar 2018 18:50:09 +0530 Message-ID: <20180307132020.30951-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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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 patches are created on top of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next Patches in v2 already applied to mmc -next are dropped from the series. Changes from v2: *) Changed SW timeout logic as per Adrians's suggestion *) Validated SDIO with the current patches (added a couple of fixes found while adding SDIO support). *) Used soc_device_match() instead of pdata-quirks as per Tony's suggestions. Changes from v1: *) Only poll on DAT0 and DATI for card_busy status *) Cleanup iodelay patch as suggested by Tony. *) Added quirk to disable HW timeout *) Use the existing data timer but program a relatively accurate SW timeout value (Impacts all platforms) *) Fix a bug in sdhci which was using data_timer for non data line commands Kishon Vijay Abraham I (11): mmc: sdhci-omap: Fix when capabilities are obtained from SDHCI_CAPABILITIES reg mmc: sdhci-omap: Remove setting ADMA capability in driver mmc: sdhci-omap: Workaround for Errata i843 mmc: sdhci-omap: Invoke sdhci_get_of_property to read sdhci dt properties mmc: sdhci: Disable HS200 mode if controller can't support 1.8v mmc: sdhci: Add quirk to disable HW timeout mmc: sdhci: Program a relatively accurate SW timeout value mmc: sdhci-omap: Workaround for Errata i834 dt-bindings: sdhci-omap: Add K2G specific binding mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC mmc: sdhci-omap: Add sdhci_omap specific ops for enable_sdio_irq .../devicetree/bindings/mmc/sdhci-omap.txt | 2 + drivers/mmc/host/sdhci-omap.c | 78 +++++++++++++++++++--- drivers/mmc/host/sdhci.c | 75 +++++++++++++++++---- drivers/mmc/host/sdhci.h | 15 +++++ 4 files changed, 148 insertions(+), 22 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Tony Lindgren Acked-by: Adrian Hunter