From patchwork Fri Aug 4 02:09:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 130935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1544610vqx; Thu, 3 Aug 2023 20:03:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUCvg2sTvXS2gOp9NlpYYFvzcaQdfK46VXQ/DjPxBVkjhdrwK5cEqvxSFAXm1zd0Ylr9Lh X-Received: by 2002:aa7:8e4a:0:b0:687:7af2:bf88 with SMTP id d10-20020aa78e4a000000b006877af2bf88mr6414402pfr.0.1691118200702; Thu, 03 Aug 2023 20:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691118200; cv=none; d=google.com; s=arc-20160816; b=NDJBktpn014sTOSVdrihQYWBJHMEc2hg/58RCoD83Pcw+9dwZSmGGDh6WbMTivRk3x LFV60/i8SA4ZO5DipmtzqHE4JAbnZ8jk7AX4w//jTfPKqnX75QHJKB1NRn+Y4SoCHcxz vfQIEY98EVuVv2vDNm74Rat8kc7/1OWRNZomW4a9MgGZO0Hupa9KLkutgksTheoQql3a BA0LYZ3D4VWKBa1kJceBXNXNuAjKFrRSP+9OVjbnL9wKL10S3CbIqNTezyH48sGGK3qA 3ezWSDdVPVhtZSAAAnWCYRoqmkU2/BuATM9WKef0BpfYD8qsl7uhZ9iAo8FI2uC3MZ34 n9TA== 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=6ICIb26tiEgFvvQJpNaZQi/rLKKJXhjYX5Szfr1+IT4=; fh=cRb0aB90SbQyVFNPpVcxERgDOlz7nc5zFh0bRYzMTlo=; b=hlP8rwJFc9V1Kf/6Vy1qcd8/H8gHaSaEGUSH6M9jTZYMWgxba0lV9JXxZLD/3+g6T0 Yl4SW4XJjf2DqF0Gv3sti/0bsx4l+NWCgL3pcrQm0NaH9LvsW5js8ys69/El5XCU4+Ze o0aTS2hQhLwogHz0wuzaktPeeBkT3qkg/msKrxiPhuyJOZQboxc4CTMDdk0fuUiAFyi4 rkw/rbUbNnsGFOceTjsWHcbv2rzB9+qVWy3ws25FVjamxxMhg0P0V9+Toq68rT+qJSos xD/thos9ufSRTt5SzXzNDsJ/2/3CuFqhJzl/i+LuDuAOiWgfrKKpRocNv3+PFhj4A7DB he4Q== 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 cq8-20020a056a00330800b00687346d94c4si917036pfb.334.2023.08.03.20.02.56; Thu, 03 Aug 2023 20:03:20 -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 S233920AbjHDCoR (ORCPT + 99 others); Thu, 3 Aug 2023 22:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233716AbjHDCoG (ORCPT ); Thu, 3 Aug 2023 22:44:06 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CAF419A7; Thu, 3 Aug 2023 19:44:05 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DB2371A13C7; Fri, 4 Aug 2023 04:44:03 +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 A10751A13C5; Fri, 4 Aug 2023 04:44:03 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 07D1C181D0E5; Fri, 4 Aug 2023 10:44:01 +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 4/9] arm: dts: nxp: Add i.MX6QDL and i.MX6QP PCIe EP supports Date: Fri, 4 Aug 2023 10:09:30 +0800 Message-Id: <1691114975-4750-5-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: 1773265958120114974 X-GMAIL-MSGID: 1773265958120114974 Add i.MX6QDL and i.MX6QP PCIe EP supports. Signed-off-by: Richard Zhu --- arch/arm/boot/dts/nxp/imx/imx6qdl.dtsi | 14 ++++++++++++++ arch/arm/boot/dts/nxp/imx/imx6qp.dtsi | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl.dtsi index bda182edc589..be02f7882c68 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl.dtsi @@ -289,6 +289,20 @@ pcie: pcie@1ffc000 { status = "disabled"; }; + pcie_ep: pcie-ep@1ffc000 { + compatible = "fsl,imx6q-pcie-ep"; + reg = <0x01ffc000 0x04000>, <0x01000000 0xf00000>; + reg-names = "dbi", "addr_space"; + num-lanes = <1>; + clocks = <&clks IMX6QDL_CLK_PCIE_AXI>, + <&clks IMX6QDL_CLK_LVDS1_GATE>, + <&clks IMX6QDL_CLK_PCIE_REF_125M>; + clock-names = "pcie", "pcie_bus", "pcie_phy"; + num-ib-windows = <4>; + num-ob-windows = <4>; + status = "disabled"; + }; + aips1: bus@2000000 { /* AIPS1 */ compatible = "fsl,aips-bus", "simple-bus"; #address-cells = <1>; diff --git a/arch/arm/boot/dts/nxp/imx/imx6qp.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qp.dtsi index fc164991d2ae..4ca53a4c254c 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qp.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qp.dtsi @@ -118,3 +118,7 @@ &mmdc0 { &pcie { compatible = "fsl,imx6qp-pcie"; }; + +&pcie_ep { + compatible = "fsl,imx6qp-pcie-ep"; +};