From patchwork Fri Apr 5 17:30:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10887679 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 04A1117E0 for ; Fri, 5 Apr 2019 17:37:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF67E28508 for ; Fri, 5 Apr 2019 17:37:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D324928B03; Fri, 5 Apr 2019 17:37:55 +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 EB49A28AF3 for ; Fri, 5 Apr 2019 17:37:53 +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=phsTUN8w3ECO4xnWqx8amdd828mGZoyg8ywDqOYjLuk=; b=RC7ylEg6a3epol +RmEGwiyN40zXGa9KPea+kCjhBt1QKwv8ViTTcuES+CyX4JyI9tQoixToKoaQM/ng0jw8V+TJYxWo 2zqq6Cveh0G9qECuN5O79h6hlNVdrai799D4FbkoRAGnSg1GXyUn6Sm75aGjVxLD2jDP4P23KMgh5 b5l4hE3tCcqsTGAIS9ndXKy9qX92QphigKifNYEAh34LXWXakfWPdi+UN98yKh8k4jCxc50eHHJ6L acMWDHD8kcEbuLa+Dyon2jP8olg0AKQUpkLoXcN3jKr/9U4FTS31E4ftu5qTk4ugrp0aaZ0vlIaPR /bl8YHQDOErUhgGY0Xkg==; 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 1hCSmm-0000Eo-TG; Fri, 05 Apr 2019 17:37:52 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCSfZ-000581-Rk for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 17:30:29 +0000 Received: by mail-pl1-x642.google.com with SMTP id y6so3392534plt.1 for ; Fri, 05 Apr 2019 10:30:25 -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=nKaup1QFRyqB2UWi1CmJR0ba/ZVD9gxM37jUs9M0u4g=; b=AKDMGdIkWiUWq2xQWoq39HeKqXJu9nbmOxfbeHIuutRh3+Py069kFSzu4YvcVCRL8/ yDA0mOF/Y0kJlSckzjINAvmD+Ucw/BrYqx9mZrw9SUP6S4ajB5WXNWowgji6XjtXedwP de2Rz0VqmTAI+doUb4WbLV7QiYl6dhQJ0CE/09LqbNxzARr7IOO0K1ZMVvRipU2gXiU1 ffzBdwf20UFqSSqu4uIWCVXtBHlchohMJnnoUe9mgAWBNuklremY02tWAYykGKMxMdFh JBLA0zJ9EIwkKr4UsqiBbCwoyozmC7km1oaE6snNqLhUWVbSszqLK/2yZ0AHOqD4Etfd iiBg== 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=nKaup1QFRyqB2UWi1CmJR0ba/ZVD9gxM37jUs9M0u4g=; b=ciZM0Zm55JYds44q/U2v0XOYrAI2fc/e9VRz5DhcPjS6LqP3JqzH1/f/ucXOCuXZvV LQM+ajRnBEBLAFbV8VIITOCZ3q5ssKqWbbsw2vzSi5+E7Cd8qEFsym0b/F2nR3Cwo6Kp 0xVTbfn7XOnJTz3YF5pfb07AJPsA2wbJAm8CF84mDEN5FFGymgyXrTsZw25bi4Q0XGEF uU8QUevvvTgc3UK1MfJsLP8RarhUdtj1VUkIMelQ8HqxOlwNCr9PKvq7A6J3EJ5s7Z/8 6pcU850Np8bDvpDqwcRy3RI3msw9wOQQITiqYvqqmJ/LPjXQZsc42i7CyD5FCk7/6JQP U7WA== X-Gm-Message-State: APjAAAWjxsa0QmWo4aw6V+eqhDhRODv4JMu5aOKdxMBzWOY0ETx6Z6DF j1B8XxIDgXA9XvEPljNJXgw= X-Google-Smtp-Source: APXvYqwpkL2Nsulu533mBb1sguvPuHWyexSWARTdXAHI7aO7ARI8AyfPsx7czKFhPwHfcdEaoQnD+A== X-Received: by 2002:a17:902:9006:: with SMTP id a6mr13817153plp.259.1554485424931; Fri, 05 Apr 2019 10:30:24 -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 17sm49206730pfw.65.2019.04.05.10.30.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 10:30:24 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v5 5/5] arm64: dts: imx8mq-evk: Enable PCIE0 interface Date: Fri, 5 Apr 2019 10:30:04 -0700 Message-Id: <20190405173004.13277-6-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190405173004.13277-1-andrew.smirnov@gmail.com> References: <20190405173004.13277-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-20190405_103026_283193_C075E104 X-CRM114-Status: GOOD ( 12.22 ) 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 , Fabio Estevam , 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 Reviewed-by: Fabio Estevam 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 --- 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 + >; + }; };