From patchwork Fri Apr 27 12:09:01 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: 134611 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp642649lji; Fri, 27 Apr 2018 05:11:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoSmIGMyD820+zTn145PiGzukKXmk9X1JSrtyPuqDB5O1/ep2y9kHDLwRZOXQsUtjgLd5Ty X-Received: by 2002:a17:902:ab86:: with SMTP id f6-v6mr1632963plr.185.1524831079102; Fri, 27 Apr 2018 05:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524831079; cv=none; d=google.com; s=arc-20160816; b=gxxLqo7vUZ0NeMhgzWR12l7mxFx5N6yDln9jsogKk1NAb7zKGbx0jj5qLilQgGblgw oHRZJNdsy+l+03LF2P95VfvnBuZieAtHwamO1TuKUaak351s+hQnuVgytN+q8K0ayp5m ziK94MsSiSCipolzGg03sGha3MzW8qoqHTmLnSPlhunXYoAxAWe3YQ4T5HbtIphqDwtU put8/Y3eFYjnBm6f2dA5voa+dPWlg0RGZOxl1s233S3qMf3k35zsgeX13VPAZCpjy0qX B7YXTF8/4WzEpIyLyXFSQuKqLjAcjd0E67riTGxNyqHBL8nTObeU4mG+w1een9+rbC9L 8pmg== 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=8cXGpgwSva0PTmVM3ugVoPMbb9Fw5HBdbmMOGjnzUrg=; b=KsIXVJ1tKztVWlRZS5m6+HECnFi9ZLV5kuQ00aPFsOEKJXIo/B4C2Ze9ub/2FZHw6g 0z414Uz/YZJsC5iO72VVyOV/qBtdoQGEfIU1doi6pWHG57qF8nJCNm4b5Fh8nqSIBvnR ivc4rnx7Sv1B480SbfGw9bRSXRPMDXFVeVtrM31OXRHdrOb2YcN+EosiJxUUphJH3mF1 9u/KUkjTk2oZdqugWhyevCxSvxpzUoIfN/6s6otAIESoVVdfdmhUtEpsLMZfrzZGeaG0 CU7gZkhUnnXxClkwPBRl8Nj2lyGLF464AYR755leye6rDdx8jfWrfmKevu4AFdYdSEx3 JtsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=l49v9uJw; 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 c7-v6si1113552pgu.439.2018.04.27.05.11.18; Fri, 27 Apr 2018 05:11:19 -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=l49v9uJw; 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 S1758227AbeD0MLQ (ORCPT + 29 others); Fri, 27 Apr 2018 08:11:16 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:49474 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758167AbeD0MJz (ORCPT ); Fri, 27 Apr 2018 08:09:55 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3RC9nBO029214; Fri, 27 Apr 2018 07:09:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524830989; bh=iQHa9xrBt+ljcal/HgxKHiLUFVFJtmzv6zleH4ZSQjg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=l49v9uJwrDuuD+d+zAIBQ0wJPpt/x7HI436+1srzHh8ot3Bz6k0igMY6hdVV2MxtS E4zWCkv2JgB2MdOBXQ7gfVFVWIwVt8viti3ILXgvtpceioiyroXp79KIXt11Mfbdh3 VRpamieOokoivgIlJS9RVivaEUm5v4kq99r2XwPE= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3RC9nOM012968; Fri, 27 Apr 2018 07:09:49 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 27 Apr 2018 07:09:49 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) 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.1466.3 via Frontend Transport; Fri, 27 Apr 2018 07:09:49 -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 w3RC9AjS006789; Fri, 27 Apr 2018 07:09:45 -0500 From: Kishon Vijay Abraham I To: Tony Lindgren CC: Jonathan Corbet , =?utf-8?q?Beno=C3=AEt_Cousson?= , Rob Herring , Mark Rutland , , , , , , Hari Nagalla , Ido Yariv , Eyal Reizer , Sekhar Nori Subject: [PATCH v4 10/14] ARM: dts: dra7-evm: Add wilink8 wlan support Date: Fri, 27 Apr 2018 17:39:01 +0530 Message-ID: <20180427120905.3665-11-kishon@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427120905.3665-1-kishon@ti.com> References: <20180427120905.3665-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..33230c8b2951 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>; + wifi@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>; };