From patchwork Fri Dec 7 08:11:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Faiz Abbas X-Patchwork-Id: 10717607 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 794F01932 for ; Fri, 7 Dec 2018 08:09:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68FE62E17E for ; Fri, 7 Dec 2018 08:09:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D5742E18A; Fri, 7 Dec 2018 08:09:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D7D052E17E for ; Fri, 7 Dec 2018 08:09:45 +0000 (UTC) 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=Q6ITtEIO+IHXSZlWZvdfV4dz4+wxtNXtT61D6ttM5xI=; b=c1a2zrFFo3CRIo CTnPTSr/zBcsWifY47BI5MJV5kcL5c3SIP5lcxap4xlan6LUYYxAN6QY9q4Q3fQq+n4eJedwcAyDp q9EJPo1z5ZMwTV73VSB7RwFLzPHP8rIOWVaGZam2Ji4zubCEZLmPtAieeaPH7kaML8kL6NwSiedOB TxYC0KbNlhrMqOiw6rACzRE+D9d4/niSGYUTPHEJSikYiDS8me48lda49HUeLUYJYDfmpNBAi6gw3 ITjthQcjEKnPgfp3tGNQ65CB0T+pPTBrF0nEPXApI+T2V/YXrYUB+UEJBVMsLrkeZDKdqffc89X/F m0pCyjwCQrMx7Dd4ymEA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVBCf-0007xn-QL; Fri, 07 Dec 2018 08:09:41 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVBBv-00079k-ME for linux-arm-kernel@lists.infradead.org; Fri, 07 Dec 2018 08:08:57 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id wB788ZCk070032; Fri, 7 Dec 2018 02:08:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1544170115; bh=rO+aPqD6+w1cIFgTW+ceCmjLX88dliF5vIUwiBWgSDA=; h=From:To:CC:Subject:Date; b=N3U/keQs8z6nJd2nTXQ6kna5YP/1Lthuhiw8V+YdMRTynFjbQcaw6lYnEPKGblwWl Bxaw2wB/4wExYpI34E6MHc4jSaWniH6aQEdGKYfeNQ1H0v7V1he+rcZqV5qx6wj8NU q56YcBBOGfgBpACJE8k8G/CW5cxqFAj1kSdsMpgg= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wB788Z3Y122743 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Dec 2018 02:08:35 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 7 Dec 2018 02:08:34 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 7 Dec 2018 02:08:34 -0600 Received: from a0230074-OptiPlex-7010.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 wB788Vud010977; Fri, 7 Dec 2018 02:08:31 -0600 From: Faiz Abbas To: , , , Subject: [PATCH v2 0/3] Add driver Support for MMCSD on AM654x Date: Fri, 7 Dec 2018 13:41:16 +0530 Message-ID: <20181207081119.29162-1-faiz_abbas@ti.com> X-Mailer: git-send-email 2.19.2 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-20181207_000855_800818_B9CB18EA X-CRM114-Status: GOOD ( 14.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, ulf.hansson@linaro.org, adrian.hunter@intel.com, kishon@ti.com, robh+dt@kernel.org, faiz_abbas@ti.com, michal.simek@xilinx.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The following patches add driver support for MMCSD on TI's AM654 platforms. Previously I had added the support to sdhci-of-arasan driver with a separate phy driver[1]. Since then it has turned out that tuning operation (for HS200, HS400 and SDR104 speed modes) will require configuration of phy registers. This completely breaks the model of the sdhci-of-arasan driver which relies on a separate driver to configure the phy register space. Because of this, I am creating a new driver with both the sdhci and phy register spaces. This helps me use the phy registers in a future patch that adds tuning support. DT patches will be posted in a separate series. Changes in v2: 1. Reset OTAP delay back to default value in init. 2. Improved patch description for patch 2. 3. Minor style fixes. [1] driver and phy patches posted before https://patchwork.kernel.org/project/linux-mmc/list/?series=26623 Faiz Abbas (3): dt-bindings: mmc: sdhci-am654: Document bindings for the host controllers on TI's AM654 SOCs dt-bindings: mmc: sdhci-of-arasan: Add deprecated message for am65 mmc: sdhci_am654: Add Initial Support for AM654 SDHCI driver .../devicetree/bindings/mmc/arasan,sdhci.txt | 4 + .../devicetree/bindings/mmc/sdhci-am654.txt | 37 ++ drivers/mmc/host/Kconfig | 12 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-of-arasan.c | 46 --- drivers/mmc/host/sdhci_am654.c | 381 ++++++++++++++++++ 6 files changed, 435 insertions(+), 46 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-am654.txt create mode 100644 drivers/mmc/host/sdhci_am654.c