From patchwork Wed Jan 26 13:23:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12725048 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 3AF87C28CF5 for ; Wed, 26 Jan 2022 13:25:15 +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=bCFEFfzRdiy0zC2VuooLErr3NecoQmb5+JsVcGOzNNQ=; b=bAeyzgvXAKEDEI /lEkbJDehenPLA/zoRFT5tI28CzWhsg9nlueiFyCNV3NEX46uS5x4pKPbkiMrq2pk2oGcm3vmThi3 8JzmmiBuCJWysaM8/gCtpeYmkYB+2eJBqTw9crSkcyIovaL9C+eO+FC7ceTC5JDfIMZK/T633aMbK uBG6vCn2HSQNcQMFh8wCYqSQxdfKft5MbkWKLRZyVfVHP2TX5v+gtG2hn0pt3BYElfhuQKUH1if0f niSCN8k7UQAQQ1l1fETKDHMQ4XXEws0syt4bNkCdVaV1vmfNGe8uOjazweQUOpAKZMk7oc0QiWgXz R/R0i5rTsM6ebzo5VnDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCiHD-00BrB5-Ry; Wed, 26 Jan 2022 13:23:56 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCiH8-00Br9t-Qa for linux-arm-kernel@lists.infradead.org; Wed, 26 Jan 2022 13:23:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1643203430; x=1674739430; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=h5X4vEs0apE78xlx6za6Xi8OtpOXl9jPY1J31k+nOz8=; b=Fj5byKLOxF47IsLz4CwPu2SYdBkGopftwQIG/fUmEfyOcnMqZ6A6jrkZ Jk0OP3oIw87aCba4QmrfgonNhb8QZGnuAnaq9klnzN9OklpspLkQ9QF95 cisz64wgLPHQx+jk69B91gLW5EMElUw5xUypIyfJB601r9h4m6gw2WK5S jXbXU67Ef58ekeN18AyTDZDhJsLNF3ym+tLYypGSN2obKgA42iI5q7gf3 4ZtRnPJ/2zIY0Ii2GdmRHuilvL2DN7XUWQcL2yBfsGbMu1o29iRiJB23A pXEImdHQPx5O3AhAYkIHBDpUlh3LvXMqf/IVTIJQGK3LNtZLk1Y5KPslS g==; X-IronPort-AV: E=Sophos;i="5.88,318,1635199200"; d="scan'208";a="21724106" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 26 Jan 2022 14:23:48 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 26 Jan 2022 14:23:48 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 26 Jan 2022 14:23:48 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1643203428; x=1674739428; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=h5X4vEs0apE78xlx6za6Xi8OtpOXl9jPY1J31k+nOz8=; b=eREyfF60yxSBjpcBIEgVY4AjkhT8eNlRm5oEuae5p+ZVV3M7cLAHTd5v fMGvt5xtfzPjFDy6tOyYRL1izt+hqsMBWu35MAK5DKihSW5Mg8m6SQGd7 7UVQiMLWEBpKeSYEzr85Rr/j3GXg3Ancr9aVsYh6/ZPpGE8eEVbO20ukW 2/o6XBFiezw3Cy4Q+bLevuamYIAnMY80O1MIk0ho7DuL6PTP06QdHATzh W//5EJSrLid+jnSFGSgQCcLHruLgtLp+ZAhYQLCLm/7dxDVuhyH45Q64G Qt7rLjJaNecbvtQMOHdRbGx8DVt9tRmA57jDM3Vus8rLjltfdt64Nfhq4 A==; X-IronPort-AV: E=Sophos;i="5.88,318,1635199200"; d="scan'208";a="21724105" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 26 Jan 2022 14:23:48 +0100 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id A33FC280065; Wed, 26 Jan 2022 14:23:48 +0100 (CET) From: Alexander Stein To: Rob Herring , Shawn Guo , Sascha Hauer Cc: Alexander Stein , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/1] arm64: dts: tqma8mqml: add PCIe support Date: Wed, 26 Jan 2022 14:23:38 +0100 Message-Id: <20220126132339.60683-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_052351_248839_50A940A8 X-CRM114-Status: GOOD ( 14.01 ) 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 Add PCIe support to TQMa8MxML series. Signed-off-by: Alexander Stein --- This goes on top of the series recently applied to pci/dwc [1]: [PATCH v7 0/8] Add the imx8m pcie phy driver and imx8mm pcie support Changes in v2: * rebased to Shawn's current imx/dt64 (as of 2022/01/26) [1] https://patchwork.kernel.org/project/linux-pci/list/?series=589031&state=* .../dts/freescale/imx8mm-tqma8mqml-mba8mx.dts | 19 +++++++++++++++++++ .../boot/dts/freescale/imx8mm-tqma8mqml.dtsi | 5 +++++ arch/arm64/boot/dts/freescale/mba8mx.dtsi | 6 ++++++ 3 files changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts index 7844878788f4..286d2df01cfa 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "imx8mm-tqma8mqml.dtsi" #include "mba8mx.dtsi" @@ -58,6 +59,24 @@ expander2: gpio@27 { }; }; +&pcie_phy { + clocks = <&pcie0_refclk>; + status = "okay"; +}; + +&pcie0 { + reset-gpio = <&expander0 14 GPIO_ACTIVE_LOW>; + clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&clk IMX8MM_CLK_PCIE1_AUX>, + <&pcie0_refclk>; + clock-names = "pcie", "pcie_aux", "pcie_bus"; + assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>, + <&clk IMX8MM_CLK_PCIE1_CTRL>; + assigned-clock-rates = <10000000>, <250000000>; + assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>, + <&clk IMX8MM_SYS_PLL2_250M>; + status = "okay"; +}; + &sai3 { assigned-clocks = <&clk IMX8MM_CLK_SAI3>; assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi index 284e62acc0b4..16ee9b5179e6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi @@ -227,6 +227,11 @@ eeprom0: eeprom@57 { }; }; +&pcie_phy { + fsl,refclk-pad-mode = ; + fsl,clkreq-unsupported; +}; + &usdhc3 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc3>; diff --git a/arch/arm64/boot/dts/freescale/mba8mx.dtsi b/arch/arm64/boot/dts/freescale/mba8mx.dtsi index f27e3c8de916..3ea34b3a55f8 100644 --- a/arch/arm64/boot/dts/freescale/mba8mx.dtsi +++ b/arch/arm64/boot/dts/freescale/mba8mx.dtsi @@ -66,6 +66,12 @@ led2: led2 { }; }; + pcie0_refclk: pcie0-refclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + }; + reg_hub_vbus: regulator-hub-vbus { compatible = "regulator-fixed"; regulator-name = "MBA8MX_HUB_VBUS";