Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp718875rdg; Wed, 11 Oct 2023 03:47:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGixVmyAbSxqD7vfqt9mktziFy+wrXZ3COHF6P7SEp/8++wqrMX136VANU+5uNePflowG4n X-Received: by 2002:a05:6870:9f84:b0:1e5:6286:e50e with SMTP id xm4-20020a0568709f8400b001e56286e50emr18031119oab.17.1697021219869; Wed, 11 Oct 2023 03:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697021219; cv=none; d=google.com; s=arc-20160816; b=ebfEC7AVaLNE4284lBpApaOTF44wnThkgfbDeCe63I1uDked6yuZJ48WsxxWHDWs/d rO/vxPRW6zGfTxwTVHEoGrgWDAXJ0r4j2yCIB3U92uppMzGBsANLhc36NHqe/MzvEpyx In7GD47guGDXAIjANURn+TW6z8DSx//o6kftSaPqRjcwPdEnIG5m5wbzdKGkmQ/4rsC/ rwDtPIgdz1Pn6qY6tCLikeH7OdAYenligeMxNeZ5OKE7HRdLrw0HOEzoMYDkzVyOFuVu MLLK7Hw86cX+5e17iFqhye6DI48ApnOXXciEUusCUH6cTkO79DnlU2XkGKQMFUkaNclH 5mFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=n2CAALcEigZJjpm4AR7duyPyWm3aXmvCe3nZv4pLlqQ=; fh=DxjxGbtP9q3xn37qE2Jm3vlYryD5P2kjaxsStHc9prs=; b=ln7TLbg+/16vp8OUUucPYDnpFZnIN78RG2oW/+WH5VhtkCYM3U59jyUfCB/fsgStRx Emh3A/e1TEfxJ6V3kDnvwL64F1NwDtKVaCWBvx76DgGWcnLkh23cSm1xYsDmjQh3I6xN oNj7PNUSce6MnBtJYdnSpyOS2h2ufYnvWQn+lZAtF0p5/+7lHTKAzsB94lkqSt1NxOnk ZVELjdWiWy22idFjCPKOCyU56NzU/iMGefNiZ0YnPVHso6JojsolFx4U2EdWsXjEt+3A zgUsMQxHsWpo+i13OYQCTpv4lKDjpieTVJyG94pM0LXmsnFrCT75KZQ4VU4G/J8MSSqX 6PCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=etDZPxeQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id cf5-20020a056a02084500b005859c874eb5si13241941pgb.275.2023.10.11.03.46.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 03:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=etDZPxeQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 98817808599A; Wed, 11 Oct 2023 03:45:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345992AbjJKKpZ (ORCPT + 99 others); Wed, 11 Oct 2023 06:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbjJKKpX (ORCPT ); Wed, 11 Oct 2023 06:45:23 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B1B092; Wed, 11 Oct 2023 03:45:22 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39B7KwYe011938; Wed, 11 Oct 2023 10:45:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=n2CAALcEigZJjpm4AR7duyPyWm3aXmvCe3nZv4pLlqQ=; b=etDZPxeQQ1iut9CBen6Vt9NJAGn8n9z1+sQw3v8oj4izM1RSxWR5qomkEEp/RjJgs1jb X+IGEOhnzd+4i3m1lNt2KXx9sKkdvqxqAZ0qrm0tOwQ6+1aeNP7S/xl3RooGVDcm9ncu laRXvRD/cjFkDVhL1T5oGtlfFcDvMO2o/oVPYW22+FxOyP3i0opnnvYJHd6WSzwqDHxP uGawiVbPj//srt9uF6ugKAf3L1UbcaDHwNIP6oavxITHzlmh6WgvEEFr8svxvUGqevt2 +WzhCLAH2RmC5cCr9upYWlpjR5Uctn8/7s+Casbx0Lhu/BtFcOBGj5+rQ+WqYYeIgHaq cg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tnkwngtjt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 10:45:02 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39BAj2j9004602 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 10:45:02 GMT Received: from [10.216.52.55] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Wed, 11 Oct 2023 03:44:53 -0700 Message-ID: Date: Wed, 11 Oct 2023 16:14:50 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v1 5/5] arm64: dts: qcom: sa8775p: Add ep pcie0 controller node Content-Language: en-US To: Manivannan Sadhasivam CC: , , , , , , , , , , , , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Rob Herring , Bjorn Helgaas , Kishon Vijay Abraham I , Vinod Koul , , , , , , References: <1695218113-31198-1-git-send-email-quic_msarkar@quicinc.com> <1695218113-31198-6-git-send-email-quic_msarkar@quicinc.com> <20230921094823.GE2891@thinkpad> From: Mrinmay Sarkar In-Reply-To: <20230921094823.GE2891@thinkpad> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: txDmBbCPzhrIWJ1FGyxQQng_l1FT9Qe8 X-Proofpoint-GUID: txDmBbCPzhrIWJ1FGyxQQng_l1FT9Qe8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-11_08,2023-10-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 lowpriorityscore=0 bulkscore=0 mlxscore=0 suspectscore=0 phishscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 adultscore=0 spamscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310110094 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 11 Oct 2023 03:45:42 -0700 (PDT) On 9/21/2023 3:18 PM, Manivannan Sadhasivam wrote: > On Wed, Sep 20, 2023 at 07:25:12PM +0530, Mrinmay Sarkar wrote: >> Add ep pcie dtsi node for pcie0 controller found on sa8775p platform. >> > It would be good to add more info in the commit message, like PCIe Gen, lane > info, IP revision etc... > >> Signed-off-by: Mrinmay Sarkar >> --- >> arch/arm64/boot/dts/qcom/sa8775p.dtsi | 45 +++++++++++++++++++++++++++++++++++ >> 1 file changed, 45 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> index 9f4f58e8..5571131 100644 >> --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> @@ -2600,4 +2600,49 @@ >> >> status = "disabled"; >> }; >> + >> + pcie0_ep: pcie-ep@1c00000 { >> + compatible = "qcom,sa8775p-pcie-ep"; >> + reg = <0x0 0x01c00000 0x0 0x3000>, >> + <0x0 0x40000000 0x0 0xf20>, >> + <0x0 0x40000f20 0x0 0xa8>, >> + <0x0 0x40001000 0x0 0x4000>, >> + <0x0 0x40200000 0x0 0x100000>, >> + <0x0 0x01c03000 0x0 0x1000>, >> + <0x0 0x40005000 0x0 0x2000>; >> + reg-names = "parf", "dbi", "elbi", "atu", "addr_space", >> + "mmio", "dma"; >> + >> + clocks = <&gcc GCC_PCIE_0_AUX_CLK>, >> + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, >> + <&gcc GCC_PCIE_0_MSTR_AXI_CLK>, >> + <&gcc GCC_PCIE_0_SLV_AXI_CLK>, >> + <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>; >> + >> + clock-names = "aux", >> + "cfg", >> + "bus_master", >> + "bus_slave", >> + "slave_q2a"; >> + >> + interrupts = , >> + , >> + ; >> + >> + interrupt-names = "global", "doorbell", "dma"; >> + >> + interconnects = <&pcie_anoc MASTER_PCIE_0 0 &mc_virt SLAVE_EBI1 0>, >> + <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_0 0>; >> + interconnect-names = "pcie-mem", "cpu-pcie"; >> + > Don't you need iommu property? > >> + resets = <&gcc GCC_PCIE_0_BCR>; >> + reset-names = "core"; >> + power-domains = <&gcc PCIE_0_GDSC>; >> + phys = <&pcie0_phy>; >> + phy-names = "pciephy"; >> + max-link-speed = <3>; > Gen 3? there is some stability issue with gen4 so going with gen3 as of now. Will update once issue is resolved. Thanks, Mrinmay >> + num-lanes = <2>; > Only 2 lanes? Or the other one has 4 lanes? > > - Mani pcie0 has lane2 and pcie1 has lane4 configuration. Thanks, Mrinmay >> + >> + status = "disabled"; >> + }; >> }; >> -- >> 2.7.4 >>