From patchwork Tue Feb 7 04:18:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 53653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2647136wrn; Mon, 6 Feb 2023 20:45:53 -0800 (PST) X-Google-Smtp-Source: AK7set+JXwdVMDB9tQtoCKB11UrsyGRmGYO/hh6gZWl9FW/9x7PE4qXFfhYmQkVcP5O8Az2bqi1q X-Received: by 2002:a05:6a20:4403:b0:b8:9f05:5216 with SMTP id ce3-20020a056a20440300b000b89f055216mr2664659pzb.57.1675745152854; Mon, 06 Feb 2023 20:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675745152; cv=none; d=google.com; s=arc-20160816; b=Ztf1r0JwVn0k/oofsEW65XKCG4GRQx07w2kuoiWYeLXFkmQnSFrjbohthH/mXneIUu y5sq8aXRyqsRUi133YSb0M1C0j2eitwNfx/HurjahisVYZBJTXoSwLyD7/Z8OuhNFkQ4 Q71R3UDBFfRYvhePnwKAOP2XBrxFF/NZvygChNdf7Rnqn3rr8b4i9gXa0PGU/AO40qVW AIJfxX1BATvNuwSXTYVuzBXXN5NYy+IP8aJpv2wqp3Z+p/UTlB3Ms9MTPuxyjUahnXuu mcHRqNG96xtfXSZdF1bn5lr9VsUtfDyjPlkekoawL8gHNrSWMYZfXOui67QCPLHYeZL2 Kofg== 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=aWUR9tiIWLhM0hfumcvn2GOAHCKK+5Agt3v8H0EHu/c=; b=tj0p6VbS1fCmpfkJeGghyvYTlL/JTb6JTcqg+RVl22Bgf6+aykniUp7jXQ9gtw5fap kxECslFjzB3Na5fHEwtZHP+pV0/5qpGzqGLMMmO7JlwvxJg0RCSid5egvpcPdapoA70M yYDFqw4Mpge63rEmHikQ/DlgJNSM2I/kYCM5JmiCjV34e0KvnEPYzNVxARGUBcllOZaG k8hO/6snuUFoSAlkP/owsy7+fFCwUZGqON/v4EKASpNZwdDT8dPTwDUUKEbpdAe7JmCS VC6wb+WDEt+vA8O7mN9H0izKt59M5VYAbw8352gkngaChniobnDM4CMhO9voBgQfjfnF nhoQ== 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 g25-20020a639f19000000b004d21c99e5c7si13133620pge.28.2023.02.06.20.45.40; Mon, 06 Feb 2023 20:45:52 -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 S229797AbjBGEoR (ORCPT + 99 others); Mon, 6 Feb 2023 23:44:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjBGEoK (ORCPT ); Mon, 6 Feb 2023 23:44:10 -0500 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF50426CF5; Mon, 6 Feb 2023 20:44:08 -0800 (PST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6B2522012BA; Tue, 7 Feb 2023 05:44:07 +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 3465E200B72; Tue, 7 Feb 2023 05:44:07 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 46DD4183ABF3; Tue, 7 Feb 2023 12:44:05 +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 2/4] arm64: dts: Add i.MX8MM PCIe EP support Date: Tue, 7 Feb 2023 12:18:26 +0800 Message-Id: <1675743508-24702-3-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?1757146149377085698?= X-GMAIL-MSGID: =?utf-8?q?1757146149377085698?= Add i.MX8MM PCIe EP support. Signed-off-by: Richard Zhu --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 31f4548f85cf..a9552867e547 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -1315,6 +1315,30 @@ pcie0: pcie@33800000 { status = "disabled"; }; + pcie0_ep: pcie-ep@33800000 { + compatible = "fsl,imx8mm-pcie-ep"; + reg = <0x33800000 0x400000>, + <0x18000000 0x8000000>; + reg-names = "dbi", "addr_space"; + num-lanes = <1>; + interrupts = ; + interrupt-names = "dma"; + fsl,max-link-speed = <2>; + clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, + <&clk IMX8MM_CLK_PCIE1_PHY>, + <&clk IMX8MM_CLK_PCIE1_AUX>; + clock-names = "pcie", "pcie_bus", "pcie_aux"; + 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>;