From patchwork Wed Apr 25 17:39:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10363981 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F06446038F for ; Wed, 25 Apr 2018 17:41:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E259F28FC2 for ; Wed, 25 Apr 2018 17:41:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6F6428FEC; Wed, 25 Apr 2018 17:41:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3A00D28FC2 for ; Wed, 25 Apr 2018 17:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=LrWAuHaUX3p+0p/9w10/biA/5oQrE2LAa+1MxmqRAtA=; b=OCdRIMdo08laBuFSssG5mkxe1N Rw8m59YMh+r22RKzRTX4WTFISG9uE/nHWLFczHsa7MdGlK9ZiDWKfRhMma6WLEtaJweMxYrdzrk94 c3a07/sPyc5X8mEOIt7iza2lceE8BLF2E36svPX8Oa2Kr0FTVijAvIu3lsG8kttw9/HHCB1FSK4SA zFiJ53zZpuf0wvY4/Ts2Nc9C5qs2T6fTNdzjhgXhLkZk3IA4rOhUo+K7qf0KSKAXrrGjhmhHiAMN0 mCUXgx0HoMuraY+DNxlqZtdyMgI1HzYo8v3Ghyh23l2M0jvI1F93pFhHyQ/tq0eZ7lGhCn/vUEMDd aOYZXTjA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBOQA-0001JO-Uz; Wed, 25 Apr 2018 17:41:34 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBOOn-0007la-6V for linux-arm-kernel@lists.infradead.org; Wed, 25 Apr 2018 17:40:11 +0000 Received: by mail-pg0-x244.google.com with SMTP id a13so9375637pgu.4 for ; Wed, 25 Apr 2018 10:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oAdkHD4JlDMhkVs4sH2Gx0R+AVco1d7ejAv9UcevMDQ=; b=RblCDlhKGGfX8KeV0H/iVx0qoHz+dPLgdRYGGulR1I46DPE9BTVsrlGOdq3+13++w7 6dpOSesgmhseqtsp8c7+DV4tT0bV9klMdjIpEevqs6rjLlYNdn3I8dB0jO3Y+ik/VEy3 AB7MpckOOvQuZwlc7DTD9RMk6FdbN7wDAScdw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oAdkHD4JlDMhkVs4sH2Gx0R+AVco1d7ejAv9UcevMDQ=; b=YGv++wdnfqkmxsBW0zpByRqSLsV8CLJPSzgX10NmnBGn9prBLOS3+Xc6EJGLnynmum 3XHq0VCWFDCc/bRL63QPr4VsPAeUJwPsS3EMiCf4l9jXVMwstwbOnx/U5bCbYRRl3JPN 6CPZga3+qzRPHfmPzqd1To6pTfY11MHo2IHO0W8vTyguaxwgyh1l81QD3/vtDVDx3V/H OoAmgjLVwgbP0OcbxOeij5etmMq9tooI4FiAIA5E4T/UeCzt6SKhzZhK6fAgi3T15QFt 2mI3orZQqlKBpAXnrY8qV/Nh+TszsHfEOms2qwu4GuEBK5COeQkJ7gjWKDFHRpfrJsR/ UhzA== X-Gm-Message-State: ALQs6tBSH1bc+daNPpxWMBwFfy+/0RmXNYNcPicWWBAqUNYlN3cAtHUY xb7ehAz2v3H3SnreWuDxshEIDQ== X-Google-Smtp-Source: AIpwx481BGxHTU8rEltnNGm1UBS7XzE9X2KLcbBwjUOIG3U4HXRMIFgKeLuQF83XDJrBwsypcMyjRQ== X-Received: by 10.99.186.90 with SMTP id l26mr22216945pgu.5.1524677998532; Wed, 25 Apr 2018 10:39:58 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.182]) by smtp.gmail.com with ESMTPSA id v187sm33228854pfv.21.2018.04.25.10.39.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 10:39:57 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH 3/4] ARM: dts: i.MX6: imx6dl-mamoj: Add Wifi support Date: Wed, 25 Apr 2018 23:09:31 +0530 Message-Id: <20180425173932.7213-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180425173932.7213-1-jagan@amarulasolutions.com> References: <20180425173932.7213-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180425_104009_285160_AE5D62A0 X-CRM114-Status: GOOD ( 14.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio maggi , linux-kernel@vger.kernel.org, "davide . bonfanti" , Shyam Saini , Rob Herring , Andrea CORTESE , lamiaposta71@gmail.com, Sascha Hauer , Fabio Estevam , Simone CIANNI , Michael Trimarchi , Raffaele RECALCATI , linux-arm-kernel@lists.infradead.org, Jagan Teki MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add TI WL18XX Wifi for BTicino i.MX6DL board. Signed-off-by: Simone CIANNI Signed-off-by: Raffaele RECALCATI Signed-off-by: Michael Trimarchi Signed-off-by: Jagan Teki Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx6dl-mamoj.dts | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-mamoj.dts b/arch/arm/boot/dts/imx6dl-mamoj.dts index ed9050c5dbcc..5034b086035f 100644 --- a/arch/arm/boot/dts/imx6dl-mamoj.dts +++ b/arch/arm/boot/dts/imx6dl-mamoj.dts @@ -133,6 +133,18 @@ enable-active-high; vin-supply = <®_lcd_vgl>; }; + + reg_wl18xx_vmmc: regulator-wl18xx-vmcc { + compatible = "regulator-fixed"; + regulator-name = "vwl1807"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wlan>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio6 21 GPIO_ACTIVE_HIGH>; + startup-delay-us = <70000>; + enable-active-high; + }; }; &fec { @@ -285,6 +297,30 @@ status = "okay"; }; +&usdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc1>; + bus-width = <4>; + vmmc-supply = <®_wl18xx_vmmc>; + no-1-8-v; + non-removable; + wakeup-source; + keep-power-in-suspend; + cap-power-off-card; + max-frequency = <25000000>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + wlcore: wlcore@2 { + compatible = "ti,wl1837"; + reg = <2>; + interrupt-parent = <&gpio6>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + tcxo-clock-frequency = <26000000>; + }; +}; + &usdhc3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc3>; @@ -392,6 +428,17 @@ >; }; + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17069 + MX6QDL_PAD_SD1_CLK__SD1_CLK 0x10079 + MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17069 + MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17069 + MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17069 + MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17069 + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 @@ -406,4 +453,10 @@ MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059 >; }; + + pinctrl_wlan: wlan { + fsl,pins = < + MX6QDL_PAD_RGMII_TD1__GPIO6_IO21 0x4001b0b0 + >; + }; };