From patchwork Mon Jan 16 05:41:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 43976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1041302wrn; Sun, 15 Jan 2023 22:07:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXteyEDWt48RmpzYQqN2gUDQenPpPkJMdc+c+dNRWxIjR3EsoqbiidSyLKyZcgYQqPeQGMio X-Received: by 2002:a17:906:698:b0:861:9b5b:4c3b with SMTP id u24-20020a170906069800b008619b5b4c3bmr11865591ejb.17.1673849277984; Sun, 15 Jan 2023 22:07:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673849277; cv=none; d=google.com; s=arc-20160816; b=GzI+C5aCzkWe6m531sdT7adXKH3WnjAWJfX+y2/46k1M7p6ERTv/O//gHQrf9AOTb1 dv8U1a1GCy0dyQ1LQiBbrL70MCrnqf9FTFHWvYfgMTUFDREpYSU2ZABSB94+r2mEnJBq 2FRZD48H24cgZeLRUlmS/tUxDiPIYDuEswOqjBKpA7AgbY8Tnd5gFst5o2XQFn321+zD 69W/hqVOMv2d668QodNvCvWVEH4jSPiTerCcnxZRfskblSqvlN99VwVoWVUZHNdYAAcw VbFJJjT/AwziEEtc+Elrjo3JF6arWXcJi72hPnWQsN79T167+JOJzoRUvjnb9gKUi3dW ITgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=M7BRmdwCFAy8MX0MjNyKOg9nQ8AxbX2TEMNKDH6vJQ4=; b=m6neQgCYkWMuUp6EK7nm4sPlXKtQ9GzUkiAuOQfgC9C0kvlZxmDnJM22BgzNmtI7mh xViUjx1FMyvDpTByBZbpmKC9mkZkkt3yqwBMbERWyIoL49AnjsrWPawiYJu7wFmF3gVC Am2nb7XI9epjFPvSzZE4yxWjKyO8CQ2XevF5jPLgmcdCeIWBILhRWO5DKczlmb+EbGAh yW0hRH2xJ0vmdiJ2nH/Y7ffKJ6Bh1c2HIYJm8QFQC/ldw9kiPzzrfR+F5bEdJjLagBhe bPeZDX3L7fJRo6ZFw1WRtmMOw1dkbk/WD5I+bfIgn9NcC+2ju8LlCHbILygTnNzYxrRt WS9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq14-20020a1709073f0e00b0086e0234d94csi6372084ejc.19.2023.01.15.22.07.34; Sun, 15 Jan 2023 22:07:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232010AbjAPGGe (ORCPT + 99 others); Mon, 16 Jan 2023 01:06:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231917AbjAPGGG (ORCPT ); Mon, 16 Jan 2023 01:06:06 -0500 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD12455BA; Sun, 15 Jan 2023 22:06:03 -0800 (PST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6D2171A06D5; Mon, 16 Jan 2023 07:06:02 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 356F81A06E3; Mon, 16 Jan 2023 07:06:02 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 6F1F7183ABEF; Mon, 16 Jan 2023 14:06:00 +0800 (+08) From: Richard Zhu To: l.stach@pengutronix.de, bhelgaas@google.com, robh+dt@kernel.org, lorenzo.pieralisi@arm.com, shawnguo@kernel.org, kishon@ti.com, kw@linux.com, frank.li@nxp.com Cc: hongxing.zhu@nxp.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Subject: [PATCH v5 06/14] arm64: dts: Add i.MX8MQ PCIe EP support Date: Mon, 16 Jan 2023 13:41:16 +0800 Message-Id: <1673847684-31893-7-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1673847684-31893-1-git-send-email-hongxing.zhu@nxp.com> References: <1673847684-31893-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755158180721025762?= X-GMAIL-MSGID: =?utf-8?q?1755158180721025762?= Add i.MX8MQ PCIe EP support. Signed-off-by: Richard Zhu --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 7ce99c084e54..90a1f026ea48 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1583,6 +1583,33 @@ pcie1: pcie@33c00000 { status = "disabled"; }; + pcie1_ep: pcie_ep@33c00000 { + compatible = "fsl,imx8mq-pcie-ep"; + reg = <0x33c00000 0x000400000>, + <0x20000000 0x08000000>; + reg-names = "regs", "addr_space"; + num-lanes = <1>; + interrupts = ; + interrupt-names = "dma"; + 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"; + assigned-clocks = <&clk IMX8MQ_CLK_PCIE2_CTRL>, + <&clk IMX8MQ_CLK_PCIE2_PHY>, + <&clk IMX8MQ_CLK_PCIE2_AUX>; + assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_250M>, + <&clk IMX8MQ_SYS2_PLL_100M>, + <&clk IMX8MQ_SYS1_PLL_80M>; + assigned-clock-rates = <250000000>, <100000000>, + <10000000>; + num-ib-windows = <4>; + num-ob-windows = <4>; + status = "disabled"; + }; + gic: interrupt-controller@38800000 { compatible = "arm,gic-v3"; reg = <0x38800000 0x10000>, /* GIC Dist */