From patchwork Mon Apr 1 02:24:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10878951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E7DA61669 for ; Mon, 1 Apr 2019 02:25:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD87C28725 for ; Mon, 1 Apr 2019 02:25:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C07F128807; Mon, 1 Apr 2019 02:25:36 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham 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 5603628725 for ; Mon, 1 Apr 2019 02:25:36 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=73FT2BARjBcQZgrVAsmQPgs3o2KJBmliWBDu2ghCoDk=; b=T95BokQgjpjju/ hZGi1iLkED0IERbtqi5bQxF2x6KvJREkr38QCIz7P89iwBIV4xCyMcvTgbpizkOyIy8gYKhYqoo+o Whg4+XkoVLeqf+6hlt3k0q7C+fjc8sR2z/pdF+uXAn2U3yogzWHpVNzi1yG79b3lEkiAqPxof0U3f S+KnsxKPsLZvG2CsMraOYkWqmj27fMr1E0M5zPReGyz3xSfxhiHR58iCnIAw1Teq3dgq+BdIcRMLq z5ZyYYfrNMV44qzWQ7ZWC/jrpEgycAJFtA900YqvObhGSkNHPfBXr5ZG3NyeWkF6r4cpcHBzefpTC NMBTYzXyoz9YP7B4CPFA==; 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 1hAmdh-0000yA-Uq; Mon, 01 Apr 2019 02:25:33 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAmcm-0006yi-4K for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 02:24:40 +0000 Received: by mail-pl1-x641.google.com with SMTP id ck15so2485472plb.3 for ; Sun, 31 Mar 2019 19:24:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xHMP4rCUzzpWtWj8JgBXHEt54oo0bcr1bpWR5iBfCNs=; b=uxxkJGz9CDZucQMOITlIEG57bISuU86xctje5mNRKeCVX/WazKJvo0KzpO4aejBsY/ Ec0eBzgHnMFCnecJTIJD71uJE9ukWcZ6+sVaFvehGIAYo9nVqxWKnjhbpNjwzmEL3lxg m+ITD5Swc0MYvPepN0PVdulaDZ8KzDK11+vTL22rwBETC2eZUpkU2ur0h98vSAsE/sRy 1fHXdYkyae1hJWq0wmcI0V8Hq394drgFFBmD/04qMSEM2NwdPjNgdKqPwGEpBieEz48f Lq/2EL3DRR+xPdFromAAmcLxx0iBi1BOPfZBNYu+ZtmQLmGvmwtG3aDGppMHFoXTWgGu Rleg== 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:mime-version:content-transfer-encoding; bh=xHMP4rCUzzpWtWj8JgBXHEt54oo0bcr1bpWR5iBfCNs=; b=Ur2n7OGHZkNVzySfn3+fPlVTBGsAZqCIFuSPr2+knQ/Pie9QVGFUV+iXwFvDzvF6Dk IPkMuQW21vkK/S7fkQhjtFphdWByhaXLCEnPHUHFdWgppcMKcAdFnR9GasILCZqpvr5c wcl//66bJeGR+/op5PXaa7vRFChieILT1NXOY4NmIBTX2qFDhJRV933nZBfu5jPIcmx6 YxcDVLkznNb3J4ZSRhhq2v5LjkNgd3lI9sxwyqT8AAoxC0qAAUVjMG7bJYWboPlfeZuX 0iio1OXXm7ydz4IyLvUz6FW89sBhDJQsODlg3vhSOTx+r+EjGOwlKn3psTJ+sKOXj5Hm 3gfA== X-Gm-Message-State: APjAAAVXdYMYbTXx78PC96s6f7Qk6xz81Q/+vnXB4c3gbhfKZC8ogbyX WzM++F6kNHOL5aSqTc8IGFI= X-Google-Smtp-Source: APXvYqwHoHPD7zL1rJEgRRBMcshKlLSyU/ZyTEiHg3AD8HRWNwUgZxXzLUZVBm17mx+D6c+aryvZ1Q== X-Received: by 2002:a17:902:bd82:: with SMTP id q2mr32025583pls.201.1554085475460; Sun, 31 Mar 2019 19:24:35 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id n82sm13597289pfi.63.2019.03.31.19.24.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 31 Mar 2019 19:24:34 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable PCIE0 interface Date: Sun, 31 Mar 2019 19:24:13 -0700 Message-Id: <20190401022413.6682-6-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190401022413.6682-1-andrew.smirnov@gmail.com> References: <20190401022413.6682-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190331_192436_371343_93303168 X-CRM114-Status: GOOD ( 12.33 ) 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: "A.s. Dong" , Richard Zhu , linux-arm-kernel@lists.infradead.org, Andrey Smirnov , linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , Leonard Crestez , Chris Healy , Lucas Stach 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 Enable PCIE0 interface connected to BCM4356 WiFi/Bluetooth module. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-imx@nxp.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index 304c28034ddf..b25f775e8889 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -21,6 +21,12 @@ reg = <0x00000000 0x40000000 0 0xc0000000>; }; + pcie0_refclk: pcie0-refclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + }; + reg_usdhc2_vmmc: regulator-vsd-3v3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reg_usdhc2>; @@ -118,6 +124,17 @@ status = "okay"; }; +&gpio5 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wifi_reset>; + + wl-reg-on { + gpio-hog; + gpios = <29 GPIO_ACTIVE_HIGH>; + output-high; + }; +}; + &i2c1 { clock-frequency = <100000>; pinctrl-names = "default"; @@ -209,6 +226,18 @@ }; }; +&pcie0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcie0>; + reset-gpio = <&gpio5 28 GPIO_ACTIVE_LOW>; + clocks = <&clk IMX8MQ_CLK_PCIE1_ROOT>, + <&clk IMX8MQ_CLK_PCIE1_AUX>, + <&clk IMX8MQ_CLK_PCIE1_PHY>, + <&pcie0_refclk>; + clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus"; + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -303,6 +332,13 @@ >; }; + pinctrl_pcie0: pcie0grp { + fsl,pins = < + MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B 0x76 + MX8MQ_IOMUXC_UART4_RXD_GPIO5_IO28 0x16 + >; + }; + pinctrl_qspi: qspigrp { fsl,pins = < MX8MQ_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x82 @@ -430,4 +466,10 @@ MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6 >; }; + + pinctrl_wifi_reset: wifiresetgrp { + fsl,pins = < + MX8MQ_IOMUXC_UART4_TXD_GPIO5_IO29 0x16 + >; + }; };