From patchwork Thu Jun 7 13:47:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10451897 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 AC2C260234 for ; Thu, 7 Jun 2018 13:48:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ADE729FA5 for ; Thu, 7 Jun 2018 13:48:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EE5429FB2; Thu, 7 Jun 2018 13:48:50 +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 4423E29FA5 for ; Thu, 7 Jun 2018 13:48:50 +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=dX7fodntWg6kSWiyTW7n3DYzxqaOOlQY25GNzIcEuh8=; b=fpn1hLBEub2KD9i2p9kRvqsTtQ nIsQ43yulGUJqTpAok+NhCuN/kls/gfvN9E8KN2lpZ2YAdw8ioZLkrv30YFr2d3uwVT3S1msX3vFn UgJ5n/osXx8H/hDUJBlFL7VG0+ZK7ss+5BJ2sVscZ/mRD7Ei8CQVElfevzjrPQ28FgHAnxaoIs9Ky xb/Wc9JEJ/9gE+KN46WmdprmID34aSa2MbFdCRChqgBLjrthwwALCoRy1+DASIrmAKhVJW5qx2ilG P8fILsegat478P3OcarYPxVPmdpsmjxna7EtgTmFggQc9n46lKL0cFKOIjaDQYcUEWEoNRo3lULkY WUaXMyZA==; 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 1fQvHT-0002mJ-OP; Thu, 07 Jun 2018 13:48:47 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQvHD-0002bW-9E for linux-arm-kernel@lists.infradead.org; Thu, 07 Jun 2018 13:48:36 +0000 Received: by mail-pg0-x243.google.com with SMTP id 15-v6so4796416pge.2 for ; Thu, 07 Jun 2018 06:48:21 -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=DK9BI/IiCFdOJj8aP1zv1mjVWahGcQYyLnCe+U2Ehsw=; b=Guz1wJZAAXWN1nUi685aWaCTWVKEYBn688kxUxn1hn22JxhTrzSwExUR9nrmfWCoJ1 ugLDPN8aZFzBc9YTKmTDFbqsDdD1HRiwxaFG+VYW/OKVxUOx4dIOw6AkvDijcPqG5QlW YF1XElsUY35BLSIIIb6XK0WEihQj0WHFNRqKA= 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=DK9BI/IiCFdOJj8aP1zv1mjVWahGcQYyLnCe+U2Ehsw=; b=r7nQDIXs7IXRMbHuqX7Z+Zgaqxflfv5zGxjUM+To0Jlj4tJBbIJ0TA4TJtZgZG8wSQ 6O8EmjlNZ682PUZBNkWrEd83QLcfT/4Dzf2B3u8mNaXIueuX1uV0VdB30nc9MhH3OgnT uDGLssdnMyEoAIe3RiB54XLtrZJwjAhHp9P7rTXfoEspskL00SK56M6ft4ezdClcPQeK b1Nb4iSXKd/075Mz9yc+tJDhE8D8v4UYNgs0OedLroAl6oj/IMcbc9o7T8UAb8jVwAYB d/FOteB5KgV4S/AIqgaYNF40SDgzpqDaT5Ky5Y/oZr+qvox/QU+6T8I5UMURJgNq601r sWsw== X-Gm-Message-State: APt69E2Fv1QD4fB2/FeNJrPy8DKrHajmicgyrUQNlF2LG+qduo8tyrep zaguCBjNXqhc0HY+wjrPY8/pwQ== X-Google-Smtp-Source: ADUXVKIIhMdUDqg2QJToFmGPNgufeUiQgVdbOgP6SRkoNpbYXOM8FC64DMgIAvUntlvCQ25l2Esw9g== X-Received: by 2002:a63:ab45:: with SMTP id k5-v6mr1665689pgp.192.1528379300557; Thu, 07 Jun 2018 06:48:20 -0700 (PDT) Received: from localhost.localdomain ([115.97.190.51]) by smtp.gmail.com with ESMTPSA id r30-v6sm12879137pgn.58.2018.06.07.06.48.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Jun 2018 06:48:20 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 3/4] ARM: dts: i.MX6: imx6dl-mamoj: Add Wifi support Date: Thu, 7 Jun 2018 19:17:47 +0530 Message-Id: <20180607134748.2970-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180607134748.2970-1-jagan@amarulasolutions.com> References: <20180607134748.2970-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180607_064831_346110_772819BA X-CRM114-Status: GOOD ( 15.03 ) 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 --- Changes for v2: - collect Fabio r-w-b tag 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 + >; + }; };