Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3963516imu; Mon, 10 Dec 2018 10:38:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/XSbmWFMAHZ0oDFv4WH7uvTigSYJa2FykQM1bws4CgO/taY49X8lJfTt1IOvBDsvm88iOgi X-Received: by 2002:a17:902:2a66:: with SMTP id i93mr12819276plb.113.1544467105912; Mon, 10 Dec 2018 10:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544467105; cv=none; d=google.com; s=arc-20160816; b=FS80aLXfvcTIvrMya0JmQ5Ffn8B6SUKGdw5U06/JsEINsJWYklxEJquGSNRBk0gQ3Z nNiagk1RJ9URQHkI30GqZUqFWZ+dYZdnKeF3TKcWdBAvrllC09WGy17K9WYxezp96lyT DDE2h4RowOSd9wIeOLvqmzMmNRHKRy2uS3yyNzZnx+l7kLcZq8Ud92tgJbm6mNdVh4yc VJXLQjPPJWdblag4PV1piw0Be9vWtFsJbiKCqx2x2HdJzt/oZaOAie1lVZFRJo7tIiE5 dQBGq/fnbXh2xUe1sZF7kykGh/A+MKYI5PYuZP1mZ+FI9yB2obzsZV4XV3lU2EH8xFSz V4HQ== 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; bh=kwxgW5hrxxyvv5BsKvPXkFnltap/3pj5q/x0IItJdH8=; b=Zpe7zBcNtXfVVHn+Zik1uBPgdbBxtll4xAOB/ex7ELHkcBHv7h38qs6pZB0vD4bPB8 HaAcxk06hbPXKRf7lVgscu31JGhNGhaBwy2GaUhW2o2NPdZtS8kl4R/XpZDsRntn2iai KpN3dGhzkFeeGFLTVZsPWjfNJOAhBBC92h+zAaczDy0csTCNsMDZm0ve7oRW36L1fmp5 7q2MP20Y4mOgWseBZPXNCSuv5bXABS9+y0CiQeWhl1wZ53reiMCHk6wNG1F/bejFJ4BF eSW4bLLgKnRk2ZrB4mOnEBJEOkE3zax5mLEDHK5bje63rhYjqf3vcj/011tO5Y2eTgl8 r85w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EtqQxdIo; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) 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 d34si9550586pgb.43.2018.12.10.10.38.11; Mon, 10 Dec 2018 10:38:25 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EtqQxdIo; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728902AbeLJScq (ORCPT + 99 others); Mon, 10 Dec 2018 13:32:46 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:51438 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728870AbeLJScp (ORCPT ); Mon, 10 Dec 2018 13:32:45 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id wBAIWNpJ095311; Mon, 10 Dec 2018 12:32:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1544466743; bh=kwxgW5hrxxyvv5BsKvPXkFnltap/3pj5q/x0IItJdH8=; h=From:To:CC:Subject:Date; b=EtqQxdIoW7DqCpn7nKZuC84HL+ECZ1o9xoSJoURgDt096jHjhVRWKxuofb87kKX1F qYMgdbXrro6d1uIvWCrnmB5I2ZvcLe3UoJc7ATUsuAt818948X8WXQkIVxyZ6psply TuDf5CBzFy34QyPlqnq4++H8tTxuXheLrR1ywRkA= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wBAIWNaM101797 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Dec 2018 12:32:23 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 10 Dec 2018 12:32:23 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 10 Dec 2018 12:32:23 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wBAIWJdM020318; Mon, 10 Dec 2018 12:32:20 -0600 From: Faiz Abbas To: , , , CC: , , , , , , Subject: [PATCH v3 0/3] Add driver Support for MMCSD on AM654x Date: Tue, 11 Dec 2018 00:05:04 +0530 Message-ID: <20181210183507.9617-1-faiz_abbas@ti.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v3: 1. Removed reference to clk_ahb as its not being used. 2. Added comment for pm_runtime being used for enabling clocks. 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 | 374 ++++++++++++++++++ 6 files changed, 428 insertions(+), 46 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-am654.txt create mode 100644 drivers/mmc/host/sdhci_am654.c -- 2.19.2