From patchwork Fri Apr 5 17:30:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10887671 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 6F91D922 for ; Fri, 5 Apr 2019 17:30:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FDCB28A46 for ; Fri, 5 Apr 2019 17:30:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43C6428ABB; Fri, 5 Apr 2019 17:30:37 +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 DA5CF28A46 for ; Fri, 5 Apr 2019 17:30: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=ffSVtHIhZ3Z7vldU/qiE8Wu9zDRo66tgWKzl6r4aem0=; b=Hj7SmUQ3XRlIwm REoIzHxl1lVUq8BZsJ+Stgk5z13kJF/MlCncvlpiF4IqfpP7jFUrY4cp1hiooo8LARH2pAPrm6rr2 fhQHIIR5gJepXL3ranjKsl7drE8iOWIGjRv+4CAA1SKLcCNAoperniHut2ZlFgM9mEHv1B+cyKoqH Jnw0pe83E6x+8+FcdtQJCJaiJPJDrjw1OYORY8BYZvMJ3/bbTD/JQmgrhjiXelCLnBC32rK33eSW+ Z+zayK7GM8SRW7GlApV0YrNcwp3rm4UxBjZWIFbefxMiBDe7tCeRlJin5RTc6RsMW2aqsOL32P/9u hTelrjKU5mT7FGiwk5iQ==; 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 1hCSfd-0005EJ-PX; Fri, 05 Apr 2019 17:30:29 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCSfS-00051M-JU for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 17:30:20 +0000 Received: by mail-pf1-x441.google.com with SMTP id c207so3643663pfc.7 for ; Fri, 05 Apr 2019 10:30:18 -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=eLy6bb/4LPYJhbuV9KqdWRy/+VxxWR7wsVRqrK6RQHw=; b=s/r0bq9+O6p06TN5dWhrKIdhGzQNy3Tfm6G/oOt0yAkL32JWohbyBdnY2pIBcPVKmW 9kE78tWP18+tIKOYoHkgQB1ujCbKXk29LvPpVLHH3TA2NG6Sjo6WfH5ldBRiKtS9n5yl jbR9hwohbWGSwrwP5fuFumhEFe3xbog0RP+RFTQIRHNRkp5F/dRaxONdiwb68v6Yi154 y7K41fTT3le2yJXovGobCNDARKDoJzCNCvtPjBcD1OnN4s8Dg4htCZM1RgIwzjoupiHU PG8afltHkD3xUX7asQyoTuUyqyVD/Rt1igVVhCr/O2bMxj4jdGAcegy4/8KUZTsqUFIZ PL4Q== 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=eLy6bb/4LPYJhbuV9KqdWRy/+VxxWR7wsVRqrK6RQHw=; b=a04Ig/W+ieouLQbG9C7isFT5CCFKh6YJ/rZNLbbft8lXXt2zCBwCjVN6jc35A9hs9u w6xEoT69zz8BAbQo0rG8koxgUwxj0VuxlGelizYnIqdmto2wB+fhfitlpNO/QMrNCrwN V1rk6D/m9I5wbYlkwiQ9Ab74PmpJlY2ZttWdK7ElJGhryW6CXflSnQMc/f1FRtJGNmJF WqfxIB63J/bGylVr7q/AvoTsm9kA2CrQEXw01xhlcyf2pYe+a5OU9ITQp2ZbAaPGws5e rkKiywMzHhHqASNi1Glfx1G84z01x/eOM/dWmMTOBRWOTBtc0G8gMvctbxy8hOjByL8s iZJw== X-Gm-Message-State: APjAAAV1v0rMT+7NvzVz24Pd4i0xRLUb3pixPrKPhWzJvwcHYH9VDFwt LJBb3HtcaEVxdkPrDB0foy8= X-Google-Smtp-Source: APXvYqwJV7+rwBBRHSOPzYTFZ5bXTd6c3UrkclGAmvCbmPuzORdTAfVzh8h2ebXwXo4BT8V/ZArhSA== X-Received: by 2002:a65:4302:: with SMTP id j2mr12681558pgq.291.1554485417591; Fri, 05 Apr 2019 10:30:17 -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.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 10:30:16 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v5 1/5] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible Date: Fri, 5 Apr 2019 10:30:00 -0700 Message-Id: <20190405173004.13277-2-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_103018_647438_7D8A1F92 X-CRM114-Status: GOOD ( 12.41 ) 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 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 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.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 Fri Apr 5 17:30:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10887673 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 578A3922 for ; Fri, 5 Apr 2019 17:30:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DFE328A46 for ; Fri, 5 Apr 2019 17:30:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30A1C28ABB; Fri, 5 Apr 2019 17:30:45 +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 D91E628A46 for ; Fri, 5 Apr 2019 17:30:44 +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=fvKKopA4Rk4HtsJXqPm8FNSCP/YsVkwQkrPn0G5i1QA=; b=hWzmkcK8xVolEc b139JcJjXhPGB8+gRfNep+iRmT5yDrVl33ZaKnlF7vleAk31CjRAO6zNtvPnWySNCbVUTXY84tpYE 7VaLZ83h49NxmDjAqacEYcbCzmWaGozMjTAb3c4IuO4heZJLyODIiz6hNat/+nIjPQyN9Rbip0IYl c2C2nxOODg0Ebp1pdxxk5CH/5LWpfEjiNFz29X1sCFl1M7iz/UDwMABoPsmoQemvUeXVUW4Ctxdga bRmUXdMiRFm6E/H1mVVun2CgQ7Na2XJqT8HOro/+ae3dlV/BHpBckjskId5fVwONl+r8rInB1TcUv uuwvnGJ/hnsiYe5NyiXA==; 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 1hCSfp-0005T7-53; Fri, 05 Apr 2019 17:30:41 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCSfU-00051k-Q9 for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 17:30:23 +0000 Received: by mail-pg1-x542.google.com with SMTP id k19so3443730pgh.0 for ; Fri, 05 Apr 2019 10:30:20 -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=b8MdsrY8wn1unMunG5fO8xg6tFLnnMeursiPoS3s4Kw=; b=Dr4ohbDbUA/byTPuMbHNDk+RbqPQlrO7HtoEb2DFgjzFhRKy9PLU0ecU6M9WPtH91n mbfxROYDWD9r9LWRSBK+9e2nkJJHs1eUar9wrQRZ6oWCg1IaIKoPWEPhi/DZBCguwO51 /NntSYT+YrzZDdZPsdHCJpH/J7JXFOQ5LJ1sO1em81JXLY5xTBtfwb/7aWf9CXOhx50/ iPBqLwKqRxEXlWEtp8rz+ikOdufZNTIAinxpr/HSj10nTZV5mvGRDJMEK+gbXJcUQJ8i bz1Xk+JWXq6kCs+qQGj4S67LfwG6erpvxE0VURQcMhyBwLq+u2LMpE55dJ8QJOgXdCTD AswQ== 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=b8MdsrY8wn1unMunG5fO8xg6tFLnnMeursiPoS3s4Kw=; b=hFR/dx6oNRklsaFajsDxw29pTHXMyH26F9XHLyd0bz618wu7pqWIGUccx06BrtrhFM WymdtXH+xSk+0BAWzZ8XQfhmx+95JKWV6gryjW0IozfinF+mzD4e5SYbGOWeyQS4sUdc qnpKGh4OGQQI7Cdifg9W623ywI4sh9dVT2jNhqxI6vRlv/dA6JcAHO4ZYw7GCbV6c7BT wDuPG1icgD3xkgbjRJj0tj0krYHTwxIpMuWoYbPQ7quH0dGPgowHQIQ1ZLPes8a6+f6W p1Js3DIEGyHarXrFUxgSiTUtH9IqND+OKcFJPU96MMdVN5SpW8bcJzb1HHy9JS7VG+kf DWYQ== X-Gm-Message-State: APjAAAWHcIhURSW+vLM4xhkYuDMhtZrrd54YNLGdbjIrAkAhq63McFNa S1RyzW1RfSYc0rRhVKOa780= X-Google-Smtp-Source: APXvYqw4o+f+AcRSgHyU+5hHHE0u6CgUG3Pd1sQUPmbYN6IcD1Mwxcuv0yV7EJS9LaKtFW1KUbUiyg== X-Received: by 2002:a63:408:: with SMTP id 8mr13224327pge.334.1554485419654; Fri, 05 Apr 2019 10:30:19 -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.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 10:30:18 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v5 2/5] arm64: dts: imx8mq: Add a node for SRC IP block Date: Fri, 5 Apr 2019 10:30:01 -0700 Message-Id: <20190405173004.13277-3-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_103020_944550_B9D3E412 X-CRM114-Status: GOOD ( 10.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 , 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 Add a node for reset controller IP block found on i.MX8MQ. 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.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..83d023aaa048 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: reset-controller@30390000 { + compatible = "fsl,imx8mq-src", "syscon"; + reg = <0x30390000 0x10000>; + #reset-cells = <1>; + }; + gpc: gpc@303a0000 { compatible = "fsl,imx8mq-gpc"; reg = <0x303a0000 0x10000>; From patchwork Fri Apr 5 17:30:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10887675 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 307C913B5 for ; Fri, 5 Apr 2019 17:30:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15EE428A46 for ; Fri, 5 Apr 2019 17:30:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A1DF28ABB; Fri, 5 Apr 2019 17:30:58 +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 8FAE028A46 for ; Fri, 5 Apr 2019 17:30:57 +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=WieNj0oIn/vrZNqrOuixadMSmrTac5Tj5qiN6iRglEM=; b=tJAh41AIck2vNB Iw6T0+A7G6N5Tnz3dthJgPf9YUCVnGZY+mzQfmuM7ddQwHZrPBwKJKhaYuzjPxEaI2AygOarkwZvp SSlnMezwQdnRvYJ5VPtlA1zxriH2S+BrZnoGxAaIYxlobsT23pEj06iqhHz/f7pM6alNArS7D6KD9 bqsYEBaG79jdX8lJZYQRRYtFEG+YBYp6pMz8L1eiU9FwQ3//g4qtXiVCOej69+d57dFgUbHgXrlGF cBtM3Tq8vseR3jNQeGqI7xlfs7uOIdt9eskXLlwuPbrM5sS1o5n+4/A4YEnw5VCya53qopbece5GT FXSyaXM1aYH13B8f9Lkw==; 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 1hCSfy-0005jJ-Cy; Fri, 05 Apr 2019 17:30:50 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCSfW-00053j-GY for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 17:30:25 +0000 Received: by mail-pf1-x442.google.com with SMTP id 10so3647574pfo.5 for ; Fri, 05 Apr 2019 10:30:22 -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=fvy4jiablMjkp3jrIwKlN9pmB9uILJowYkcpvqR6Ge0=; b=FnaGdy5R3VV/GFNcZACrWfBJO5pnLKzOp8KUbE+TeqLXeBqNZlxTOVeVvedIwX29T9 0G/NrRVzyzReABdtBxY8dfCrjUgLjjuE9B7CTJuWRwPpaqRhrCPU3qZk9lNzh+XKRlzb 3chlGebyUbXcCD2XRKcB8XuwdVauUHJJP1Ugiubs/M2gYMh/gdv1sqmLagwWyjyjoy7j zEhUfzmsd1R7Jha7PKO43XsA3RBTNy14rsi5mKRJ8FhhNUWPCazaG+nuNOjE2Cv5cUVu r2ffGlHrYlnvuOyWe13snTK9jRXmcVznKyR/2dTpHwB4xyY0EApvpW7tT+0/FQIYyknK sqAg== 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=fvy4jiablMjkp3jrIwKlN9pmB9uILJowYkcpvqR6Ge0=; b=SdU13KMRTVWX3SGaNJcfhwCFAjLtRQ81f4pKcUaySpsLjC7i6PlQsfH0jIrQ1kQ+wL 2D3gnxQNi9ob5U/CnXuY5nYoXJ8WfFsAy0MTGmnZcvPNvmpV123ClQNJOgm/O8Q3Q5KY qg7iCP8/OenN9b+fNm3UpJuop9QdfD2wjH40VPUVaql5TEBzvFdFDiQFruPpIB7oyhCc Qis5a7AwIrY6abPCEsMoM9Zw+GOoyzUtyWJ7gcQx2ndeFXkvfPSHcsN7+cfi/wZLLXHV zCjTdUPHTIsVHiaqnOvF54FD00JU0RKMJShuFyn5PEnm7P3H8Y5dtzh5rv8DySGhlCP8 uc3w== X-Gm-Message-State: APjAAAUwe79KScLMKn3Lqjo8v51VKvKlB8c0/DcyEROlyVbR00SrmvjW llEEPy78M31pUSQbSspkgdA= X-Google-Smtp-Source: APXvYqyU7DwtNszH+EIFUDBLC3RRQ+Vz7GITfp657KrI6kmfyZM7umbUiiKzSrFaABF9f8MR8gUUIg== X-Received: by 2002:a63:ed4f:: with SMTP id m15mr12913947pgk.387.1554485421609; Fri, 05 Apr 2019 10:30:21 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 10:30:20 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v5 3/5] arm64: dts: imx8mq: Combine PCIE power domains Date: Fri, 5 Apr 2019 10:30:02 -0700 Message-Id: <20190405173004.13277-4-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_103022_869314_D7D1F8B1 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 , 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 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 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.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 83d023aaa048..a85c3bef66c2 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 Fri Apr 5 17:30:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10887677 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 D51661708 for ; Fri, 5 Apr 2019 17:37:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9C7A28AF6 for ; Fri, 5 Apr 2019 17:37:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC72C28AF7; 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 D084028508 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=6sWy65M9Zape83iOR9mjWaQaotkuMkfj/m/9IiRBVVI=; b=eX0CLIOjelJOJJ zP09HEyXs/NMRlQPSgpWsmHhtiOqTh7g1BaalHAYEp8vTuz08fgygFqKpWCmgNhsl75ew4/hQdBKJ EKIxqHIK/meWDGkSa5ey4iQpJq9WWeTupE7G7yppywhTsIS7VSfois7gFHkoKQQDHFinefjy3U6+l n/sbQcnQOFBIffv6WkUvviMZ8mBwiFmYXhHqpEEZeLQN9GE1TDTER+gNDAXIc7vPZPb0lI+oPSo8h pN9xk0uapownNmXWvvbGgcR9nedb5ZIqJT4YtjhXs0Mw8FGkN97b/9ZkAIOyAGheTKGOX7g+88GdI +vffYXEDPunwMypiMgNA==; 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 1hCSml-0000CQ-3E; Fri, 05 Apr 2019 17:37:51 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCSfY-000568-2k for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 17:30:27 +0000 Received: by mail-pl1-x643.google.com with SMTP id g12so3369380pll.11 for ; Fri, 05 Apr 2019 10:30:23 -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=JFRGoLxVB0WAlxtVyVVQi3mTPcJSmaun9apfFU9MzS8=; b=P0xYffNDnB5XWOpl/yhOiDqA0uuBED6vzhoHIhA6J7+tNUgbiM6uNWPSDrctIHZ5l+ AJ1BjEbKZyOGFg2A6Me2wTJl+T3a/yxNmJdFu2aIy1+hzQno64DM1qgCuqF/ErIsEopx LCNsWMCkPjevfOSUd/jYAt7YnvKIcgJbC1ImDi9WWEsg7cuji6DL1jVKYSkK7ipw6MWM qg8oiD9xFRQeUcddb7AROdTdBSyEIi9UgaYuYsGQ9NOGKsFouPg+rg0yuF1KFw3b8uPR J6jyZ8yocgH4DTAqKQpieUfst1i8s5tyzvgH2wJK10fZCB8l+QA9iX/bkLzPlSWiaFFX mg3w== 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=JFRGoLxVB0WAlxtVyVVQi3mTPcJSmaun9apfFU9MzS8=; b=Z9rrsr3Olq7zWmGJnE9TKmS464Ry6TWtiE/UUjuJnilibHcrOzbq2hF9WFy1zkJ47x /W8wRo5mQPHSauU0AG7wex8+PvqrnhsOe1zbswIk1qvXuvGF2Zub5oTKxwEshabWXejk YnKDHpcXL3X5bbBxeHlUh15oUcttuoSyTeSq921ZoqJlKZlc2wJIu8BN9VLQCjxN+s0i wgFesx/G+XIuDbML8O7oQR0YTVmSBDfl/0gQcc3hMzRhKr1rkSJkrZjiuCQgj2AimbW5 nos9qGJypy+1zdLUyTFVu0aPwbJjLRe96kbOykoQ/njubFGDUnuO6rKunVpy/g7QKV5e 93kg== X-Gm-Message-State: APjAAAW4sl0GbzMYra23MUnszXnZdq7mlvqcN7CCoaF4v70s1Ku7vdSd 1RRMv3FnC1aL8P6eDrTLGzY= X-Google-Smtp-Source: APXvYqxtJaBT6gKakQxbhtfQ38nXVjx5/MiGyfvZ897Rs8y98TMO75GIxdIUNgRVlYcVV/h9kIMiJw== X-Received: by 2002:a17:902:2d01:: with SMTP id o1mr14350328plb.155.1554485423213; Fri, 05 Apr 2019 10:30:23 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 10:30:22 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v5 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks Date: Fri, 5 Apr 2019 10:30:03 -0700 Message-Id: <20190405173004.13277-5-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_103024_550063_A0677C4D X-CRM114-Status: GOOD ( 12.18 ) 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 Add nodes for two PCIe controllers found on i.MX8MQ. 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.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 a85c3bef66c2..b7c9ff0ab863 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 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 + >; + }; };