From patchwork Thu Dec 14 13:40:41 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: 121940 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6820127qgn; Thu, 14 Dec 2017 05:41:55 -0800 (PST) X-Google-Smtp-Source: ACJfBotGzhj568Ch+HfeOGEGt8CVKzfMKMvwfTdXa+3jmYKkM8KQ9CH2+t/sDE/zg8A33xIZztfn X-Received: by 10.99.143.27 with SMTP id n27mr8664671pgd.121.1513258915699; Thu, 14 Dec 2017 05:41:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513258915; cv=none; d=google.com; s=arc-20160816; b=yxHkfGFrPnMiLByjGfNweuD2lQc8npZNdj25dmcJB0qFiz/Ii9XolVVx5/2pDceKl0 2b+Mxbe977OqxuQydjBNt68GKeoJsI8YZHHiN0Z7WaVnRuCiLWl1AyI2FxLJ+twj+SkR 4Q3F41bqOdf+KoWV2PSFH4HxqRQfEpjJxV8cPP3al4JlsbLis6U1OEZVt7GjH5lvRn0D Xiy6uChGd29HTrHpG+zljwNSD9KGRry8+tS3zDQLDcB5MPMvUhsjJKFlUyTnWp91Ey3j 8+LQDknxmwKtBEga+sud10L2K/hKkPIpK6s87+tidv4mC/DJlybCJcnz8n/49BpKqvTb +82g== 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=M28hxEwTJV6XW2C1v0ae1A8qqW/O9xlJtzsWhuwhYYY=; b=XbbUFxD1Hkjc3foy2BeHk3/4yUJEvFuVys2OiH4D+M8uUjTuoxmjZEzf/XtcrgU3gF YhOkopg95NmytxFkgdnCU74U0TGnywayKSGEHY/7cXH7z5uE8TOIeX5C5QE0nfoehLCQ qVotUToGb9fJNCHXK+8EaMahQwYmjVeougHZY892BJh6y/uWXlifP2cPzTNLPXqA+GFX Es58wK+ETNJsZlt2wLV5ck6VUqz0qzbhNQXYfNb5J8algZXOWQqebRh70SECfp2neaGr ud1ETwGNzbpsw3oQiiiGUn/j7IyNFWA5Ylu3DwOIvPxPpJstWLuJIOOUZqhg4Evt+jiG a5Ig== 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=bAVzzKkr; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (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 8si3257068pfo.144.2017.12.14.05.41.55; Thu, 14 Dec 2017 05:41:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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=bAVzzKkr; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751078AbdLNNlx (ORCPT + 6 others); Thu, 14 Dec 2017 08:41:53 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:34431 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbdLNNlw (ORCPT ); Thu, 14 Dec 2017 08:41:52 -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 vBEDf7tm017565; Thu, 14 Dec 2017 07:41:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1513258867; bh=lCkIWTn5O4SOIK8sUjY+XM+gxqkVVfUkLkHyd/RfLUU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bAVzzKkryRnoDBPciX4cafiWKpWu801m9JGaS3x5EpJuTIgn/YiO7Hy29inAtUqmV Fv03ulwaDY8DvlrbfiB/DAaNuPrYCGzV5286j1yAx1/N8xnB1d4TxleSezkayNM7Zq 6to1KTYzVU56BPLjXEPdR2yD7RcVThtjiSYV94z0= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBEDf78x002210; Thu, 14 Dec 2017 07:41:07 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE101.ent.ti.com (157.170.170.31) 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:07 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE107.ent.ti.com (157.170.170.37) 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:06 -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 vBEDewBE009855; Thu, 14 Dec 2017 07:41:03 -0600 From: Kishon Vijay Abraham I To: Tony Lindgren , , Santosh Shilimkar CC: Rob Herring , Mark Rutland , Russell King , , , , , , , Subject: [PATCH 01/14] ARM: multi_v7_defconfig: Enable CONFIG_MMC_SDHCI_OMAP Date: Thu, 14 Dec 2017 19:10:41 +0530 Message-ID: <20171214134054.7749-2-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-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Enable CONFIG_MMC_SDHCI_OMAP so that TI's dra7/k2g based SoC's can use sdhci-omap for eMMC/SD/SDIO controller.. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 61509c4b769f..c8761731aaee 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -741,6 +741,7 @@ CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SH_MMCIF=y CONFIG_MMC_SUNXI=y CONFIG_MMC_BCM2835=y +CONFIG_MMC_SDHCI_OMAP=y CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_CLASS_FLASH=m From patchwork Thu Dec 14 13:40:52 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: 121946 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6820735qgn; Thu, 14 Dec 2017 05:42:30 -0800 (PST) X-Google-Smtp-Source: ACJfBoult1Q3VIIR7D0q8Ef4cjk+Rgs1Kkr+DaLdzaSL269wGdMTDLYNj8Of7sFa+XraqLvT77Lr X-Received: by 10.159.245.145 with SMTP id a17mr9672643pls.276.1513258950422; Thu, 14 Dec 2017 05:42:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513258950; cv=none; d=google.com; s=arc-20160816; b=n2VvAVUd4AlToj6EKpYO1mIA6Y5sNpChl+S099/4uQPi0lSNPVzsBELhowkBhd23cb AT92G9tHbN5HKLkhF6+nPWRlq7O9ZdZqyPyeNP3E3lID5la16V/BctXS/cZy0OHIOwM2 /d3U2aptY5q2FsnG98DgXu363Xt5+zgLRKN/jDXmJ++96GlYxgqEG9VojaUR93w2qXSC jd1G1crCwRgXWLKX7GuKmtnm4s3UF7uhwUEXRvAPtQaKhBAOwS679+Sdxmv/JdYGYbCA 0g2MbRopBdzmEG+WNaXIR+MF8+69qQq0Uqp/LQsPe+RwosVg/Xh9dz/vNy6pW0PUZsaM tN3w== 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=VNJ170OrSNtnIuQUnQEAZVS1J2zYF/JBNJ/pMMusiEE=; b=We28E7THoNbQJbGqq+xrfMFv2xi1oTnBxOyLs3jF1QFzawa+qNAA7/qTBMSGxNXdQ+ wi1OzzFMKAqKXkygbOTIbet6VSZJpBffLJZZ+CdSUNoF7eQqnZ3TGweV16Nh2QC9mUCl vP/D0V47Hie3TwKn40hrpeKVJhozeZWYzI2BO5OWRCFueSn6807QIppWFSjhdSCTZ6Vn //kORAaBIWYl8HM5cTUFSYHfynoFCbZjNbrE5hCyTflrFG+JNmTbxTZAXNaFnt4xfE4K coqg9mGYZ4U7iSElrmMrQLiGeRAblcGFG3Sre0SckjN7oW6Vkb53GzF1UlIb8ROEoEDP 0yXg== 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=xkxOTI4h; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (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 e7si2925213pgt.15.2017.12.14.05.42.30; Thu, 14 Dec 2017 05:42:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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=xkxOTI4h; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752804AbdLNNm2 (ORCPT + 6 others); Thu, 14 Dec 2017 08:42:28 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:51770 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752641AbdLNNmZ (ORCPT ); Thu, 14 Dec 2017 08:42:25 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id vBEDfn6n009669; Thu, 14 Dec 2017 07:41:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1513258909; bh=WBwTbvCKdqtFuoUpJb75hq3rxewumsN0P+8hDINL3EM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xkxOTI4h0kBSI5z2M+2LLz8LhJCisQ1ATf0FfkzJAWTPKRYVWYt0h0s4T2qRiYWdk rVUjvZxp6RLgyEz1Zwq9jQPwT4ae9zqdALKrmq8V4b3fEQ1hX60CUgCqT7I6aDmMBW sIPDKaVHh8q0giqHDgmV5bebFIGTE/syE9Da/jhI= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBEDfnn5030460; Thu, 14 Dec 2017 07:41:49 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE109.ent.ti.com (157.170.170.41) 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:49 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE109.ent.ti.com (157.170.170.41) 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:49 -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 vBEDewBP009855; Thu, 14 Dec 2017 07:41:46 -0600 From: Kishon Vijay Abraham I To: Tony Lindgren , , Santosh Shilimkar CC: Rob Herring , Mark Rutland , Russell King , , , , , , , Subject: [PATCH 12/14] ARM: dts: am57xx-idk: Select pull down for mmc1_clk line in default mode Date: Thu, 14 Dec 2017 19:10:52 +0530 Message-ID: <20171214134054.7749-13-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-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org During a short period when the bus voltage is switched from 3.3v to 1.8v, (to enumerate UHS mode), the mmc module is disabled and the mmc IO lines are kept in a state according to the programmed pad mux pull type. According to 4.2.4.2 Timing to Switch Signal Voltage in "SD Specifications Part 1 Physical Layer Specification Version 5.00 February 22, 2016", the host should hold CLK low for at least 5ms. In order to keep the card line low during voltage switch, the pad mux of mmc1_clk line should be configured to pull down. This is specific to am57xx-idk (and not all dra72/dra74 based boards) since mmc1_clk line in am57xx-idk is not connected to an external pullup. While at that change the order of header files in am571x-idk.dts and am572x-idk.dts so that the modified pinctrl values in am57xx-idk-common could take effect. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am571x-idk.dts | 2 +- arch/arm/boot/dts/am572x-idk.dts | 2 +- arch/arm/boot/dts/am57xx-idk-common.dtsi | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/am571x-idk.dts b/arch/arm/boot/dts/am571x-idk.dts index debf9464403e..c7d77acffa28 100644 --- a/arch/arm/boot/dts/am571x-idk.dts +++ b/arch/arm/boot/dts/am571x-idk.dts @@ -10,8 +10,8 @@ #include "dra72x.dtsi" #include #include -#include "am57xx-idk-common.dtsi" #include "dra72x-mmc-iodelay.dtsi" +#include "am57xx-idk-common.dtsi" / { model = "TI AM5718 IDK"; diff --git a/arch/arm/boot/dts/am572x-idk.dts b/arch/arm/boot/dts/am572x-idk.dts index a578fe97ba3b..144376ad5f35 100644 --- a/arch/arm/boot/dts/am572x-idk.dts +++ b/arch/arm/boot/dts/am572x-idk.dts @@ -11,8 +11,8 @@ #include "dra74x.dtsi" #include #include -#include "am57xx-idk-common.dtsi" #include "dra74x-mmc-iodelay.dtsi" +#include "am57xx-idk-common.dtsi" / { model = "TI AM5728 IDK"; diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi index 43a6d0590f7c..43cdf523a8a0 100644 --- a/arch/arm/boot/dts/am57xx-idk-common.dtsi +++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi @@ -115,6 +115,17 @@ DRA7XX_CORE_IOPAD(0x37d4, MUX_MODE15 | PULL_UP) /* dcan1_rx.off */ >; }; + + mmc1_pins_default: mmc1_pins_default { + pinctrl-single,pins = < + DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mmc1_clk.clk */ + DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */ + DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */ + DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */ + DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */ + DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */ + >; + }; }; &i2c1 {