From patchwork Wed Apr 25 13:27:45 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: 134316 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp867511lji; Wed, 25 Apr 2018 06:28:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/zcSz6j3Te6hfqQOoVkClhEGYKt9tWdBvccT0K5ruE01UkWRQ57eiT9H3SdnH88Q6iLcGd X-Received: by 2002:a17:902:43:: with SMTP id 61-v6mr29725663pla.112.1524662890576; Wed, 25 Apr 2018 06:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524662890; cv=none; d=google.com; s=arc-20160816; b=lOeglkraDGwhGfe5ucgJ3PFZww6YTbgtMrYuDusa1ApHvRAStJ5BGsvoCkaJumn1it ngV5lQyxCiJnmaqzseXjawQZqLto/iK9o4qpCSdMI8a5RL592KlIhr9Dht84m2jvjN3H Ym2v+O4P36559aSeh3HY8dxi8PoI1clSRluZbeUJ9AO1/gyP8dKIvy+IUpXpM0Gb5inV HdaIllKcgGvaKK9u/t3hfsTSQIE8YwfnQgL1mgPMPHSD2OhS1utoFIOIQfYmVOaMyCew JXKSOr7mOp8E842QiddINMIFmCIriBX6uLV8EStf60kPYjcpIHnFvcciODTD+lpUyVdA zOgw== 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=wwBrZyFDr3H5eS1TvjUsa2M4orzQVadfhaCo+pSGD7I=; b=kd0T+Ij04mpnlI9mgpe1tClYaB5TRHapk+nuKZniiBba0ot84m6rX8+Ho44VZcmB4M dnFm0eovUxRHGViPLFiggapUxtQLL/0NHxxzoK844cS2BmJdvfZy6v7kmOnxryyoIb1T BOFMZe/L3zfdvskxYhYZK+p4Pl/ucXV06PQGtI19kD7qI5SHLXnKd9ORsSI8gbuaTddR Roa93r0Cw6DMySvk5Rv0Z9ZI+IRKtQv49T8Q10n9ce3NvM/6ItWeXUPoDVg2yVjqCPjV 6eCvAa2g3m3IPpy0uwA7DtrWcPDyx79FbvSL4uCtKeNzSA+mXBAf3njlf2rk9JbaFs+d syOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Gi2I9Tew; 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 b3-v6si3812868plc.329.2018.04.25.06.28.10; Wed, 25 Apr 2018 06:28:10 -0700 (PDT) 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=Gi2I9Tew; 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 S1754503AbeDYN2H (ORCPT + 29 others); Wed, 25 Apr 2018 09:28:07 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:10308 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754442AbeDYN2C (ORCPT ); Wed, 25 Apr 2018 09:28:02 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3PDRu9u032222; Wed, 25 Apr 2018 08:27:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524662877; bh=NOjM/sU2cTTBQcIqYDG7/yyleONJaNmPunpFpbo1DEc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Gi2I9Tewu5JKkPyRRfdgNlcF2Nti1WnL3liB22V603YuaHrErCe4Z+O29aTzMqyIo jE49hQ2StTCix042LnCxQQ4QH4sqDWzBJL+QIrco6EMsgsTFDJyVOjgszQPl1tnJSG iRvMecgrGHYFKOUg9fccEfrPmPGCCXTIs8aUwTsY= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3PDRu4b019938; Wed, 25 Apr 2018 08:27:56 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) 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.1466.3; Wed, 25 Apr 2018 08:27:56 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 25 Apr 2018 08:27:56 -0500 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 w3PDRmQC010627; Wed, 25 Apr 2018 08:27:54 -0500 From: Kishon Vijay Abraham I To: Santosh Shilimkar CC: Rob Herring , Mark Rutland , , , , , Tony Lindgren Subject: [PATCH 2/3] ARM: dts: keystone-k2g-evm: Use sdhci-omap programming model Date: Wed, 25 Apr 2018 18:57:45 +0530 Message-ID: <20180425132746.13911-3-kishon@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425132746.13911-1-kishon@ti.com> References: <20180425132746.13911-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 MMC/SD controller. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/keystone-k2g.dtsi | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) -- 2.17.0 diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index da78c0034427..af6bf1301cf5 100644 --- a/arch/arm/boot/dts/keystone-k2g.dtsi +++ b/arch/arm/boot/dts/keystone-k2g.dtsi @@ -391,13 +391,10 @@ }; mmc0: mmc@23000000 { - compatible = "ti,k2g-hsmmc", "ti,omap4-hsmmc"; + compatible = "ti,k2g-sdhci"; reg = <0x23000000 0x400>; interrupts = ; - dmas = <&edma1 24 0>, <&edma1 25 0>; - dma-names = "tx", "rx"; bus-width = <4>; - ti,needs-special-reset; no-1-8-v; max-frequency = <96000000>; power-domains = <&k2g_pds 0xb>; @@ -407,13 +404,12 @@ }; mmc1: mmc@23100000 { - compatible = "ti,k2g-hsmmc", "ti,omap4-hsmmc"; + compatible = "ti,k2g-sdhci"; reg = <0x23100000 0x400>; interrupts = ; - dmas = <&edma1 26 0>, <&edma1 27 0>; - dma-names = "tx", "rx"; bus-width = <8>; - ti,needs-special-reset; + no-1-8-v; + non-removable; max-frequency = <96000000>; power-domains = <&k2g_pds 0xc>; clocks = <&k2g_clks 0xc 1>, <&k2g_clks 0xc 2>; From patchwork Wed Apr 25 13:27:46 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: 134317 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp867645lji; Wed, 25 Apr 2018 06:28:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx48AqFnBAD0SLpPPYI39GdoPI7D/uj2mnyM6JIvGS5vqa3IdT+9InKfKVdB6Xay/SUBAW0yO X-Received: by 10.98.55.69 with SMTP id e66mr27968034pfa.253.1524662897704; Wed, 25 Apr 2018 06:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524662897; cv=none; d=google.com; s=arc-20160816; b=n9t732yd5VxyajFTz5uXwilOq6E9ZNgC+0Ax6ijxKN6/KnI0IPcWsZAXkzlf3l5ysu fticHb/8B6wOeWLhMsA2mtBjKgJfnHKtlldsterQetSl+8wkDck4iPNoWuBd/UfkiUu4 iLB56aXbIckd8h1Vx4jvFO7hrWgp/rE5fm1UG0wiOLTs1d3clbbyI6GEDtktyUjNqZ04 51RoysdzqEu3mqc3+UbfI//jWVraysw6IsOjpgx4hLkV4qHrAomwQ5WAgXSQhbPQCC6u wKzo0jagqvUYohmObvoVYFXcHqQeVGYDAV+YHrCCj8M9Gl6TUkW/ZOKjPtw5U3S51b5y cQaQ== 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=EUiYEmCy2e62k9p8F1SS1n1GuUuSe0/k0ztJcgdLmVk=; b=AnYCKnvf1MHqOMtEqREFILNwcdicQQJ5n5jMYQl4JR41FCRtKTUsjjI9ZDJaQCKhi3 4t328jrhqpF9t8YFei1ygzvlgQEeMd3z/3fu+k3Q8viyZxH+WZYr60DGcHa8hv4KmAut GDDLvW1MYczk+mVX8XEHGp8V4zduNlmsbIlHlDLQBs9B0ntN+KJAnNeJv8LGCpAtvCBT KPH7Whc2JGIKWWBuGCfohlDFeVZdJ4tcMSnH9pdsbpTTHYwgG6MXnU1vlKTT48evtzUv p7cN4WDIigkblQRp3vySuznvmphXHDbQNQw9/D+bAkmMSR84oJmn8lBwIA9AtVnG1asu qpXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=zP3cAhVg; 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 t64si13529883pgc.160.2018.04.25.06.28.17; Wed, 25 Apr 2018 06:28:17 -0700 (PDT) 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=zP3cAhVg; 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 S1754526AbeDYN2O (ORCPT + 29 others); Wed, 25 Apr 2018 09:28:14 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:63145 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753615AbeDYN2J (ORCPT ); Wed, 25 Apr 2018 09:28:09 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3PDRxID025716; Wed, 25 Apr 2018 08:27:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524662879; bh=EsvwPBnbZPKOZazsK18lER3ksW6Pld2Rs2yuf73XZpM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=zP3cAhVgN0GPww3Cf8kQdE8kWEjPFPpqiRpAF3oWVSTvxnmaAROLr3dOGHyiCTc3P PEyV6athTPwzTbT88F0eLDCeuCVls88DWh9NdeWe0qOYGRf6bA8O3zITSQDAaiUOya KkR7vS3dDJxFFFP4dpQGjBDX2H7P92gvhiwxSSOQ= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3PDRxm5016945; Wed, 25 Apr 2018 08:27:59 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 25 Apr 2018 08:27:59 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 25 Apr 2018 08:27:59 -0500 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 w3PDRmQD010627; Wed, 25 Apr 2018 08:27:57 -0500 From: Kishon Vijay Abraham I To: Santosh Shilimkar CC: Rob Herring , Mark Rutland , , , , , Tony Lindgren Subject: [PATCH 3/3] ARM: configs: keystone: Enable CONFIG_MMC_SDHCI_OMAP Date: Wed, 25 Apr 2018 18:57:46 +0530 Message-ID: <20180425132746.13911-4-kishon@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425132746.13911-1-kishon@ti.com> References: <20180425132746.13911-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 Enable CONFIG_MMC_SDHCI_OMAP so that TI's K2G SoC can use sdhci-omap driver for MMC/SD controller. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/configs/keystone_defconfig | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.0 diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig index 2536c231eea1..21a6ce4ef9bc 100644 --- a/arch/arm/configs/keystone_defconfig +++ b/arch/arm/configs/keystone_defconfig @@ -170,7 +170,10 @@ CONFIG_USB_DWC3=y CONFIG_NOP_USB_XCEIV=y CONFIG_KEYSTONE_USB_PHY=y CONFIG_MMC=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_OMAP_HS=y +CONFIG_MMC_SDHCI_OMAP=y CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_GPIO=y