From patchwork Mon Jan 16 05:41:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 43975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1041202wrn; Sun, 15 Jan 2023 22:07:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXuw7WkqAgIHU/dsh2ugpxYXOtIS3WmT5j3SrFaRUP4qUeqgj6NidlIq8hqn5GzWzJCPWJLR X-Received: by 2002:a17:906:eb09:b0:84d:34fa:f1a4 with SMTP id mb9-20020a170906eb0900b0084d34faf1a4mr27571622ejb.60.1673849262583; Sun, 15 Jan 2023 22:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673849262; cv=none; d=google.com; s=arc-20160816; b=bfD/x9dbalGWcMT3rbSIrNumkzSknbFD5PmrFjyRz67+bWmLJjVeNNuPl7r1KO4GBI 9yhhk9SxFbysOE336jcFaEFOL9RheJrHscf8PAJ7+HECSWBt3MZmutfxRtmac98ceuKK jLD+wk1fa+hM+LFBwm/4LsNkYvUdW/hrrQ4fxYZMHn6q4NXNbcm4ZZtWrAJLzmbg14i+ GjlfZ310RdefcT2my7hgg2+GPukhcaDLJRMwu6sW4G6dwbw1VFfvj48vnyQKZ7gK4//E mGTzKmwfEoh8i8gnOmPkn5RidO7ZtiM4O/y5emeQjf8Iou9TNccdaWr91RwLFbNGkAHn xRgg== 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=O2HVkJLdkGYQj54G9H3tvPRmU4ed1M/CXVl7yySXuX4=; b=kQI8DXMGuTHHtWLJytmyvtPqwS41lSP4QeFPl0qeTN10ZPH+XoTLMvAi9vipoWc3Wr f1PWl3f0hcWXcx+Oy2yzJItBfffNzneUwJ5LgY+Ry7AeZ5Lx67wQCjU2r308uL5BHzYZ hmq4obLN1iI93yX7bittGI/q+9cNkvmNRzW5yvUh7KMxYwrBFTsCazidWEmRGpBfowp6 x1unqQ/U5MMKXRJ6VCW0E1w8Xg/Fkr18Y9XQsoWozXT5/rzg27l4yiTAvINT+sfYTnkZ eT5/T1GodjskeVd6aIgqIs2u1bnqCS6TrnTNlK+hLtjTl24Ujl82ExoomUi1D1eH84EY QZBw== 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 cs15-20020a170906dc8f00b0086d67a10589si4479096ejc.848.2023.01.15.22.07.18; Sun, 15 Jan 2023 22:07:42 -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 S231730AbjAPGGY (ORCPT + 99 others); Mon, 16 Jan 2023 01:06:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231855AbjAPGGD (ORCPT ); Mon, 16 Jan 2023 01:06:03 -0500 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3D2AB441; Sun, 15 Jan 2023 22:06:00 -0800 (PST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 764211A06D4; Mon, 16 Jan 2023 07:05:59 +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 401D01A06BD; Mon, 16 Jan 2023 07:05:59 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id C7DC7183AC0F; Mon, 16 Jan 2023 14:05:57 +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 04/14] arm64: dts: Add i.MX8MM PCIe EP support Date: Mon, 16 Jan 2023 13:41:14 +0800 Message-Id: <1673847684-31893-5-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?1755158164026730964?= X-GMAIL-MSGID: =?utf-8?q?1755158164026730964?= 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 4ee89fdcf59b..8124761f629c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -1293,6 +1293,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>;