From patchwork Mon Oct 24 08:06:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 8241 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp320291wru; Mon, 24 Oct 2022 01:29:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mAMRpDR7vLI++ga1HDmP46sFpbsdWgUGj3wt/yHGp8b0lKuhiEQyZ9KaM/2hFtbsqT+qx X-Received: by 2002:a65:6ccd:0:b0:439:2033:6ee with SMTP id g13-20020a656ccd000000b00439203306eemr27858649pgw.271.1666600182175; Mon, 24 Oct 2022 01:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666600182; cv=none; d=google.com; s=arc-20160816; b=DcEUpGss+KuRoWZPBjZ+GDk2rr9wErDRJ8W4++Hk8fzxRDfg1B75CmHkFaa6ktSzRo Hq7RRcEm8amu+lx/J8ZvZCwq1rp6w8c/8yBWz2TtpC10rfb+IwYus//aSc2CHvn04GpO 4SOkLoZyxCVXr7PKC3DkTJT4mH7BtGIt6Wd6ujU95EuFK1HNpuPVKU4O9Qdxk1vKgjOW j42xjn1sUdvaOOqUEzio0B0fBzmGgg3avWp2mUYa395ev7Re7UpEg0q9eiMtRFsP0YtV CGTrEm/iMJ7sWgRptCmPJH8xhqo9jvNcs33eS344vJ+Q4jINuH7JIQPfdQdrVUQK/pRU G7sw== 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=NPN2gqMuqThBX7NJwXbn22cjk8rEf/aETqkq0xSjSwg=; b=SGMB5d8mobSjS04oV1DucjoTo3SgtWFsv3noB36D/InRIOqZv0DVkC920Dyr1m/r1t CtPA8wi3e3qJszJy9r86fTF8gPOGSo2f3g0jq/niA3ku1Mak8+debe6ecl31UJY6Xc2r S4TRNkOat8ssJ4TguQmbGyi0d4NcmlDUGXrAbi4jqw6GdS6yRpP5lcrs5kqRvYbJS3IB LlBU82SakyDF2awBM0PoLMZ3r0OGIzAMtznTj7BD6inpqe3ctqeYJ9ekeXGjL/znZQM7 wPT8CrQXuCXMqlXc1HINqYrd0fSVU0YulTZmZVE5sB6hBDb/aptMeoy/Zu6t3Fge81DV fZ3A== 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 f3-20020a631003000000b0046ed62f820bsi9283815pgl.810.2022.10.24.01.29.29; Mon, 24 Oct 2022 01:29:42 -0700 (PDT) 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 S230447AbiJXI2g (ORCPT + 99 others); Mon, 24 Oct 2022 04:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbiJXI17 (ORCPT ); Mon, 24 Oct 2022 04:27:59 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA2DA42D51; Mon, 24 Oct 2022 01:27:48 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0A0331B8F1F; Mon, 24 Oct 2022 10:27:11 +0200 (CEST) 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 C67831B8F37; Mon, 24 Oct 2022 10:27:10 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 080741820F58; Mon, 24 Oct 2022 16:27:08 +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: [RESEND v4 04/14] arm64: dts: Add i.MX8MM PCIe EP support Date: Mon, 24 Oct 2022 16:06:33 +0800 Message-Id: <1666598803-1912-5-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1666598803-1912-1-git-send-email-hongxing.zhu@nxp.com> References: <1666598803-1912-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?1747556952553777107?= X-GMAIL-MSGID: =?utf-8?q?1747556952553777107?= Add i.MX8MM PCIe EP support. Signed-off-by: Richard Zhu --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index afb90f59c83c..eca7a42ac52a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -1291,6 +1291,26 @@ pcie0: pcie@33800000 { status = "disabled"; }; + pcie0_ep: pcie_ep@33800000 { + compatible = "fsl,imx8mm-pcie-ep"; + reg = <0x33800000 0x400000>, + <0x18000000 0x8000000>; + 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_PCIE_CTRL_APPS_EN>, + <&src IMX8MQ_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"; + }; + gpu_3d: gpu@38000000 { compatible = "vivante,gc"; reg = <0x38000000 0x8000>;