Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp472182imm; Wed, 25 Jul 2018 00:01:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpckEJvkLea3wRqdjHcB3wibVDMTz9Pa3pPbWh48mQDfwzsz9RqOxS/bqVZJ2iRVO5XsIboI X-Received: by 2002:a62:b917:: with SMTP id z23-v6mr21069261pfe.131.1532502099906; Wed, 25 Jul 2018 00:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532502099; cv=none; d=google.com; s=arc-20160816; b=BBNyADBqQD8k2GWOYUm82JlzRUibJS6OTs1L5Tg4XNrN8IqzQbxST6fYPw31Tn+Q75 7dbOGQGh7XywhSilLyUoRih2Gp4dosUwSOSwcDEe1fTX/5RwlCKFfG2oLVwSx2w//vrT WHys6VpQl6OLthOH93eYw4J/DsDp2f8fDRjCzjOPYlnRkoSO9al+DBua9ojP1/MxXe97 FGf+BcTn/g2crngjlq/fKFTsRfVCwPPiembEqFSvlnkrRtoTOxexSTctz9g49eEg++NQ R/Ly2lNEzHUW9lqrfgr7jZfNupvdiTuVRrEl7jXBMPl84dbYUsLffkpRsLWDus5zxjay 0y5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kDcuT3iEPeTF8PvYJF0j7ZeKUC393ld08UmryqswNrA=; b=J2ZAEalFxFDeKLCKFro7w+gO3oh+I79tTKuhjayz5HOdrz62m3yPcMJ/AzbNFhDaDQ JfRuWP0I7hi9C30izDKtHVh8lXr+FXKEZ3YqAiWjeypzxhjE5NDAdFEb5RaefPvLnyQc ucCZL2RG+MZ6Ly2l5knkFWINNwyOlJ0zkGjYoH45NiBHshF/EKyLSNSnYtn/yxAQEjZb foxfLgTXKVVEsMwn8HMvE9Mb/FxcDsBuMLeWH0TTS45PLaOfE1DZe3drFP9XKzVoBn3t CbSTejkdWI/+w+SEt46MWUXZLqejapcy/PwuRGjB3x/mDRN1/kSmQJ3ua9pqfoj3iYv5 vbBQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k20-v6si12485657pgb.115.2018.07.25.00.01.25; Wed, 25 Jul 2018 00:01:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728965AbeGYIJ4 (ORCPT + 99 others); Wed, 25 Jul 2018 04:09:56 -0400 Received: from mo4-p04-ob.smtp.rzone.de ([81.169.146.179]:10782 "EHLO mo4-p04-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728718AbeGYIJk (ORCPT ); Wed, 25 Jul 2018 04:09:40 -0400 X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o12DNO4Ij0pB1ZSLA74=" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 43.13 DYNA|AUTH) with ESMTPSA id 6047f4u6P6xFd5s (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 25 Jul 2018 08:59:15 +0200 (CEST) From: "H. Nikolaus Schaller" To: Marek Belisko , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, "H. Nikolaus Schaller" Subject: [PATCH 29/32] ARM: dts: omap3-gta04a5: add support for ti,wl1837 module Date: Wed, 25 Jul 2018 08:59:01 +0200 Message-Id: <82be54d8bb11b36cabfa2827101f4f2e48c646c3.1532501910.git.hns@goldelico.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GTA04A5 uses a ti,wl1837 WiFi/Bluetooth module. Overwrite the mmc2 node and child. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04a5.dts | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts index e3352cc97c91..453a87ebb860 100644 --- a/arch/arm/boot/dts/omap3-gta04a5.dts +++ b/arch/arm/boot/dts/omap3-gta04a5.dts @@ -15,6 +15,20 @@ ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>; /* GTA04A5 only */ }; + wlan_en: wlan_en_regulator { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&wlan_pins>; + regulator-name = "wlan-en-regulator"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>; /* GPIO_138 */ + + startup-delay-us = <70000>; + enable-active-high; + }; + pps { compatible = "pps-gpio"; pinctrl-names = "default"; @@ -34,6 +48,18 @@ }; &omap3_pmx_core { + wlan_pins: pinmux_wlan_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4) /* mmc2_dat6 = mmc3_dat2 = gpio138 */ + >; + }; + + wlan_irq_pin: pinmux_wlan_irq_pin { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE4) /* mmc2_dat7 = mmc3_dat3 = gpio139 */ + >; + }; + irda_pins: pinmux_irda { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x21d0, PIN_OUTPUT_PULLUP | MUX_MODE4) /* mcspi1_cs1 = gpio175 */ @@ -47,3 +73,35 @@ }; }; + +/* + * for WL183x module see + * http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt + */ + +&wifi_pwrseq { + /delete-property/ reset-gpios; +}; + +&mmc2 { + vmmc-supply = <&wlan_en>; + bus-width = <4>; + cap-power-off-card; + non-removable; + + pinctrl-names = "default"; + pinctrl-0 = <&wlan_irq_pin>; + + #address-cells = <1>; + #size-cells = <0>; + + /delete-property/ mmc-pwrseq; + + wlcore: wlcore@2 { + compatible = "ti,wl1837"; + reg = <2>; + interrupt-parent = <&gpio5>; + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_139 */ + ref-clock-frequency = <26000000>; + }; +}; -- 2.12.2