From patchwork Tue Aug 8 05:34:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 132862 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2379448vqr; Tue, 8 Aug 2023 13:33:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2EdXibJ2vYugeNPrGTCsmY+DuFZm5qX3L0RLZyBsS6RrsX9btyWGFuAi4f9I+j8vSPFFe X-Received: by 2002:aca:1706:0:b0:3a7:4b9a:43c2 with SMTP id j6-20020aca1706000000b003a74b9a43c2mr891393oii.13.1691526787327; Tue, 08 Aug 2023 13:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691526787; cv=none; d=google.com; s=arc-20160816; b=H98rP/2Sf9tMDpC3mI1p4mOBTMmckjSYw1aX7+7u/QECJmdkZ17vQk94JuCCmcebaw lhUwj1HHbTZWmdPVn5a/DWVN/jvg7o3Ab8rb3Ao3iYbCQHTOcjGf327bpHiv1Dw0BaTC dodYnXq3v00g3K3N0qGgXUU2xRH3WFwOXLjVp9NY4rayt3kNi0NH9ySZBHx1HKpr9alI VTKoK+5l/GP6owCwhpG2meAyFfHMggpqyAMBRY9IMW+3XJIdWLL/vjvhPpSgQdxB06L6 U989jfNp3XjZO9leKZwtM5mye42FxAuUfd47kSZiAxKWp5bLrkKUoI0cSBMf0DVf56oR lGGg== 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=YWVqPpp0aU3dllWpT+z4BtmzT0Ga8CEzwYRVB8ATPs0RTAQ4JszW25KFDjwHDF/USl lYFbgEap0Mur9Z5gv7Io/JpcEOG7Ogo5QAahd/l+xT4vVUhQBwsfztEQkTGMNRXhRhQw MB8nmGBIgkJBOrAfN2ywJU6iVtlrYvggfoaxeVlvBflHrnkny+QKxC94SOkfsfDWka5w pVZrAuFZ70mNs+ErcWNKnba0TOaws4/XqPgymy1tFi1J6sU+fnxCKL2BzGrXQYJlDyjw Y2KTsMQ328mur7OXyygWNQV/MwgXPMz5+JG6YhF/A4/iTgtVMfiJbOTKk0OUcRbuz0FR +WsQ== 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 s7-20020a17090aad8700b0025bf45ac365si11024913pjq.82.2023.08.08.13.32.45; Tue, 08 Aug 2023 13:33:07 -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 S236596AbjHHTss (ORCPT + 99 others); Tue, 8 Aug 2023 15:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234803AbjHHTsf (ORCPT ); Tue, 8 Aug 2023 15:48:35 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E8724DEB7; Tue, 8 Aug 2023 09:53:06 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id BC76D1A11CE; Tue, 8 Aug 2023 08:08:59 +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 825CA1A11C8; Tue, 8 Aug 2023 08:08:59 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id D35B51800319; Tue, 8 Aug 2023 14:08:57 +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 v3 5/9] arm: dts: nxp: Add i.MX6SX PCIe EP support Date: Tue, 8 Aug 2023 13:34:14 +0800 Message-Id: <1691472858-9383-6-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1691472858-9383-1-git-send-email-hongxing.zhu@nxp.com> References: <1691472858-9383-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,RCVD_IN_MSPIKE_H2,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: INBOX X-GMAIL-THRID: 1773694392748264695 X-GMAIL-MSGID: 1773694392748264695 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"; + }; }; };