From patchwork Fri Aug 4 02:09:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 130944 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:419:b0:139:fa0d:b2d with SMTP id 25csp770932rwd; Thu, 3 Aug 2023 20:30:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPmmeLBCxHKNpZhBIbbkM4q8xobpNFxYH2NWWaDIl/aOs+gIvndMrUydQQ/rffbpNosxZt X-Received: by 2002:a5d:524b:0:b0:317:3a23:4855 with SMTP id k11-20020a5d524b000000b003173a234855mr13435243wrc.2.1691119850752; Thu, 03 Aug 2023 20:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691119850; cv=none; d=google.com; s=arc-20160816; b=NLwbnBoGLjnL0/M+K2OnYeLT+IjSFT8Eu3h5k85unxq6WzF5JqkEhQUgeOGRbBzseg ZK6owQOVTf7EhjCvXzoTPHNzbBS3gL+QsI/JP4e1Z5SJSgVIWfsGNXthC5ztNiFtM1eE ba/FRRWLdjntJLW3D1S7j4V+wVU1wzbWOs+IHj3qYVz5QhpvUpqSzu/3Ikbv08tQyevO gtzmAgFCeieUaMn1Wm9MDPw6g1RMfISMeKtodeuag42hg1Jb1+zyqYN0oLaeELIV8r+F 518F3lJ34oGvnHcBck3PHlWoJCtfx802aUd6yyIMep4+rEph4FAF0arEE5vY8w/6pScZ 2BTw== 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=DJENxjldGDUgVyo0FXHaxSsxLZqzqT1DQN4h+EVoS9E=; fh=cRb0aB90SbQyVFNPpVcxERgDOlz7nc5zFh0bRYzMTlo=; b=ikAn5M3wMa5AqlHKm8yrCQ9Y7fzpF5LXvrIFPLIuGMgNOsSybLvIv2BTuTkc8P/dLd 3avgum1z5/cxDPqLPMoYyReHnI9kjfE0kSJLV77Nm91v6XZIU9x/yKzvtjhCy6TPknu2 dv+TjRqXDQ2PGbUM/ZjXFp+62aArbplDeYrs6cYfs3C4XQm6Dm/lv9d+Nv57KSGdS4cg MkhV1cnZJrOogEZMu47/+ji+jMBIqCMNLNrf8oTtyle4vimr5Zrur8OTCg9iLgKbszI5 oIwnXjhXmN48DxLG7/CFyT3a8DxudjEwSRnAvTymURi+Zi1ZUpMlEVRUDfjD4YcBllf0 jeCQ== 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 bs15-20020a170906d1cf00b009935d9765fasi892221ejb.1013.2023.08.03.20.30.27; Thu, 03 Aug 2023 20:30:50 -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 S233965AbjHDCoX (ORCPT + 99 others); Thu, 3 Aug 2023 22:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233795AbjHDCoI (ORCPT ); Thu, 3 Aug 2023 22:44:08 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304A4173C; Thu, 3 Aug 2023 19:44:07 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C9D761A1E55; Fri, 4 Aug 2023 04:44:05 +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 8FDCC1A13C5; Fri, 4 Aug 2023 04:44:05 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 4EDA21820F59; Fri, 4 Aug 2023 10:44:04 +0800 (+08) From: Richard Zhu To: frank.li@nxp.com, l.stach@pengutronix.de, shawnguo@kernel.org, lpieralisi@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org 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 v2 6/9] arm: dts: nxp: Add i.MX7D PCIe EP support Date: Fri, 4 Aug 2023 10:09:32 +0800 Message-Id: <1691114975-4750-7-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1691114975-4750-1-git-send-email-hongxing.zhu@nxp.com> References: <1691114975-4750-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1773267688735493510 X-GMAIL-MSGID: 1773267688735493510 Add i.MX7D PCIe EP support. Signed-off-by: Richard Zhu --- arch/arm/boot/dts/nxp/imx/imx7d.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx7d.dtsi b/arch/arm/boot/dts/nxp/imx/imx7d.dtsi index 4b94b8afb55d..135684f17a20 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7d.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7d.dtsi @@ -156,6 +156,33 @@ pcie: pcie@33800000 { fsl,imx7d-pcie-phy = <&pcie_phy>; status = "disabled"; }; + + pcie_ep: pcie-ep@33800000 { + compatible = "fsl,imx7d-pcie-ep"; + reg = <0x33800000 0x4000>, + <0x40000000 0x10000000>; + reg-names = "dbi", "addr_space"; + num-lanes = <1>; + clocks = <&clks IMX7D_PCIE_CTRL_ROOT_CLK>, + <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>, + <&clks IMX7D_PCIE_PHY_ROOT_CLK>; + clock-names = "pcie", "pcie_bus", "pcie_phy"; + assigned-clocks = <&clks IMX7D_PCIE_CTRL_ROOT_SRC>, + <&clks IMX7D_PCIE_PHY_ROOT_SRC>; + assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_250M_CLK>, + <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>; + + fsl,max-link-speed = <2>; + power-domains = <&pgc_pcie_phy>; + resets = <&src IMX7_RESET_PCIEPHY>, + <&src IMX7_RESET_PCIE_CTRL_APPS_EN>, + <&src IMX7_RESET_PCIE_CTRL_APPS_TURNOFF>; + reset-names = "pciephy", "apps", "turnoff"; + fsl,imx7d-pcie-phy = <&pcie_phy>; + num-ib-windows = <4>; + num-ob-windows = <4>; + status = "disabled"; + }; }; };