From patchwork Wed Feb 8 06:59:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13132509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88EB5C636CC for ; Wed, 8 Feb 2023 07:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vtKRftHpcPviZD/zv7tfl/vtH9Iy15IjbWpU2ehI+Ds=; b=QRfB0t9gC85bub mGsrRbaTl+opvgeYt3fAP9qspUS2dWe7kr+ktV65zrg/daNxF++OJq/wkltJgmP7s5ef8TGoxSGjc vmdpZFbHtMmeza/DJBT3HanrywTLcCGgsJ6rd1+5CT0ALsYAPJf2nbIuB0HeubJD34onT225od7pg 5ry2zOOjVK8rT56RtyKpnUXsnhUTPUMBh6pK5KLYI1jbfXPlD9GT+0OHz2lbZYI8w2s1RxfPxfazg KNkdeNyB+ikpq9EvO+ituLzJn3b1xYRNd9bbF3qUivsGgcMFGmIS3fspEd63xETLqkgn60Ql3qN+O vUDdG1Xb4h67gY2+Ro2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPeRG-00EMpZ-OW; Wed, 08 Feb 2023 07:00:19 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPeR4-00EMmN-08 for linux-arm-kernel@lists.infradead.org; Wed, 08 Feb 2023 07:00:07 +0000 Received: from toolbox.int.toradex.com ([213.55.227.109]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1Mad3m-1osEcb4AEU-00c94t; Wed, 08 Feb 2023 07:59:56 +0100 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Shawn Guo , NXP Linux Team , Lucas Stach , Richard Zhu , Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: verdin-imx8mp: add pcie support Date: Wed, 8 Feb 2023 07:59:46 +0100 Message-Id: <20230208065947.24195-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:HJigRWDL2OS5MAv6RAlF+oEowXGoLwgkfFXYavZTyph8su2JqwK a7QJNjn/eObSGCwKxShLC9KHPg0Q7LNnVZHkMKsNigpwo7rAp+iRSoaZL4RHCo7t6Vh3qlE /zu6fO+9ooPcskXgUvKSYHZctuhrpkAmappCLoA9ro4ae74CFTxfKT53DYu+unDUKey6RhR 5X4Yn2Scaczv5Utnb923Q== UI-OutboundReport: notjunk:1;M01:P0:6CCdWPGsTms=;mPw0iu8rapF/2UmIKZoUd8qsOTJ IGLiGOjsPPioVWhzEDfav0E0NPttYelGYbbJRMmBHOqFfdNsT9brP5kx6ZDaxhcQ26tQpqlKF rkujUFicO1dyons6DOPkCPEWD69b84JNezzEUg/PZglALDjjH2N9UN4X7Iu/GMRAWCHba8tix 2CsYaTfgjIUIt2kD/dvbav/sEHsEZQMplGjlIrOP01Kahj4JNgMvabu3NR7AqOCr1/TcIv+JH b6riLFr/s4HytIQRnIUv9xJGEsECXpozGynKCLpAt7yKv3PrlSVgV0UF4pQLS2ZqxpBzNiyb2 VQeZslPmCdHUNltT7IjKDNt+H3VGH5ILt2zBx9e82NUqBHNp/9ctPE4jMDajiiVDHD1ANlfVA /3izNX4oHlNWBjgAqV/18cwD31/5Ht0UcFN6szfNcL5+MRnZkkHdJ7+35nMouCtYsRy/5oAzM 9E9uhCAaf5WePxc/dlwEIKVoGu/89y9zDhN3hVTwbbi7bfKcJ6BLg5k4+PgGNpt9S4rzePdqd ija6rZjPkD0fiGCg3/BIlmM4aTQyHhvsx1urDkOl185l78lrKgnwcvE7Z3XuUxmgVJVnxqAsb D7aPJBsIdyKH06vUoYfxg0saVBF3xLm+Xemi+B+YjW+p8/tpqN2JFOJXoTB69KkXJXOCbqTjL pZ5r49FX6y9ZwULDBonaAyadXf05/Db2asXwVTMu5brvySRX2siwFiyrM2eO/9U= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230207_230006_156039_35B7047C X-CRM114-Status: GOOD ( 10.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marcel Ziswiler Add PCIe support on the Verdin iMX8M Plus. Signed-off-by: Marcel Ziswiler --- This has successfully been tested with Lucas' imx8mp-hsio-blk-ctrl high performance PLL clock exposure patch set which meanwhile has landet in -next. Thanks! Changes in v2: - Removed clocks which thanks to Lucas are now in the SoC dtsi. - Follow recent change to not include dahlia dtsi requiring PCIe nodes in dev board dts as well. .../boot/dts/freescale/imx8mp-verdin-dahlia.dtsi | 9 ++++++++- .../boot/dts/freescale/imx8mp-verdin-dev.dtsi | 9 ++++++++- arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 15 ++++++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi index 80db1ad7c230..56b0e4b865c9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi @@ -67,7 +67,14 @@ &i2c4 { /* TODO: Audio Codec */ }; -/* TODO: Verdin PCIE_1 */ +/* Verdin PCIE_1 */ +&pcie { + status = "okay"; +}; + +&pcie_phy { + status = "okay"; +}; /* Verdin PWM_1 */ &pwm1 { diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi index 361426c0da0a..096a6f2300f9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi @@ -91,7 +91,14 @@ &i2c4 { /* TODO: Audio Codec */ }; -/* TODO: Verdin PCIE_1 */ +/* Verdin PCIE_1 */ +&pcie { + status = "okay"; +}; + +&pcie_phy { + status = "okay"; +}; /* Verdin PWM_1 */ &pwm1 { diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi index 6a1890a4b5d8..f0e5838665b2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi @@ -749,7 +749,20 @@ eeprom_carrier_board: eeprom@57 { }; }; -/* TODO: Verdin PCIE_1 */ +/* Verdin PCIE_1 */ +&pcie { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcie>; + /* PCIE_1_RESET# (SODIMM 244) */ + reset-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>; +}; + +&pcie_phy { + clocks = <&hsio_blk_ctrl>; + clock-names = "ref"; + fsl,clkreq-unsupported; + fsl,refclk-pad-mode = ; +}; /* Verdin PWM_1 */ &pwm1 {