From patchwork Fri Aug 4 02:09:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 130939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:419:b0:139:fa0d:b2d with SMTP id 25csp767739rwd; Thu, 3 Aug 2023 20:21:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlEeIqdxA7x0gS+gP2nRrf1G+/aD0ycF+RTvUuZqkm2iESU+NlRO4LGQl+UdSE2ixP5g/lPj X-Received: by 2002:a17:90a:2841:b0:267:f9a5:139a with SMTP id p1-20020a17090a284100b00267f9a5139amr16868348pjf.0.1691119279104; Thu, 03 Aug 2023 20:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691119279; cv=none; d=google.com; s=arc-20160816; b=isVsFjHn63CD0JE8cQ4ksBnXocapd88Hy7yhRPdOc/xzkT6hOkGSNcQcLkRzik46Wd YizWfH64xVnvxZho6ueWBVxu5HevYmgZIlEWdJ5+SGpU3OFZ+hK5O1U/8m40Aw6lBp+9 DFxAxctEzSRvvOGb4SykW8nagR+6BmaB1133QB4ke8y13WZtHciiWaAznLZynLakNzCQ 87Nlx0ZqxvEw9Sq3Zy5fNebnOadEawQgCHp0LGNhhKiqlBM11bCneA4a0pFH0i0tCcEO vbEDrojBxAy2qVTqKS9OOHQ/2vOF4gvg9zWNJE0LSjoEjHpPQRc1d3DK0o5hzEpSvA8v NdAg== 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=8mhNcA+qCXAkAoQ0PuYv+QVUlruayXMqEP6io11u+2k=; fh=cRb0aB90SbQyVFNPpVcxERgDOlz7nc5zFh0bRYzMTlo=; b=ORXn2xTgRPF5EfUGqpo6+ZrqryCp5A/cu7wkfK6N7fcP/iF+wXUtYAyiKzY6NfJhTJ oAMFlhjcgdVG5VckNcgM90F+O9Ln/X/OAlKo5C1e2Moj05Hcx+Avzlmt/Nh9mjAJR6UF c+Op6LzyyngfRr0BMxzZ2tQT6bYV6WP+a3vz+jiqY5QftKXhiOoIZh4heueXilMOPmoc NxAxC+BjV/Z5H28nSENRRX2YVEygEosiGsxdCnYfx3D+UeqVRIosVacCQaeWkDZxjGz8 HCKibukRKyK9P22YQPRqDqMizQiCVIMXH9vbW80DVjF9+aGSh45eMwqqU7+Uc+6GF28C iJ3Q== 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 v5-20020a634645000000b00563eda6a8e6si952193pgk.613.2023.08.03.20.21.04; Thu, 03 Aug 2023 20:21:19 -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 S233879AbjHDCoU (ORCPT + 99 others); Thu, 3 Aug 2023 22:44:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbjHDCoH (ORCPT ); Thu, 3 Aug 2023 22:44:07 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E4C115; Thu, 3 Aug 2023 19:44:06 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 108D41A13D2; 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 CA4CC1A13C5; Fri, 4 Aug 2023 04:44:04 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 26DEE1802200; Fri, 4 Aug 2023 10:44:03 +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 5/9] arm: dts: nxp: Add i.MX6SX PCIe EP support Date: Fri, 4 Aug 2023 10:09:31 +0800 Message-Id: <1691114975-4750-6-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: 1773267089132904872 X-GMAIL-MSGID: 1773267089132904872 Add i.MX6SX PCIe EP support. Signed-off-by: Richard Zhu --- arch/arm/boot/dts/nxp/imx/imx6sx.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi index f6b35923ad83..13411a843e07 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi @@ -1471,5 +1471,22 @@ pcie: pcie@8ffc000 { power-domain-names = "pcie", "pcie_phy"; status = "disabled"; }; + + pcie_ep: pcie-ep@8ffc000 { + compatible = "fsl,imx6sx-pcie-ep"; + reg = <0x08ffc000 0x04000>, <0x08000000 0xf00000>; + reg-names = "dbi", "addr_space"; + num-lanes = <1>; + clocks = <&clks IMX6SX_CLK_PCIE_AXI>, + <&clks IMX6SX_CLK_LVDS1_OUT>, + <&clks IMX6SX_CLK_PCIE_REF_125M>, + <&clks IMX6SX_CLK_DISPLAY_AXI>; + clock-names = "pcie", "pcie_bus", "pcie_phy", "pcie_inbound_axi"; + power-domains = <&pd_disp>, <&pd_pci>; + power-domain-names = "pcie", "pcie_phy"; + num-ib-windows = <4>; + num-ob-windows = <4>; + status = "disabled"; + }; }; };