From patchwork Mon Jan 16 05:41:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 43974 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1041180wrn; Sun, 15 Jan 2023 22:07:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXvJa/zUOcwRg23z+5QBlg3m8Q0h/x565q1kYroRTG9YTqnlHQWuERYNjXPh1qhT81yIFTy7 X-Received: by 2002:a05:6402:685:b0:479:ab7d:1dad with SMTP id f5-20020a056402068500b00479ab7d1dadmr95815519edy.32.1673849259716; Sun, 15 Jan 2023 22:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673849259; cv=none; d=google.com; s=arc-20160816; b=zRzX1kiEE4nmE7F+uDkWBg1bRrr1vBIO7B4UtLFWC0q0UsQDLm3THI2bOaRCSWU2pK AnZiPZqqt62UUdC6uSpMnpDnr5uoD8k/YiguwnImfYDQClu5IM6wS+qA2Bm1StWRsOq3 e5i2kKkC/DiYi4HuxES234lIXCK9yoFxPzxm9ys8/FC6tbjoT/xUQKiNv86vcA1W3mVM Cthdj8K6Xkm6Ry+XiTQoiJ/6N/VBF792kJZPWAv9ZK+6w96+pFt42/ljRRcDea9fcc6S IQfXxer9RJp7VQnjYZR/fIamDA+bCfD0IaiW3PJ/z5ifYqhe25ETKmXEc7281YvDm1ay WutQ== 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=OCoGASWlWXDyGb8sFIMIj+j7BBYJh0+i+YxM0daBQGM=; b=H8mAGyDahmMcTjscI85wzBgoKRvrKWQ/b1LDKPd+dIAyuYGfo/d29djkFsnbrmQzcb +mHYBvd8v7ddkj1nMLBth17uK2lL2sA3OeXmza8mzsHRQC70FO/dxwUGBApxuvsbIgo6 LDoseIf7JS7GupAkeB+9ltBUqAhGmbz/+QdNZpSw0WO/hEn5JvKrQiWML+YH7IPSgFx/ iFHGQ8ExxE0ErpofNp6uOKDkT6wS2/i6cBfAjH5fNPuI/eB9w0L6IM4TqwaOD7I5sijk Dkcjj/PWUYGmDLlmnGIfByd00KQwbl8oJCxqzemzyrvz1c7LxQEByKyFxxN9xUKQKrG2 7PRg== 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 ey7-20020a0564022a0700b0049216736fd2si14325368edb.542.2023.01.15.22.07.15; Sun, 15 Jan 2023 22:07:39 -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 S232027AbjAPGGo (ORCPT + 99 others); Mon, 16 Jan 2023 01:06:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231886AbjAPGGJ (ORCPT ); Mon, 16 Jan 2023 01:06:09 -0500 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BDDCB442; Sun, 15 Jan 2023 22:06:06 -0800 (PST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 01801202076; Mon, 16 Jan 2023 07:06:05 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C7814200E53; Mon, 16 Jan 2023 07:06:04 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 0C7CF183ABF3; Mon, 16 Jan 2023 14:06:02 +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 08/14] arm64: dts: Add i.MX8MP PCIe EP support Date: Mon, 16 Jan 2023 13:41:18 +0800 Message-Id: <1673847684-31893-9-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?1755158161545836670?= X-GMAIL-MSGID: =?utf-8?q?1755158161545836670?= Add i.MX8MP PCIe EP support. Signed-off-by: Richard Zhu --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 4ef36ebc6bfe..9ad9edd18e09 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1217,6 +1217,32 @@ pcie: pcie@33800000 { status = "disabled"; }; + pcie_ep: pcie_ep@33800000 { + compatible = "fsl,imx8mp-pcie-ep"; + reg = <0x33800000 0x000400000>, <0x18000000 0x08000000>; + reg-names = "regs", "addr_space"; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_PCIE_ROOT>, + <&clk IMX8MP_CLK_HSIO_AXI>; + clock-names = "pcie", "pcie_aux", "pcie_bus"; + assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>; + assigned-clock-rates = <10000000>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>; + num-lanes = <1>; + interrupts = ; /* eDMA */ + interrupt-names = "dma"; + fsl,max-link-speed = <3>; + power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_PCIE>; + resets = <&src IMX8MP_RESET_PCIE_CTRL_APPS_EN>, + <&src IMX8MP_RESET_PCIE_CTRL_APPS_TURNOFF>; + reset-names = "apps", "turnoff"; + phys = <&pcie_phy>; + phy-names = "pcie-phy"; + num-ib-windows = <4>; + num-ob-windows = <4>; + status = "disabled"; + }; + gpu3d: gpu@38000000 { compatible = "vivante,gc"; reg = <0x38000000 0x8000>;