Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1347268rwd; Thu, 18 May 2023 10:50:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49RyRnUjrHFfhvveTz/0vu0vNHUZG25RjNkvWC2O9nVNyaKaNUrdyt1gvuMarZ9sU6eTE+ X-Received: by 2002:a17:90a:9a95:b0:250:78d0:f78c with SMTP id e21-20020a17090a9a9500b0025078d0f78cmr3559563pjp.9.1684432211974; Thu, 18 May 2023 10:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684432211; cv=none; d=google.com; s=arc-20160816; b=MDgR+J1zY/CuRc7JZgWtzWatsM9qB1OQGIof386+Zxl9p/EDSEgCsUohS3cx+IBxuI 80ph5x5SpmNaUNWKh+9gLy/mwABlwFuJVFC69WGIpvrY/k9SU+LCkF5C5rjpz+9rLlrm xyFSfC9jZu6LlIlFH6go0uph/1qWls/mrGctRtVdc3YZTYN+x0N8PVYYtYqMDNNjGOB6 dTzzopJiK8SPJpdFdRxWpTVUGDggQfuKQoWovbzzOQgn9dOoLr1FN26QKXv/yvKlYVe7 N/9/NoeTc3dS0lIcKMb6RT81nKvBgLk67TaWgkadyGfk99LKnmSWhO6vKFzaG3hskgEH t21g== 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:dkim-signature; bh=sZwzcDmB4dM8lnRWzHG8du7JOb4uMq2GEXm9srIgyA0=; b=hAjsnHpfOhBDh4zsmzjUKCFoqgePfKbevK71MJm2OzXrpUMo+svRF53X5C7joCCf59 /3yaFrYqSoNnMvKd0lQbOhLXXUqokmPD6Hrd1LYWlmlmHwbxJyiJF8g7eqyT5M2xt3OS Q7Ckk9/wSNU0Q8VSBC13MmYrFS6eq6DqmPzzkoPJkWlBMJl9u6dir4AouKyxMHD7MRsV iRM+J3BtBhocuc2nC7rgIehNOR8415aUd7A+VhcGIms0Z6JG/KQdnYXl8eBHEt48bX1G QUohR3DHBorJo9YNv+fngsx0odijU+qEExOqkUPlszzFY3nSxPcAR9guG8KweTtnsyzj GQWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LO9d+2K4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a637f52000000b00524f00fee68si581591pgn.372.2023.05.18.10.49.59; Thu, 18 May 2023 10:50:11 -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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LO9d+2K4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbjERRss (ORCPT + 99 others); Thu, 18 May 2023 13:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbjERRsR (ORCPT ); Thu, 18 May 2023 13:48:17 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF16E10EA; Thu, 18 May 2023 10:48:12 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34IHm6R4022672; Thu, 18 May 2023 17:48:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=qcppdkim1; bh=sZwzcDmB4dM8lnRWzHG8du7JOb4uMq2GEXm9srIgyA0=; b=LO9d+2K4dcZXlehOaB5z4bWxh71kuCTurGVTwNeaT9ts78iXs767vjvDcLIL7tVWeJor vgqI8yY0UmZfyKFKT++S167XvMsugA1WrebcplsXHpik1Um+yO6M99btG4lA2DeVTQ6E w8VZ5Dh5UQF7TUDIxsVH7c6V8P1gsk6UM/cqcidYs/aNA8PxaifxwWBH8GQu69mbTnyx 14gHcpG1O49wZa40loL4pXcRi+6geMmGOU9wNCEU6t+g1+VQyIqGf6BjTZVdfqORS48i UXFrPUkr+IqiS//mZuIVXhPnvyNV1lv317fxq14gf3Wd7rcC9T8JwCMaeyfLkk9xpZDf bw== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qn73ut8p0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 May 2023 17:48:06 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 34IHm23M012137; Thu, 18 May 2023 17:48:02 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3qj3mkakxs-1; Thu, 18 May 2023 17:48:02 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34IHm2IN012304; Thu, 18 May 2023 17:48:02 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-rohiagar-hyd.qualcomm.com [10.213.106.138]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 34IHm2Y3012208; Thu, 18 May 2023 17:48:02 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3970568) id B6DF95EC2; Thu, 18 May 2023 23:18:01 +0530 (+0530) From: Rohit Agarwal To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org, bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rohit Agarwal Subject: [PATCH v6 3/5] ARM: dts: qcom: sdx65: Add support for PCIe EP Date: Thu, 18 May 2023 23:17:51 +0530 Message-Id: <1684432073-28490-4-git-send-email-quic_rohiagar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1684432073-28490-1-git-send-email-quic_rohiagar@quicinc.com> References: <1684432073-28490-1-git-send-email-quic_rohiagar@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 4RRoc92pbHWThc4W-7drmBtbxIkC6Uv0 X-Proofpoint-GUID: 4RRoc92pbHWThc4W-7drmBtbxIkC6Uv0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_13,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=999 malwarescore=0 impostorscore=0 bulkscore=0 mlxscore=0 clxscore=1015 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305180144 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add support for PCIe Endpoint controller on the Qualcomm SDX65 platform. Signed-off-by: Rohit Agarwal Reviewed-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-sdx65.dtsi | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx65.dtsi b/arch/arm/boot/dts/qcom-sdx65.dtsi index 2fe61c2..1a35830 100644 --- a/arch/arm/boot/dts/qcom-sdx65.dtsi +++ b/arch/arm/boot/dts/qcom-sdx65.dtsi @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -295,6 +296,56 @@ status = "disabled"; }; + pcie_ep: pcie-ep@1c00000 { + compatible = "qcom,sdx65-pcie-ep", "qcom,sdx55-pcie-ep"; + reg = <0x01c00000 0x3000>, + <0x40000000 0xf1d>, + <0x40000f20 0xa8>, + <0x40001000 0x1000>, + <0x40200000 0x100000>, + <0x01c03000 0x3000>; + reg-names = "parf", + "dbi", + "elbi", + "atu", + "addr_space", + "mmio"; + + qcom,perst-regs = <&tcsr 0xb258 0xb270>; + + clocks = <&gcc GCC_PCIE_AUX_CLK>, + <&gcc GCC_PCIE_CFG_AHB_CLK>, + <&gcc GCC_PCIE_MSTR_AXI_CLK>, + <&gcc GCC_PCIE_SLV_AXI_CLK>, + <&gcc GCC_PCIE_SLV_Q2A_AXI_CLK>, + <&gcc GCC_PCIE_SLEEP_CLK>, + <&gcc GCC_PCIE_0_CLKREF_EN>; + clock-names = "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "sleep", + "ref"; + + interrupts = , + ; + interrupt-names = "global", "doorbell"; + + resets = <&gcc GCC_PCIE_BCR>; + reset-names = "core"; + + power-domains = <&gcc PCIE_GDSC>; + + phys = <&pcie_phy>; + phy-names = "pcie-phy"; + + max-link-speed = <3>; + num-lanes = <2>; + + status = "disabled"; + }; + pcie_phy: phy@1c06000 { compatible = "qcom,sdx65-qmp-gen4x2-pcie-phy"; reg = <0x01c06000 0x2000>; @@ -332,6 +383,11 @@ #hwlock-cells = <1>; }; + tcsr: syscon@1fcb000 { + compatible = "qcom,sdx65-tcsr", "syscon"; + reg = <0x01fc0000 0x1000>; + }; + ipa: ipa@3f40000 { compatible = "qcom,sdx65-ipa"; -- 2.7.4