From patchwork Thu Dec 14 13:40:53 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: 121947 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6820906qgn; Thu, 14 Dec 2017 05:42:41 -0800 (PST) X-Google-Smtp-Source: ACJfBosx0BoG4LSTXmule9/DlWT9X/zmCYjszyirg5wRqHWS2XYrW3kpLaNtg80MTzwu/d2Anm4q X-Received: by 10.159.196.135 with SMTP id c7mr1839855plo.197.1513258961738; Thu, 14 Dec 2017 05:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513258961; cv=none; d=google.com; s=arc-20160816; b=sCIQFw9uN34uDchaU8OO5jgpmxPtXWAK0XCUFSTZK+x7h93tZAhYbEpccO6WB+NFEs akxIkMo7lflEwVS+IW5ycCcmWDapa+7TqWmpjaS+JUT12xo7R7ugdkvp0+4whKVa0M8J M7bvvjIWBjxbzvcEOKukHQjP304pRRUIMAzS9eKY8YFAsCvM4U5Ixrvp1PvKf8Ul+VT0 Hexi7NaFiI73cZbNuEiQNltLndWUjZpaGephKpZ8GlBlskO2wJND2w9bnODONPq+Q/OM vgC39k7OqpQ7BriWiF6eNIipb1sOCBka2q03NOgSkpC8RDTZlYWb3OFVNG6QlQ3OyeM7 sYOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=b6Tope3GF3bREZ4bkBrEHplUha06K7pv2qchT8wZRC0=; b=CcdgWyRCyCN0aAcf91sf0IjYmfefpL/myBVMg89FcpM3ZHISQoSQYwNHd/vqO9FSsZ npJp5Q4ODTb0yBND/yCQOg6Gvw5XwY9Psn6KCvEd7vaQUpV8f0V23JeKk+fs6mAi+vEu VoyPXp+jycRy4aJLiGFTkN2KW238FQ7zGoNCTRMABCEUIKj3jbVUNsMDoQFtb4lrQbEb tzcQDkjMqDR9ETYh1MJCYNfg6sgpy4LVtIdpvaBIxRCYNpGFMNSwIVc/k+QMkPu0nPcQ 6JQbFjeCgrLPWyjsSNztMv+WoECeZH0BjuSYvU2114t6fd8ABoOO4hztecD7fXmmjoMD zgKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GFIQ1NXg; 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 h5si2953803pgv.9.2017.12.14.05.42.41; Thu, 14 Dec 2017 05:42:41 -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=GFIQ1NXg; 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 S1752886AbdLNNmh (ORCPT + 20 others); Thu, 14 Dec 2017 08:42:37 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:34466 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbdLNNme (ORCPT ); Thu, 14 Dec 2017 08:42:34 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id vBEDfrA6017613; Thu, 14 Dec 2017 07:41:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1513258913; bh=4J7NvRIbdFzga4unepcht9FtoPepN1qo8BZGTYogrIw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GFIQ1NXgUB8CGS25EZf4LhgXp/3z5/OdnDVVcoVMtD3y7Wz4mFwFdIQpqOVxw9D4l 5Fx9rHZsLXK/mxwhlEwWCAw6Salxk/9W74kS1mYvT2xgwzsUFOQdFdpUsoNTQmwmRO cgemy6W0cocSDHUc7BqxgprcYW5Q0fE8TMMt8PlY= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBEDfrGD003403; Thu, 14 Dec 2017 07:41:53 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE111.ent.ti.com (157.170.170.22) 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:41:53 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE113.ent.ti.com (157.170.170.24) 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:41:53 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBEDewBQ009855; Thu, 14 Dec 2017 07:41:49 -0600 From: Kishon Vijay Abraham I To: Tony Lindgren , , Santosh Shilimkar CC: Rob Herring , Mark Rutland , Russell King , , , , , , , Subject: [PATCH 13/14] ARM: dts: dra7: Use sdhci-omap programming model Date: Thu, 14 Dec 2017 19:10:53 +0530 Message-ID: <20171214134054.7749-14-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171214134054.7749-1-kishon@ti.com> References: <20171214134054.7749-1-kishon@ti.com> MIME-Version: 1.0 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 Use sdhci-omap programming model based on the generic sdhci library for programming the first 2 instances of eMMC/SD/SDIO controller. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 3 +-- arch/arm/boot/dts/am57xx-idk-common.dtsi | 2 +- arch/arm/boot/dts/dra7-evm.dts | 1 + arch/arm/boot/dts/dra7.dtsi | 25 ++++++++++++++++--------- arch/arm/boot/dts/dra72-evm-common.dtsi | 2 +- arch/arm/boot/dts/dra76-evm.dts | 3 ++- 6 files changed, 22 insertions(+), 14 deletions(-) -- 2.11.0 diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi index 50e7c3c0d111..44e6720bc939 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi @@ -444,8 +444,7 @@ vmmc-supply = <&vdd_3v3>; vqmmc-supply = <&vdd_3v3>; bus-width = <8>; - ti,non-removable; - cap-mmc-dual-data-rate; + non-removable; }; &sata { diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi index 43cdf523a8a0..855c130afc69 100644 --- a/arch/arm/boot/dts/am57xx-idk-common.dtsi +++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi @@ -423,7 +423,7 @@ vmmc-supply = <&v3_3d>; vqmmc-supply = <&v3_3d>; bus-width = <8>; - ti,non-removable; + non-removable; max-frequency = <96000000>; }; diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index ef9c90daa74b..b5ec42f16efc 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -351,6 +351,7 @@ status = "okay"; vmmc-supply = <&evm_1v8_sw>; bus-width = <8>; + non-removable; pinctrl-names = "default", "hs", "ddr_1_8v-rev11", "ddr_1_8v", "hs200_1_8v-rev11", "hs200_1_8v"; pinctrl-0 = <&mmc2_pins_default>; pinctrl-1 = <&mmc2_pins_hs>; diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index ac9216293b7c..1acd77f29d0b 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -1057,17 +1057,21 @@ }; mmc1: mmc@4809c000 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,dra7-sdhci"; reg = <0x4809c000 0x400>; interrupts = ; ti,hwmods = "mmc1"; - ti,dual-volt; - ti,needs-special-reset; - dmas = <&sdma_xbar 61>, <&sdma_xbar 62>; - dma-names = "tx", "rx"; status = "disabled"; pbias-supply = <&pbias_mmc_reg>; max-frequency = <192000000>; + sd-uhs-sdr104; + sd-uhs-sdr50; + sd-uhs-ddr50; + sd-uhs-sdr25; + sd-uhs-sdr12; + cap-sd-highspeed; + mmc-ddr-1_8v; + cap-mmc-highspeed; }; hdqw1w: 1w@480b2000 { @@ -1078,15 +1082,18 @@ }; mmc2: mmc@480b4000 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,dra7-sdhci"; reg = <0x480b4000 0x400>; interrupts = ; ti,hwmods = "mmc2"; - ti,needs-special-reset; - dmas = <&sdma_xbar 47>, <&sdma_xbar 48>; - dma-names = "tx", "rx"; status = "disabled"; max-frequency = <192000000>; + cap-sd-highspeed; + sd-uhs-sdr25; + sd-uhs-sdr12; + mmc-hs200-1_8v; + mmc-ddr-1_8v; + cap-mmc-highspeed; }; mmc3: mmc@480ad000 { diff --git a/arch/arm/boot/dts/dra72-evm-common.dtsi b/arch/arm/boot/dts/dra72-evm-common.dtsi index 2e485a13dfd7..4f48f97c9c47 100644 --- a/arch/arm/boot/dts/dra72-evm-common.dtsi +++ b/arch/arm/boot/dts/dra72-evm-common.dtsi @@ -421,7 +421,7 @@ pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins_default>; bus-width = <8>; - ti,non-removable; + non-removable; max-frequency = <192000000>; }; diff --git a/arch/arm/boot/dts/dra76-evm.dts b/arch/arm/boot/dts/dra76-evm.dts index 4dd8a5ac8fae..02c01cecc417 100644 --- a/arch/arm/boot/dts/dra76-evm.dts +++ b/arch/arm/boot/dts/dra76-evm.dts @@ -306,7 +306,7 @@ &mmc1 { status = "okay"; vmmc-supply = <&vio_3v3_sd>; - vmmc_aux-supply = <&ldo4_reg>; + vqmmc-supply = <&ldo4_reg>; bus-width = <4>; /* * SDCD signal is not being used here - using the fact that GPIO mode @@ -323,6 +323,7 @@ vmmc-supply = <&vio_1v8>; vqmmc-supply = <&vio_1v8>; bus-width = <8>; + non-removable; pinctrl-names = "default", "hs", "ddr_1_8v", "hs200_1_8v"; pinctrl-0 = <&mmc2_pins_default>; pinctrl-1 = <&mmc2_pins_hs>;