From patchwork Wed Apr 25 12:54: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: 134277 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp828503lji; Wed, 25 Apr 2018 05:56:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bVMmXMSTI7Wpn/djvudf5IOfm1QPJL6VFbi9GFFIDYRFjGF+OvD/Z+dW2QLyPQ2tGpSH8 X-Received: by 2002:a17:902:20cb:: with SMTP id v11-v6mr28524645plg.82.1524660986489; Wed, 25 Apr 2018 05:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524660986; cv=none; d=google.com; s=arc-20160816; b=IGV82Aln7ipFkQeYkKiwM+7v2ozRj1Us3DkcDQ2xk/xEoliFlIyoFrE4oDlIau6MeY qm2T8ELQI99fgU8syYXQsjZ3j1v29PzOjr8jXN7mKo6V6A9hZVu3Vgtg35Cn9+yIHRi1 lOLl+GvvnDH/1kicUFDdNuKIQOoytwVzx4m1v6emJAP5N1mbatLtn3e+x2On6J2JnddY DIHngL/xmISIFeT/bHYcJncuPox/RdyCAg6Y6lQrN7vVbTpc3tZ31XDdkhCdBU7b2Dn/ EFcdr+jSgIPW/UiPNovFIiKU0Yfth7ZnHCjsq/FWBWP8yTdLyDqMOorvfwyUDeCs7cMv RKvQ== 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=3spDmKEoU2XEPe1Kr7tD5vxf4SvVoNaNM3xJWCQ1zOs=; b=NTlzd+YeiU9onvN/OlhRhg+uSzvg3Lowe+XGnteHXNIF+LI819ODD6YbCQJhce4aR1 UNCilmqEVz7yn+j+cnDTpNfqRu/f3bg6LLJhgAGtzk4aZKc51v6P7SKnGP+IZCrtygHP hWU5yMdD8fxLn5G73O+AgexNIX4oT8lOZ6mjOY+9iOFr8vZRX9TrhTNCAglrf3SLeVqb UYEr1DJkDfIvABkssX6YB+3tpF12bVrTXqf8ldp+7YIF8IO5rUiPY0bK1rCB9n4rmtag jmwkCK4UPK3K1AfdQZxyIMdi21ZIYnOpzYvA5bOS8yHW5AOGjtXB70vC/rPg2G2/Sqs4 ROrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MYwZT3oq; 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 l12si13550792pgf.113.2018.04.25.05.56.26; Wed, 25 Apr 2018 05:56:26 -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=MYwZT3oq; 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 S1754343AbeDYM4X (ORCPT + 29 others); Wed, 25 Apr 2018 08:56:23 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:11944 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753875AbeDYMzy (ORCPT ); Wed, 25 Apr 2018 08:55:54 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3PCtkWU009660; Wed, 25 Apr 2018 07:55:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524660946; bh=OBIfaV+eQNVKqOh2ZvqlXuND80haQPrckGg5+ju9f8c=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MYwZT3oqNvcKzXDhnPLfW/lBe7I3EJjYk1zwbAknc0PyMaSp6+hsw0mo80i/wZJXT rcqRLE7KgdSZdPkkPaBjg+Gq7z74/C4+bUq/zsqvqOfJUahFCMYrZBtM66AxUSnhub Wb0IV+QcoS8BREmy+6Msj2ZWfVq9mtBeom938y0w= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3PCtkq4024436; Wed, 25 Apr 2018 07:55:46 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE102.ent.ti.com (157.170.170.32) 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 07:55:45 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) 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.1466.3 via Frontend Transport; Wed, 25 Apr 2018 07:55:45 -0500 Received: from a0393678ub.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 w3PCt1SO021671; Wed, 25 Apr 2018 07:55:41 -0500 From: Kishon Vijay Abraham I To: =?utf-8?q?Beno=C3=AEt_Cousson_?= , Tony Lindgren CC: Jonathan Corbet , Rob Herring , Mark Rutland , , , , , , , Hari Nagalla , Ido Yariv , Eyal Reizer , Sekhar Nori Subject: [PATCH v3 11/15] ARM: dts: dra7-evm: Add wilink8 wlan support Date: Wed, 25 Apr 2018 18:24:45 +0530 Message-ID: <20180425125449.19755-12-kishon@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425125449.19755-1-kishon@ti.com> References: <20180425125449.19755-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 From: Hari Nagalla The wilink module is a combo wireless connectivity sdio card based on Texas Instrument's wl18xx solution. It is a 4-wire, 1.8V, embedded sdio wlan device with an external irq line and is power-controlled by a gpio-based fixed regulator. Add pinmux configuration and IODelay values for MMC4. On dra7-evm, MMC4 is used for connecting to wilink module. IODelay data credits to : Vishal Mahaveer and Sekhar Nori Signed-off-by: Ido Yariv Signed-off-by: Eyal Reizer Signed-off-by: Hari Nagalla Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7-evm-common.dtsi | 15 +++++++++++++++ arch/arm/boot/dts/dra7-evm.dts | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) -- 2.17.0 diff --git a/arch/arm/boot/dts/dra7-evm-common.dtsi b/arch/arm/boot/dts/dra7-evm-common.dtsi index 05a7b1a01bc3..3590c40fc112 100644 --- a/arch/arm/boot/dts/dra7-evm-common.dtsi +++ b/arch/arm/boot/dts/dra7-evm-common.dtsi @@ -260,3 +260,18 @@ &pcie1_rc { status = "okay"; }; + +&mmc4 { + bus-width = <4>; + cap-power-off-card; + keep-power-in-suspend; + non-removable; + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@2 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio5>; + interrupts = <7 IRQ_TYPE_EDGE_RISING>; + }; +}; diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 181289a28ca1..704947cbef48 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -96,6 +96,16 @@ regulator-boot-on; }; + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed"; + regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio5 8 0>; + startup-delay-us = <70000>; + enable-active-high; + }; + extcon_usb2: extcon_usb2 { compatible = "linux,extcon-usb-gpio"; id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; @@ -376,6 +386,21 @@ pinctrl-5 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev20_conf>; }; +&mmc4 { + status = "okay"; + vmmc-supply = <&evm_3v6>; + vqmmc-supply = <&vmmcwl_fixed>; + pinctrl-names = "default-rev11", "default", "hs-rev11", "hs", "sdr12-rev11", "sdr12", "sdr25-rev11", "sdr25"; + pinctrl-0 = <&mmc4_pins_default &mmc4_iodelay_ds_rev11_conf>; + pinctrl-1 = <&mmc4_pins_default &mmc4_iodelay_ds_rev20_conf>; + pinctrl-2 = <&mmc4_pins_hs &mmc4_iodelay_sdr12_hs_sdr25_rev11_conf>; + pinctrl-3 = <&mmc4_pins_hs &mmc4_iodelay_sdr12_hs_sdr25_rev20_conf>; + pinctrl-4 = <&mmc4_pins_sdr12 &mmc4_iodelay_sdr12_hs_sdr25_rev11_conf>; + pinctrl-5 = <&mmc4_pins_sdr12 &mmc4_iodelay_sdr12_hs_sdr25_rev20_conf>; + pinctrl-6 = <&mmc4_pins_sdr25 &mmc4_iodelay_sdr12_hs_sdr25_rev11_conf>; + pinctrl-7 = <&mmc4_pins_sdr25 &mmc4_iodelay_sdr12_hs_sdr25_rev20_conf>; +}; + &cpu0 { vdd-supply = <&smps123_reg>; };