From patchwork Tue Feb 7 04:18:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 53655 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2647238wrn; Mon, 6 Feb 2023 20:46:11 -0800 (PST) X-Google-Smtp-Source: AK7set/Uk4bndGlBDNjew4/6XhGBA16/sXLQ0lRmGE3tNi2GiVpryeEbX7MRutp78K7v72iGxTwC X-Received: by 2002:a17:902:e1d4:b0:199:109e:832 with SMTP id t20-20020a170902e1d400b00199109e0832mr1193992pla.37.1675745171216; Mon, 06 Feb 2023 20:46:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675745171; cv=none; d=google.com; s=arc-20160816; b=0qhJQxt94mYZLzTNxCWQoOwyTSxbCPKu0KYb4ynX4MIMPEpclA4TtNGAN6WknSkdwU rLMy9Wr/ndBeQWXyOBlIm/FgACnZuPRY+N7Wz1yiYyvd7hYRyEHE2GJWxuNLQdH7e6Wo rcN6poU8guM8GiPZP0K8e3t3uP9un6S+SOiFujYocFjyEzcVEDsNLihDnRwhxBlMRgAP UD9f5p6vw+ZrMuKcgQrDq7KPuiKILHr3yuaxGYQpapQimrJyr8zBYP+AA9b39l1WVfOc 1/TP4nw3JpazukeBqc8qzVmoYEu2UXOZRpLql+d8A+BBBLBhVXn9sxx0bzxhz08XNtXz ko6A== 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=yZTA4s1giQ6Rqu7IflMSN4GslCqiMZ3iZc6kXGG2AYc=; b=Dym6Ya2bMW/h08hYLb0JIn3BqzjF98ELImjSgvmESJiTeFw1xb+/UMxwaVkv/DOCvs qNTS43CpxdzmwaBunaiXeWM+3T46Euz2xT41E/eosI6kY0ym89lh4wBvIZaLcBfwi2M4 CDEGPEWckrx+DeVG+jUbmcCOC5VpXAhzp3ohneVn8oJpH2djPZJ+6Iw3kgteMSpzzolG QdimSpGqmEIhCnMoMryh8iFkMZu2M6GYdVPEurcynJl+oH7+V5FgWdKOsb2jxLpY4Wp7 jqGfYdFG1vA3en+YCJGUzSUQAH/6U8ycupCex5HKDxLqTUiMHDzR9keQkWz4onyLX2oV yFiw== 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 l2-20020a170903244200b0019608f60abesi14028827pls.240.2023.02.06.20.45.58; Mon, 06 Feb 2023 20:46:11 -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 S230020AbjBGEo2 (ORCPT + 99 others); Mon, 6 Feb 2023 23:44:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjBGEoM (ORCPT ); Mon, 6 Feb 2023 23:44:12 -0500 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D62527D74; Mon, 6 Feb 2023 20:44:11 -0800 (PST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4AAD82012B8; Tue, 7 Feb 2023 05:44:10 +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 13A39200B7C; Tue, 7 Feb 2023 05:44:10 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 2ED6E183ABF9; Tue, 7 Feb 2023 12:44:08 +0800 (+08) From: Richard Zhu To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, l.stach@pengutronix.de, shawnguo@kernel.org, lorenzo.pieralisi@arm.com, peng.fan@nxp.com, marex@denx.de, marcel.ziswiler@toradex.com, tharvey@gateworks.com, frank.li@nxp.com Cc: hongxing.zhu@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Subject: [PATCH v10 4/4] arm64: dts: Add i.MX8MP PCIe EP support Date: Tue, 7 Feb 2023 12:18:28 +0800 Message-Id: <1675743508-24702-5-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1675743508-24702-1-git-send-email-hongxing.zhu@nxp.com> References: <1675743508-24702-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?1757146168433105439?= X-GMAIL-MSGID: =?utf-8?q?1757146168433105439?= 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 a19224fe1a6a..2f84b8b0118e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1309,6 +1309,32 @@ pcie: pcie@33800000 { status = "disabled"; }; + pcie_ep: pcie-ep@33800000 { + compatible = "fsl,imx8mp-pcie-ep"; + reg = <0x33800000 0x000400000>, <0x18000000 0x08000000>; + reg-names = "dbi", "addr_space"; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_PCIE_ROOT>; + clock-names = "pcie", "pcie_bus", "pcie_aux"; + 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>;