From patchwork Mon Apr 1 02:24:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10878943 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 70023139A for ; Mon, 1 Apr 2019 02:24:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5540928725 for ; Mon, 1 Apr 2019 02:24:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47D1628807; Mon, 1 Apr 2019 02:24:52 +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 CF94928725 for ; Mon, 1 Apr 2019 02:24:51 +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=t4g2bhewTvarO7IiK3QGqOIABIRYMrlROkpNbNycSGw=; b=Xr2zXpxf2Y7YQT WERdsqIS3rx6G6IDPpMotk/wzWahCQz8erZJF5MOJc1TGZnv0hmlZyU7RNUr9FFCR3rbsrZvlo1IC g1UxPdoCKA6AloOgOYEZ+1YLyYTLFGR3VRHCA9GPnwqi68TuuPriPivMxUZdEgnKB3Q0VySeFAIJ+ Fk48P8Kvlhzj2z/mDAtlW0GS00rUHMad7NQSyxYQa0HBGWBXuibdE33hBsJiAAy1ZYuiZ3jUnFD27 dHWWfWHCiDlNhAsvrx9ai/RYo96f/Rsbsi1SrbelYBFFDMRphR6S6dyOWW9cInmKZywCK21TdPReB JqnVASTvPGfP4FBI1Zsw==; 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 1hAmcv-00079b-Hm; Mon, 01 Apr 2019 02:24:45 +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 1hAmcg-0006t4-3q for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 02:24:31 +0000 Received: by mail-pl1-x641.google.com with SMTP id cv12so3681592plb.9 for ; Sun, 31 Mar 2019 19:24:30 -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=mAmaZn6Ti0gK+WabLU6b8JeutNjpYuXjnDbpclKh9w4=; b=Kwxh7xpxQuDe6PxFmwO2Tsp8PMFmgrgAQVWm0qFNq4bnFWOb1Iwg9XUbdFlm3JrIbf dXLmHQJUTHVNblq+xMIMCNXqIMTvodb5AAOeEwaz1JyLrQ9VhVeM6eBFjfdNn2xrba/6 sZGTsQYqpZcwQm2fLQYKZOxiw2hCkF2E0YyVPBXvmue9eGKPNaGeylFflrxMnqakrz00 BQg/e5AHsNXChi5PBFy0WLyw2jI1EM7+MUNQkKkx6OxelrcqyUdXAx9bEVrKKYIPCToC JWVOnzlnKpXDNFsAe8U6IKjsy8JSMjdn3Zhm9VCAMRaQVOgCiPrz2m7mD8z4rwfKeDVC IMHg== 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=mAmaZn6Ti0gK+WabLU6b8JeutNjpYuXjnDbpclKh9w4=; b=ADo7VQ9Ry4vGHpHVw8zLOGaaLUKvAwmJ2SBsM+hlY9QZTSaFH3lhxYpJgA8z2DQwE/ SkTof5wfhqgkVoMwjQkC1ynYUmo4A5c/rgcMcALzNNt/Evf7TQpg7Bhl9aD2PjY1h+Wa L14HjHmxa4/aotlFnen+QfZK/2TXYO0vNxwLh9mVOFzPJWpUr7Iy6lcXJ8R45A1q8W+c AWG//s08LnX7oFZKqaIUb6U62EB0wkbUPA6fqDEc+e913I/GbWVQtfDuUN5WGEeUOwZK KI5IRvvRtoN6ShcKWN6F++S45T4eTS/oFU7ismWylD/5uGQLYHdUlw01vDyTvxASs3QS WxdA== X-Gm-Message-State: APjAAAWavTd88SWgt7aHkYg4WTGiuagAQeXzUpsMdrk0+M69IdYJ1Eyo NFGy/2YHchzqIhM4upfBj4Y= X-Google-Smtp-Source: APXvYqxZq0jajGFxDPTKZk0QBH+ZYBby7D6JMTBfPZ2N/gfmgJ4Ge1xaGas00q67dWWhaWK72AZvXg== X-Received: by 2002:a17:902:3204:: with SMTP id y4mr20541403plb.80.1554085469539; Sun, 31 Mar 2019 19:24:29 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 31 Mar 2019 19:24:28 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v4 1/5] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible Date: Sun, 31 Mar 2019 19:24:09 -0700 Message-Id: <20190401022413.6682-2-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_192430_151498_EF694095 X-CRM114-Status: GOOD ( 12.60 ) 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 Mark iomuxc_gpr as compatible with "fsl,imx6q-iomuxc-gpr" in order for to allow i.MX6 PCIe driver to use it. Signed-off-by: Andrey Smirnov Acked-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.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index feb195984997..3de390777af1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -404,7 +404,7 @@ }; iomuxc_gpr: syscon@30340000 { - compatible = "fsl,imx8mq-iomuxc-gpr", "syscon"; + compatible = "fsl,imx8mq-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon"; reg = <0x30340000 0x10000>; }; From patchwork Mon Apr 1 02:24:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10878945 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 BD9F4139A for ; Mon, 1 Apr 2019 02:24:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4D3228725 for ; Mon, 1 Apr 2019 02:24:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9916628807; Mon, 1 Apr 2019 02:24:59 +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 46FE128725 for ; Mon, 1 Apr 2019 02:24:59 +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=wPesutfHP46MHTdIcE7W04GOROobPzAyrIHmCSQP0d8=; b=MDWVELKx6keWtf H2p0RR1tfCml0lxz3dfl/jOSy8R5yUV5ky6Cdu6WdM7xTB1kE3QWmXhb3Yv86gu4SfBfw3Whk25hg myorMyzci5RKbsYhSBky5+qam48kZQSXw2I8lmmYwDaos7PL93gw8MxQfCATI3Yfbm0nLhygOpdZ7 cvrNO31nla7NUEraARphgGkK78us5vu6NQB++MQ2seIwHMuZYnlyDG3j/vQOdQ7elAuaLsN0jnPE3 YjF+tz3BCNav7h2kwwxDXfgyH5SkqnCNZzYFK2+zpTcB0hNuM6Uot2ySCF3ZhCg2CafDJlgy60BKC 9b2YU4s3PHlORn0EYFNg==; 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 1hAmd6-0007NJ-AY; Mon, 01 Apr 2019 02:24:56 +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 1hAmch-0006tP-GX for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 02:24:32 +0000 Received: by mail-pl1-x641.google.com with SMTP id b3so703214plr.7 for ; Sun, 31 Mar 2019 19:24:31 -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=LBN0mkzwyw8Rcu7pQS+Gmvv7waoUnDRCjSKeMe9btfg=; b=nqy6rCkDYDihbkhg+H1iqvHsyjNFaAAz5D8hdvLkAbURsam8cZQd+YS3U8No7c5fFJ o1JVxQZVLKixH0rh2hG6KGa4HR7ONRy1wvAo6xNz1RtN7EjB6ikxczPU702t/nRobX+V gnP0jlfA6LsnjyAJTSvEK1ifI8AJXxii8A0eTwXNK78/E77zDtWSYuhVLPn/vz2htZKp 3fCouBnNHgEzHjwh3+6MHumTF7GXX9yP484IjLzT5JTsBI8HC5ooTrxkwhAbPt0jiqKf PL7OMlEc95P40WdeE36QkgNpvKhJ7uKCRa6O5slqxbEHmVXLbBw6jdhbJ6Js0Qqyw5oE AUHw== 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=LBN0mkzwyw8Rcu7pQS+Gmvv7waoUnDRCjSKeMe9btfg=; b=DWew8Yy+pF1uNu1+2pwdlQk/KtNFFv5zkhsyZ0oW+PVPUD2kIrq7Jgj5VaP8OzzyCi HjWUNg9P8zRu7vcaLIfiTVcwiXWfAdn7uvBETgXYpmNLaWcCe9VVvpy9kw0jpMFpfwTU HDLCGhpa8uZ35I8ugdBLMrtX4V3H5B9+AEfQVhT5hFxiSvXyG1F1I8An2TzA+FVtmVmx BapPoknoc4AaMviW5sGvqdD7EHbIHlw/iN1oVkXVvEGjmoihwLwionlSbNWXgE2fvIsP 2HxOm+NrAiDN3J9Slkh5R8RgIKGf5aTsIlDD9PySlMAopyq702a9KaaMls3lHlCNxr1P QKLw== X-Gm-Message-State: APjAAAWnycf6i/bSBgWOFquv7AGH0+RSDIkHaa+ISGw414HpmoKKuwWW cCZHFIXO7RCvnuq4+6qJHck= X-Google-Smtp-Source: APXvYqxlUYNIp6vgLGIzM+7LwSfeYD4Sxtuamulpdp+co8ZgZzmFnYFcmtaF1LbSRbcNhdGBgZNzyQ== X-Received: by 2002:a17:902:3381:: with SMTP id b1mr52183067plc.5.1554085470940; Sun, 31 Mar 2019 19:24:30 -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.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 31 Mar 2019 19:24:30 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v4 2/5] arm64: dts: imx8mq: Add a node for SRC IP block Date: Sun, 31 Mar 2019 19:24:10 -0700 Message-Id: <20190401022413.6682-3-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_192431_545634_BCCA2F7B X-CRM114-Status: GOOD ( 10.71 ) 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 Add a node for reset controller IP block found on i.MX8MQ. 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.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 3de390777af1..656f7cb97703 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -450,6 +450,12 @@ "clk_ext3", "clk_ext4"; }; + src: src@30390000 { + compatible = "fsl,imx8mq-src", "syscon"; + reg = <0x30390000 0x10000>; + #reset-cells = <1>; + }; + gpc: gpc@303a0000 { compatible = "fsl,imx8mq-gpc"; reg = <0x303a0000 0x10000>; From patchwork Mon Apr 1 02:24:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10878947 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 C1968139A for ; Mon, 1 Apr 2019 02:25:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3D0A28725 for ; Mon, 1 Apr 2019 02:25:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9299928807; Mon, 1 Apr 2019 02:25:18 +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 696F528725 for ; Mon, 1 Apr 2019 02:25:17 +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=64UGdqP4gZeOs8gRfF01Ey7ORGI1vY2MOUeKG70FPsQ=; b=cVGRMnZO3tbyQB Vfj43ezUrrCBoq/vI7b9lFNPnqSGgj6/nP07YMNS4RJ1I1d7tz5dnM0QNBj8QyeSbydX24Mu1DWGB kWTm66WHsOa6386oenWoEuS+BSiY0DvCFdBxO9M9kXMT8DoRqnqXYyYhXkkUzb4iuQHYDhgJIrTPL tih4HQ3Xf6FnHxVMjjXZSlII3kr3gfzs8KxmkqkHcGMldQNbtI1dinal+096scWb9wfEO/T7fC1UN Ah8B36mjoJiFBJRPHPUGNY6x5oV7cZSU32ViH95RF7j/i6RRpoafa3VmShtuKGMABb/ZH8Uz4YL5V rHBZH5SMA03z3F8qA+/Q==; 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 1hAmdL-0008Ht-60; Mon, 01 Apr 2019 02:25:11 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAmcj-0006uH-7s for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 02:24:36 +0000 Received: by mail-pf1-x443.google.com with SMTP id c207so3747603pfc.7 for ; Sun, 31 Mar 2019 19:24:32 -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=Dp+KAOig4MbV+uJnwASkViJP+U3MnsD8F6PLsh9jNDk=; b=Cfs4cUC57AzT6qfOgV5uyJwIhzXkHn1HpUJZ2oYsCNL0IxnDJ5CcvarcEQLoHG0iZ9 fxzocSPX+87tFRwgXIbL4f2LSPHXnsFBb8DDm9qgm+G8pGMAq8+fN47CwSlCp44SWObT aeHpjhUTC0IL5TucCvDhJ5gNi9OfxMHQYjzJEMOq02BFIvmXzAYNgCv4Ynlpgy6SgHit bT0wn/eBz03l8DOEBcMBsQbATVW/jeY8r2WTi6oSBhXc8D4Bf5HmNG+HtNX5hCd5yCqx 5xcKgvN4g/dE3ZpxT69ewdtE7JhgopVte9tgNDZzqg5cja9bMuO+Wu7qxO7C1pNWhq8U 6p1w== 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=Dp+KAOig4MbV+uJnwASkViJP+U3MnsD8F6PLsh9jNDk=; b=QPE695Ae4GMXH66ZBiK8pSOIru8Q2KXwyk5AByrELLhpigqUAcJXk99jAfVpAxAhoS +iE0AWGB6JEcbNawa7pB1v+F6mbV7h6C1/ITWzGxS2uLyBWVMtlHDmv5sS4hZYLJoZhl 8EdXUE5C3ucLRrIkC3EoChgTlDoMN4EuCrOqm9KRZ/rxj+bTbzAo6xPZu+UWiyyv59GP peFiExWjiO2da/SmFMEj6Mz9oqBeppoO3DNnCv/XUrA7PsgzBWKDn+I87cQQzlC/zUWT QqBjqpOPNXEZiEeEA/0orQud1DXA2d6Vbw/CJlnHPm0+GgyDcfDXmCmGhlg7ttJUCq/w E8Aw== X-Gm-Message-State: APjAAAVZhW1AXZsaULDsfjGmF1CrMi4RlIGjPHydJzaZidWpgI+qLnHY Gi9cV1xJKdSbgKnRZBsfLqM= X-Google-Smtp-Source: APXvYqx/gJOTqXTew+v5QYd4wK3uMpnMTTNnjlDP9Tjx5sIrztjRYlPDjTBGwI9HS3ygaFEz/G6ikw== X-Received: by 2002:a63:945:: with SMTP id 66mr25690827pgj.128.1554085472375; Sun, 31 Mar 2019 19:24:32 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 31 Mar 2019 19:24:31 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v4 3/5] arm64: dts: imx8mq: Combine PCIE power domains Date: Sun, 31 Mar 2019 19:24:11 -0700 Message-Id: <20190401022413.6682-4-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_192433_490920_878E4A25 X-CRM114-Status: GOOD ( 12.32 ) 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 According to NXP's FAE feedback and a comment in ATF firmware, PCIE1 and PCIE2 power domains can't really be used independently. Due to shared reset line both power domains have to be turned on at the same time. Account for that quirk by combining PCIE power domains into a single 'pgc_pcie' power domain. 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.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 656f7cb97703..d7b564501fa4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -472,9 +472,25 @@ reg = ; }; - pgc_pcie1: power-domain@1 { + /* + * As per comment in ATF source code: + * + * PCIE1 and PCIE2 share the + * same reset signal, if we + * power down PCIE2, PCIE1 + * will be held in reset too. + * + * So instead of creating two + * separate power domains for + * PCIE1 and PCIE2 we create a + * link between both and use + * it as a shared PCIE power + * domain. + */ + pgc_pcie: power-domain@1 { #power-domain-cells = <0>; reg = ; + power-domains = <&pgc_pcie2>; }; pgc_otg1: power-domain@2 { From patchwork Mon Apr 1 02:24:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10878949 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 776DD1669 for ; Mon, 1 Apr 2019 02:25:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59DFE28725 for ; Mon, 1 Apr 2019 02:25:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E3EF28807; Mon, 1 Apr 2019 02:25:28 +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 2A02C28725 for ; Mon, 1 Apr 2019 02:25:27 +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=tNC23P8QxtXydePe+UCRbt7cGLJkE1HLiVHAGNUBtt4=; b=uMAHpLRD9lqhzL Na6jddvmEb11WkiYkJL55ddFn7gfSN0zSY5tNQC0yS60sq+j6weemj2G4eyFp/OQj7adSt4GiHw62 aK6RoYUUBk/cPU/jm8+/NX1mXaL26oLreQAF1bH5z2pI0rngp3kAV9U99gYDNYbo8N4pOGA5WI0q1 InTC4+AcXAg2Yginbz70muCsS1c5inxTPg/O+6OhAmtNy1NpdwqiXdnN8tDq9y9rSC4RYXmdnrcgt nGC1R4YAYXh8P09ABeNGCixqvmy1o2Exu7pXKE/3yD69wTwXY2bdUcFs98QJLTUCp7SO/ZgH+MvyW EbyomamOS+jEyKltRRGA==; 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 1hAmdY-0000hv-UE; Mon, 01 Apr 2019 02:25:24 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAmck-0006wn-PX for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 02:24:38 +0000 Received: by mail-pf1-x444.google.com with SMTP id 10so3750579pfo.5 for ; Sun, 31 Mar 2019 19:24:34 -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=SmQOOVvgLMWbSWgCt0M5k9ym33hTKyNZA4aTEsfiuGk=; b=S5TVLLbarES8x9Xs5O+xjJrF/ZNFZ+2+ONcZYDpt6NnCRDX5Eqi41K0w2cwUnsPBdn fkm4+yh2OkhmQ490+mU786ao7oe9QSrSzxcO5BTsWNTfBY6FL9XoJth0C8GNDaJ/NU8K poU1RvJRi1zAUxMirxVF72l3hLDQYSbJimTG00PokvJ+cw/Dxgg3NRu0OQ7SnlpQDsY6 Cyipt0SvlqZKfo3mlo8I9oWKT9fEp5i2K2J9MMhStDIsJ/SKZh0SccIQvh46ORTnyOjN 29H4XZ2eqv2itBBBtQgBAX4H6eirnhxrOoTXWP8piY0X75BN8F//Evpp0ehKI2TIm0jM LA7w== 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=SmQOOVvgLMWbSWgCt0M5k9ym33hTKyNZA4aTEsfiuGk=; b=tjX3Ok3jZx2U2AtyxfI5dgmXggH1deOAZMbyVadGE4Oh8ccw1Ybn1bOrc3q9b/4PLk 7OZPxON4PFGs7SctyfUTwD+11UWp7bHD3TehhOaBi4CEDJb10E4sv2sz5z+GQSGg+Mjg R06VTdrtsGv+CJnYaQvd8NDyq1z5YgyvnuuOMK7gYlwsBlJ5rK0YShQX3eBS6a2dPg2t M6Ox04MHDdci71CwOK9JBybEdgOyUGFSmf/7Edn25H4l8ume8vjVJ1MUJ5rOU4LobQ/g ZREOk9gp7M+M0IrqNBdKv4Fb01A26NDIzM2Kjc0f/ous+PrB+sB1WxdCDZw5iLwnMvxB 25tw== X-Gm-Message-State: APjAAAWTZVwR5RbWrMGgZhIobtpRT6Q1jyn/9yTqKi2Yj/AKE1OQuYfM eL2KqyyR5irf0ea5/XW+ZxU= X-Google-Smtp-Source: APXvYqxx7EvXn1mJoxxIFB4tcO8ISP1u9FAoMJKihielcs4Du6Hdjkz9Etx7UqrxWZ3PIuU/q5y6qg== X-Received: by 2002:a63:7e10:: with SMTP id z16mr5076727pgc.40.1554085474037; Sun, 31 Mar 2019 19:24:34 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 31 Mar 2019 19:24:33 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v4 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks Date: Sun, 31 Mar 2019 19:24:12 -0700 Message-Id: <20190401022413.6682-5-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_192435_118093_C24CDA5D X-CRM114-Status: GOOD ( 12.28 ) 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 Add nodes for two PCIe controllers found on i.MX8MQ. 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.dtsi | 61 +++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index d7b564501fa4..7c3ee8657f26 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -878,6 +879,66 @@ status = "disabled"; }; + + pcie0: pcie@33800000 { + compatible = "fsl,imx8mq-pcie"; + reg = <0x33800000 0x400000>, + <0x1ff00000 0x80000>; + reg-names = "dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0x00 0xff>; + ranges = <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000 /* downstream I/O 64KB */ + 0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */ + num-lanes = <1>; + num-viewport = <4>; + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; + fsl,max-link-speed = <2>; + power-domains = <&pgc_pcie>; + resets = <&src IMX8MQ_RESET_PCIEPHY>, + <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>, + <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>; + reset-names = "pciephy", "apps", "turnoff"; + status = "disabled"; + }; + + pcie1: pcie@33c00000 { + compatible = "fsl,imx8mq-pcie"; + reg = <0x33c00000 0x400000>, + <0x27f00000 0x80000>; + reg-names = "dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0x00000000 0x27f80000 0 0x00010000 /* downstream I/O 64KB */ + 0x82000000 0 0x20000000 0x20000000 0 0x07f00000>; /* non-prefetchable memory */ + num-lanes = <1>; + num-viewport = <4>; + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; + fsl,max-link-speed = <2>; + power-domains = <&pgc_pcie>; + resets = <&src IMX8MQ_RESET_PCIEPHY2>, + <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_EN>, + <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_TURNOFF>; + reset-names = "pciephy", "apps", "turnoff"; + status = "disabled"; + }; + gic: interrupt-controller@38800000 { compatible = "arm,gic-v3"; reg = <0x38800000 0x10000>, /* GIC Dist */ 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 + >; + }; };