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 { From patchwork Wed Feb 8 06:59:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13132510 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 75D85C636CC for ; Wed, 8 Feb 2023 07:02:00 +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:References:In-Reply-To: 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: List-Owner; bh=0hSGXOFNYCgSRuJyAnx4qEnfIAWc4RxgVsyK5XRHCoU=; b=QgEvFW6RtO+/eS LTg3R10EstMh2gTBsp8hXGnpJU26jjCfkkzRkApqIcjbVdqps86y+CjMhW4NxUrGON9pBlPzfrvW4 bOz3brMG8vCtnX+Cp+rq3ls2ixU7XOHUfe4KJcut70HVzYxAbVkZUnNkg/zuaFmGcvf3EZg6Luhev BF92c+7XY7KZ49cCVKrm+3czPRx85c/qKtGjtiTwkMDQ29MJ2E7EypInUJfLeXELMs/33xxQge17k F4fBTm//Ga2OYrGPoUfxlzciq3ia7v48cuC/ktwYCqiowSiX3mP/pnDtW9VFH/dQ1AnEWJz/QA6OT uRGhhiehsIs2N+SAFG7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPeRt-00EN9s-5O; Wed, 08 Feb 2023 07:00:57 +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 1pPeR7-00EMo0-2k for linux-arm-kernel@lists.infradead.org; Wed, 08 Feb 2023 07:00:10 +0000 Received: from toolbox.int.toradex.com ([213.55.227.109]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MxVGn-1ofG2r0JVB-00xvE0; Wed, 08 Feb 2023 08:00:00 +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 2/2] arm64: dts: imx8mp-verdin-yavia: trivial minor updates Date: Wed, 8 Feb 2023 07:59:47 +0100 Message-Id: <20230208065947.24195-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230208065947.24195-1-marcel@ziswiler.com> References: <20230208065947.24195-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:cTJ6kJnf8XRJsOhc1jXKDGl7QFr8mISdwaay4+fQqDXl/YtriX+ gFMH4hQyw/FpfgpVwML6D4XPqtG1UD4rjymQ1wrqAMKinMhfuqwGtUBJid0L9nCUE46o6ps 2rYFVctLK7E2bwwsfoYXSaSHrioJNM16Xyf1A4r5MdgSMJbpGddGj2UQG9ImMOGubz1Nfx6 5Y7KCGfDMLQT+FJxMmKoA== UI-OutboundReport: notjunk:1;M01:P0:YI1IeALrQZM=;qnQeqodD42/1s4fPIHO97+LV7Dc qlhpKMcp86+JJwHWnZa+bUbyX4RQEOmfIRQnTsmH6YmIUMLCTygu/hc9a7ju8pMgoQ8bl7RkX JvkaKTXuSSADU4lV23TkDy64N/sGMey1H7ZsLJVsLwG2hlJN8YHKUAM1lruzbax8110BWaRpB lEmko4eGXn+SmO/+Y1ez6kmXWjCw7VZg7nNoWJ+bKfTaLMY5MQmracdEqHKuHLo4WjGKgLXVd mlZ3cCLC6s3yFv48109/ZshUnoAiJD4tXVNFDSBW8iSY/4GVAa2GfXqdq5ac/i50N27gwaDff bwWTPixQhdQCqqMy0ku2pIBzwdBl5eGZm5r0m9H7uU3bQkswQSIu26WLyHRQOtXNlNJd/0Lkz IoPmCMxmT6EZN5/Fnzti0IzNW/9svBf/o03BFftT1woe/kbr9jlo96UXmrZfY1aJCMrrbKmNf ytgcAejLY0hAXA/TXf88g+/VeBa26Q5P8xkR/q+tv52rHs2zqVNz574yxpJ69n7X/cXH3be5+ T1mWA3BFkkASwcqOGSEn/3jClYZGF+a7Z1R6nRj4/nxBfnu9CXMx+W3soxd5izIWK66zmQpK4 ZTEgkJQaiWT7uOtYWHwwlnkwDujlztz13bSQcCKRZOXiZK8cHPn1iZ1qz0M5UMOxLZyfXpr4Q pQFpzXQqocnle7J0W96RqD1wUm+i+kOb15TVi1JWPA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230207_230009_245394_A6157A47 X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. 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 Capitalise Yavia in comment and add missing whitespace. Signed-off-by: Marcel Ziswiler --- Changes in v2: - New commit with trivial minor updates. arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi index bd7b31cc3760..de5489c2b3e8 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi @@ -87,7 +87,7 @@ &eeprom_display_adapter { status = "okay"; }; -/* EEPROM on Verdin yavia board */ +/* EEPROM on Verdin Yavia board */ &eeprom_carrier_board { status = "okay"; }; @@ -122,7 +122,7 @@ &pcie { status = "okay"; }; -&pcie_phy{ +&pcie_phy { status = "okay"; };