From patchwork Mon Oct 24 08:06:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 8237 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp320219wru; Mon, 24 Oct 2022 01:29:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fJ+2chTG4eSu+jhGkeCaUhDLB0ejVpJYnMysZsy/oG1DCMOj8g9CtDrD27WTWdHT22zxw X-Received: by 2002:a63:5946:0:b0:461:e1b9:c5a5 with SMTP id j6-20020a635946000000b00461e1b9c5a5mr27589342pgm.56.1666600168246; Mon, 24 Oct 2022 01:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666600168; cv=none; d=google.com; s=arc-20160816; b=LOXj549eKF5gr19S2/CG9eEVysMkvlW8EjLB1T+MqvLXgZWSxXEdkrWRHZvjk125V8 RVrEoJuK8Y12u65PdlFs/NI6J0dXRHAs3yqzKOUWO7t74oHKGJCnbauTASjWmpIo9Ghw ZUTWelstbViGCb/SbRj7nIQVsGrLYpnWA8JTkmOFzkEhwFCbzgp6cVGil6qOhddOaPNy 4Nb8RkoHmB4oilklpkAPypChUiajbF4oYNVPSQIrKMuiiT/3ZvlUyUHJpvTlWui4Hx0U BbQtUJmFKlBgVRnUkjwCj4v5FehQa4nT2hAE70emg2XL4Sr6OoYqULJViFIc3nfljQ0z /9Dw== 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=Wf77qsEKpB9Rr94aGe9tk03iX8UJqrDgBol4kPB2XZ0=; b=WwaYUbSkNneEVs4E0Mo3GkZ5n54qBo2cR+cjvQS+1nwB+tyQrIfdIbi1+nrR7kCFo5 yWq1/8b5fiGCpTAPnxlXUDRm/yjR4ebopv65+VSavdDVUAMeZMR25opBYAbppbVO8u+i JjU4RfNzdYzDwmIWIrFtia3NtDVFElHrIg4hOUM8gFLHr/V0qXS8Lo3BZLz4G1Z1H6C+ nKOYUdcfC5thFhUvm7p1EkGOwB8WOfjPPivWCsIPzi3Kvq9atBTVGcwHBNxSrkGE0ZR/ ZCPSiPitNfSXGU+xJefjLaoFjHwpXbRClF9Zg+pu3Jm2cltWrnoCvHkw43raNchUccUd b4aw== 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 j22-20020a056a00235600b0053a339cafb3si37847806pfj.53.2022.10.24.01.29.16; Mon, 24 Oct 2022 01:29:28 -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 S230367AbiJXI2o (ORCPT + 99 others); Mon, 24 Oct 2022 04:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbiJXI2D (ORCPT ); Mon, 24 Oct 2022 04:28:03 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 542CB4E613; Mon, 24 Oct 2022 01:27:52 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 148E4220EAE; Mon, 24 Oct 2022 10:27:16 +0200 (CEST) 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 D89AA220E59; Mon, 24 Oct 2022 10:27:15 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 704241834868; Mon, 24 Oct 2022 16:27:14 +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 08/14] arm64: dts: Add i.MX8MP PCIe EP support Date: Mon, 24 Oct 2022 16:06:37 +0800 Message-Id: <1666598803-1912-9-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?1747556938171622521?= X-GMAIL-MSGID: =?utf-8?q?1747556938171622521?= Add i.MX8MP PCIe EP support. Signed-off-by: Richard Zhu --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index bb916a0948a8..53d376e14b88 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1192,6 +1192,25 @@ 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"; + 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>;