From patchwork Fri Oct 27 13:33:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 158929 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp607277vqb; Fri, 27 Oct 2023 06:34:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzgNwT9SXNVaaMcyEUvuvQ0HtLgjbGrjpWlZ3CZVi9CEdP0JJwC167ULZ1mPqiA9R82tTd X-Received: by 2002:a05:6870:6f0d:b0:1e9:badb:acaa with SMTP id qw13-20020a0568706f0d00b001e9badbacaamr3058704oab.23.1698413672614; Fri, 27 Oct 2023 06:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698413672; cv=none; d=google.com; s=arc-20160816; b=FKJ1VJSGi9f2hBrZtDVswV4rvvAhnB0syKasO55HUskzEWwCSIQD6pb8tqnbfa2z3N iYO1aq75hSuukLyfUTtAWxXzkKY5kA4aZiWeWV3Pi+PHPODQO34pLXvlhDtH0YtN9R7P 9Edm2GGmv08qxNpEJ2jHMaBoDwzWgRDoxQJPNPsoRCCNv1rkKMWZHE4CKhRF9Q/aXxR0 1XkzPfJ8Bmc7mg3dpuS2474GTCJvN3c4BGmYQnMxEWgBxzDgYOr4Ruw19fURi+nCXJFX ArEofU3I+YdQmdLq87fuOCyxcGHegaNOuZJXOt5v7W9hOrJOyHFtLLpve/Fo/t+TcykR SRlA== 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=BAVyImNKbXVxc6XIZHl/WVjMCAPa6tolmQ7QKLHI+nQ=; fh=fbGIarbQQS4yRi5EfSo8EO1fh3f6OL3LXuoGiIyiItw=; b=ZFjD3QXfyUKgsj8BAOk1JWcwJQKnVTTZrCcyHTliZ1DKAqBcQdNlsjUcyjQIkOHEaH XNQp2/kIKBPB5yo8dgZbzlsXKgz5MoaVYqJwTVhP7LLcoVsiKUq0RhzlW9upDYuyrr+9 gkjb4KFOudiEamMe2hmoJa+7TOfle87AekPtNG9PZ9cjePzoBWLL5H0BlcvfqsQdkrvR W7u4Sn91Jc5S9dKhbfdVv0/OV4KtlirD20B89zaa/GOTKehxD9nPQqv7srUwSB8MGS97 +KjcUUWrKlS9IDirnt4Wio7dskvIB2Ftqv534WVptFVRKcjZDJa69A+zSlchYoi9yAVs Uffg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gL3pHDew; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id r8-20020a05622a034800b0041808244656si743241qtw.313.2023.10.27.06.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gL3pHDew; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 1B4068313361; Fri, 27 Oct 2023 06:34:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345868AbjJ0Ne1 (ORCPT + 25 others); Fri, 27 Oct 2023 09:34:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231302AbjJ0NeZ (ORCPT ); Fri, 27 Oct 2023 09:34:25 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A57499D; Fri, 27 Oct 2023 06:34:23 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39RDTQ2i028888; Fri, 27 Oct 2023 13:33:21 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=BAVyImNKbXVxc6XIZHl/WVjMCAPa6tolmQ7QKLHI+nQ=; b=gL3pHDewcZnGTBjN0FGFFBsBBM0HcVxRB2JCXwgRMo2E4X8LhpvweJ6qBFlhEQVrzmY1 NMtikm9Y5+1YRTi74faKFXAzrmy4sIq0W8EJLfvbZvFQLGWcvK3xCQjVnSIYHGRLJ641 k9khr2mlxdiQ1e/2ICeJhifzRXIa3hpZOx5bYGypdLTA6Pv7Uo4qWTrqLWBYFhPeWbQ7 9QGqA3fsBH2q14i/asc75d7MMC5xlk8jW/75pKGzYwjwZNyrjMO49W6XJ0/B5cv6xpWB wEsravtD3SS2LMoxALIGt+xt7AQcpHoIZ67HX0Z/7m45pUbztip551CMu6EnAkSbT+ln UQ== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tyxbva5uh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 13:33:21 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 39RDXHlu026037; Fri, 27 Oct 2023 13:33:17 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3tv7qmaapq-1; Fri, 27 Oct 2023 13:33:17 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39RDXHkG026029; Fri, 27 Oct 2023 13:33:17 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 39RDXH2d026027; Fri, 27 Oct 2023 13:33:17 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id 9DC754837; Fri, 27 Oct 2023 19:03:16 +0530 (+0530) From: Mrinmay Sarkar To: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, quic_schintav@quicinc.com, Mrinmay Sarkar , Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Kishon Vijay Abraham I , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev Subject: [PATCH v4 1/4] dt-bindings: PCI: qcom-ep: Add support for SA8775P SoC Date: Fri, 27 Oct 2023 19:03:09 +0530 Message-Id: <1698413592-26523-2-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698413592-26523-1-git-send-email-quic_msarkar@quicinc.com> References: <1698413592-26523-1-git-send-email-quic_msarkar@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: q5Kt2pkKWelJ-AJV0AKrm1SY3bR7A7aB X-Proofpoint-GUID: q5Kt2pkKWelJ-AJV0AKrm1SY3bR7A7aB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_11,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 impostorscore=0 mlxlogscore=942 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310270117 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:34:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780915815488501020 X-GMAIL-MSGID: 1780915815488501020 Add devicetree bindings support for SA8775P SoC. It has DMA register space and dma interrupt to support HDMA. Signed-off-by: Mrinmay Sarkar --- .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 48 +++++++++++++++++++++- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml index a223ce0..567efc4 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml @@ -13,6 +13,7 @@ properties: compatible: oneOf: - enum: + - qcom,sa8775p-pcie-ep - qcom,sdx55-pcie-ep - qcom,sm8450-pcie-ep - items: @@ -20,6 +21,7 @@ properties: - const: qcom,sdx55-pcie-ep reg: + minItems: 6 items: - description: Qualcomm-specific PARF configuration registers - description: DesignWare PCIe registers @@ -27,8 +29,10 @@ properties: - description: Address Translation Unit (ATU) registers - description: Memory region used to map remote RC address space - description: BAR memory region + - description: DMA register space reg-names: + minItems: 6 items: - const: parf - const: dbi @@ -36,13 +40,14 @@ properties: - const: atu - const: addr_space - const: mmio + - const: dma clocks: - minItems: 7 + minItems: 5 maxItems: 8 clock-names: - minItems: 7 + minItems: 5 maxItems: 8 qcom,perst-regs: @@ -57,14 +62,18 @@ properties: - description: Perst separation enable offset interrupts: + minItems: 2 items: - description: PCIe Global interrupt - description: PCIe Doorbell interrupt + - description: DMA interrupt interrupt-names: + minItems: 2 items: - const: global - const: doorbell + - const: dma reset-gpios: description: GPIO used as PERST# input signal @@ -173,6 +182,41 @@ allOf: - const: ddrss_sf_tbu - const: aggre_noc_axi + - if: + properties: + compatible: + contains: + enum: + - qcom,sa8775p-pcie-ep + then: + properties: + reg: + minItems: 7 + maxItems: 7 + reg-names: + minItems: 7 + maxItems: 7 + clocks: + items: + - description: PCIe Auxiliary clock + - description: PCIe CFG AHB clock + - description: PCIe Master AXI clock + - description: PCIe Slave AXI clock + - description: PCIe Slave Q2A AXI clock + clock-names: + items: + - const: aux + - const: cfg + - const: bus_master + - const: bus_slave + - const: slave_q2a + interrupts: + minItems: 3 + maxItems: 3 + interrupt-names: + minItems: 3 + maxItems: 3 + unevaluatedProperties: false examples: From patchwork Fri Oct 27 13:33:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 158930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp607496vqb; Fri, 27 Oct 2023 06:34:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHm1qO8iUzyqjn6uS6mUiQQRuG1mhTQDHK7iLFcXq431ZPu8+8+o6NZ65zhg5Vn6eObNb0/ X-Received: by 2002:a67:c308:0:b0:452:69e9:a4c with SMTP id r8-20020a67c308000000b0045269e90a4cmr2451065vsj.3.1698413690860; Fri, 27 Oct 2023 06:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698413690; cv=none; d=google.com; s=arc-20160816; b=MqPaHWZHHJS+0zglMy77Z8hk6zmcLTak6jmeTipIL0IeE4RxcH+FIEsFh6hEqtgmsg UxH9V0ERhwizQ0XNWDiA29Bq4v5hlDAaR2OhNBdu2GORVp1LudqwxfoteseADRtFboeR LPvhdoeLxXe33oDR3ImJpwUyY46O5rr6RItRX4CIdcET/bNNq8h/XJXUnxKxP854UA6D iXy0MMiTqqIgCYuVT2VWvE46O4hpr0cD1vVKCBszrjz9GUQUeKK9p+5w76UHKcgKNVB6 61Sd1Dtkd2Dn8rILyW3j5FAS1Qk3yoHbK/ucEAd7PRdjnui8FWXM2yBIySDvKhJVIRx+ SwTQ== 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=DBU0j4dBrgUkK4irOTj/KLSG+jwo3RZm6XIyZE1Wex8=; fh=jy2R8Hr8cp9vWNgceDRbFUHUxhzDTmDl6P/p0CX1oRQ=; b=e3lanCy5b3AnA0S7VnZ9wbeHK1GU7NevI5ad/9uiKnlyzJshh5hmnjm4u5p7NavTh6 rD0hkwQVrXWrWlpZUPAj6fsW8CtrULFKlcR56BgqR+NtwxaKllx2NZbY8NHqTuoXhmGs 5vxXkxdCaY1QMJ2gHR2FjXLy+L4g3ejsxdkp04ZNS2LnrFpKYaEEz4nkPXTZ5s+XFLDT Y9MA15Z+UQUP6Ehep1GWZpM2x2OYCfqeHdB+dEeIGD1z2UBkewBpGPfWD8BIlTH7MCBX 34IV0izW8b36QFWPjO8SaJJPIhwuMofxgx/G9Mrq1zvBfOIy4FmiflXc2PXX8fHkOKr6 E5Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nDrpU2vS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id es16-20020a056214193000b0065b174c561fsi774198qvb.112.2023.10.27.06.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:34:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nDrpU2vS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 1A5C7831554A; Fri, 27 Oct 2023 06:34:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345949AbjJ0Nen (ORCPT + 25 others); Fri, 27 Oct 2023 09:34:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231806AbjJ0Neh (ORCPT ); Fri, 27 Oct 2023 09:34:37 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F7E1B6; Fri, 27 Oct 2023 06:34:34 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39RCo8Mj004225; Fri, 27 Oct 2023 13:33:22 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=DBU0j4dBrgUkK4irOTj/KLSG+jwo3RZm6XIyZE1Wex8=; b=nDrpU2vSkceLHZeK4KzPmfZpnhbL1qUiKNdRXArm5OI9jM9FHtBmuda/NFIpeZe/8Bcc ZCGjhiQtZkZ/ZtvM/k4y9cOlULazzR135DFseAWGWWpBUfAJkAfoZZC9UX76cbfd3gzW r5h9T5vwEtToaUPbUoemKHyAVozXT8Pfbjw6Ju0edLG5JwixuTPFXSdMUC6/qJaPLtm6 IZyYF9t4vwoxIeRh1jbh167PSsy4fhrb1tpEUW4R23tYoMUJ+P05BsHb8F6XrdNP/em5 gTUgj9m/zQLlc3nhozghlPcdVoZuc8VQ4OP0Wx4InSJdRCDH2eRBmCrM5+Rb+62q3dOJ dA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tyxbx25pa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 13:33:22 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 39RDWwDi025504; Fri, 27 Oct 2023 13:33:19 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3tv7qmaapw-1; Fri, 27 Oct 2023 13:33:19 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39RDXIBM026044; Fri, 27 Oct 2023 13:33:18 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 39RDXIOi026042; Fri, 27 Oct 2023 13:33:18 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id C26F8481E; Fri, 27 Oct 2023 19:03:17 +0530 (+0530) From: Mrinmay Sarkar To: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, quic_schintav@quicinc.com, Mrinmay Sarkar , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Bjorn Helgaas , Kishon Vijay Abraham I , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev Subject: [PATCH v4 2/4] PCI: qcom-ep: Add support for SA8775P SOC Date: Fri, 27 Oct 2023 19:03:10 +0530 Message-Id: <1698413592-26523-3-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698413592-26523-1-git-send-email-quic_msarkar@quicinc.com> References: <1698413592-26523-1-git-send-email-quic_msarkar@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: BF2kNGxZQocECmBhMXTzHtnTFUC1877r X-Proofpoint-GUID: BF2kNGxZQocECmBhMXTzHtnTFUC1877r X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_11,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 spamscore=0 impostorscore=0 mlxlogscore=988 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310270117 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:34:49 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780915834007347112 X-GMAIL-MSGID: 1780915834007347112 Add support for SA8775P SoC to the Qualcomm PCIe Endpoint Controller driver. Adding new compatible string as it has different set of clocks compare to other SOCs. Signed-off-by: Mrinmay Sarkar --- drivers/pci/controller/dwc/pcie-qcom-ep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c index 32c8d9e..4c01c34 100644 --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c @@ -858,6 +858,7 @@ static void qcom_pcie_ep_remove(struct platform_device *pdev) } static const struct of_device_id qcom_pcie_ep_match[] = { + { .compatible = "qcom,sa8775p-pcie-ep", }, { .compatible = "qcom,sdx55-pcie-ep", }, { .compatible = "qcom,sm8450-pcie-ep", }, { } From patchwork Fri Oct 27 13:33:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 158932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp607549vqb; Fri, 27 Oct 2023 06:34:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsK99aaTizU+wjRwr73b7aMIjhrqgCEIBS49W434C+fTo7P6AyworNlvu0jV4PtBRdXQvE X-Received: by 2002:ad4:4ea7:0:b0:649:384f:ed4 with SMTP id ed7-20020ad44ea7000000b00649384f0ed4mr3867822qvb.19.1698413696058; Fri, 27 Oct 2023 06:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698413696; cv=none; d=google.com; s=arc-20160816; b=SuDUZWvsHzoxhxtTis05tDQ4oLsyczVxL3jKOrhH76Qx1j5uxZ/M1/81riLMz+DTlG Z/N05JZFlnIReexdOx41+sYK23sBIZzPA0I4XtY5veG6YhD84FtQGKzic3YvLmAAyYUW 5N6yb9f2b/CkgME9YUGQZ5yzJXw600+PuuAZiQNR/u/n0jlXSyHXzmJKvf15gpsDvASr nllKSSOq6aMsJgQF0LTQLs3uK92Ixx+P/6ghyk9NvbRt3+2121ZXSTgiumynBgTCOuX7 /i0ttfnCNkF3fkcVW7u/z+XjHPlezTz5aqIEyVkq3O0p8HZZi6nar6Z1dnHC8R1KjWwe QIXQ== 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=YZxv9NCfA0KoehyT/p5DCELEr7QA33wTbAEWtL2k5fo=; fh=jy2R8Hr8cp9vWNgceDRbFUHUxhzDTmDl6P/p0CX1oRQ=; b=W8JaX95qy9nSgCoFhKRfVcJjmylnizhIQhwHELGieIEFq+f2iD1hNPxtbcVYxqjtTd sDwzdo3S2SU9wU2hViyCifyh7R8gmpZPH7qj+97hv4gAtvtbFRQj5HbFtxpMs6SOzyV7 wsYewmv7L+YepmJTRumpF7wx0E1sPZh9emzX17cfuCvk4J344ecLWWfu4rKT11FRBMEi JEgo2MxAgqt0qn8l4JWe0Ecdxu2lxLgBs/iDNZ9Y5vkPRc99MPXdynFXWmxEn7adgEuF 5Ee0xBO5MS4/BvFD17nJzgxHNUm+8aAGZWnsDOrw/7lA77Af1eGG2a2uFKnAS+1vo/lz 4gpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=J08sy8YU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m12-20020ad45dcc000000b0065b0fd973bcsi774841qvh.271.2023.10.27.06.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:34:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=J08sy8YU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id E7AB1831ED81; Fri, 27 Oct 2023 06:34:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346009AbjJ0Nes (ORCPT + 25 others); Fri, 27 Oct 2023 09:34:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235083AbjJ0Nel (ORCPT ); Fri, 27 Oct 2023 09:34:41 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD7C1D4F; Fri, 27 Oct 2023 06:34:37 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39RD7UNB018459; Fri, 27 Oct 2023 13:33:24 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=YZxv9NCfA0KoehyT/p5DCELEr7QA33wTbAEWtL2k5fo=; b=J08sy8YUZwVRZwBUT6hWYN7pbPz/3WwuxHUYuFPZTWcO399Hu1YwuWQeKMbHVCPXbRyD NMR3zZmy56xJPuIE+i6y0e6tje3tuLsRB3eDOm4PW8iCZ735hbyQiAcd0bEeTmOF0Sq9 2Qwmh/hyrcVzJ4mSeUhwr4pD01uoPDBkyaJBXgzmH4Xj26qzxmxRxOjE6h3ZBgBkN0Y/ TxZbDs/WBwi8LlBXB0wnuvmeb10F9VRCkTtPvv+JJNx3ZyjAXNP3ht0LUKrrwuii9IDH v2IO1OZNHiyE8zHrSaSrgMM5yQjbgy20hi8bi6riswyuLiA0qtZDf+RN/wfIg/aIKZb6 KQ== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tywvta516-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 13:33:23 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 39RDXKdP026066; Fri, 27 Oct 2023 13:33:20 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3tv7qmaaq2-1; Fri, 27 Oct 2023 13:33:20 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39RDXIBO026044; Fri, 27 Oct 2023 13:33:20 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 39RDXIOk026042; Fri, 27 Oct 2023 13:33:19 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id EBE6A4837; Fri, 27 Oct 2023 19:03:18 +0530 (+0530) From: Mrinmay Sarkar To: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, quic_schintav@quicinc.com, Mrinmay Sarkar , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Bjorn Helgaas , Kishon Vijay Abraham I , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev Subject: [PATCH v4 3/4] PCI: epf-mhi: Add support for SA8775P Date: Fri, 27 Oct 2023 19:03:11 +0530 Message-Id: <1698413592-26523-4-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698413592-26523-1-git-send-email-quic_msarkar@quicinc.com> References: <1698413592-26523-1-git-send-email-quic_msarkar@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-GUID: VMvO-sCiINJTv9uJ1SbQD882PUpNJ72y X-Proofpoint-ORIG-GUID: VMvO-sCiINJTv9uJ1SbQD882PUpNJ72y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_11,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=654 adultscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310270117 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:34:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780915840137367253 X-GMAIL-MSGID: 1780915840137367253 Add support for Qualcomm Snapdragon SA8775P SoC to the EPF driver. Reusing DID (0x0306) for SA8775P and it supports HDMA. Currently, it has no fixed PCI class, so it is being advertised as "PCI_CLASS_OTHERS". Signed-off-by: Mrinmay Sarkar --- drivers/pci/endpoint/functions/pci-epf-mhi.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/pci/endpoint/functions/pci-epf-mhi.c b/drivers/pci/endpoint/functions/pci-epf-mhi.c index b7b9d3e..23ea94e 100644 --- a/drivers/pci/endpoint/functions/pci-epf-mhi.c +++ b/drivers/pci/endpoint/functions/pci-epf-mhi.c @@ -114,6 +114,22 @@ static const struct pci_epf_mhi_ep_info sm8450_info = { .flags = MHI_EPF_USE_DMA, }; +static struct pci_epf_header sa8775p_header = { + .vendorid = PCI_VENDOR_ID_QCOM, + .deviceid = 0x0306, /* FIXME: Update deviceid for sa8775p EP */ + .baseclass_code = PCI_CLASS_OTHERS, + .interrupt_pin = PCI_INTERRUPT_INTA, +}; + +static const struct pci_epf_mhi_ep_info sa8775p_info = { + .config = &mhi_v1_config, + .epf_header = &sa8775p_header, + .bar_num = BAR_0, + .epf_flags = PCI_BASE_ADDRESS_MEM_TYPE_32, + .msi_count = 32, + .mru = 0x8000, +}; + struct pci_epf_mhi { const struct pci_epc_features *epc_features; const struct pci_epf_mhi_ep_info *info; @@ -677,6 +693,7 @@ static int pci_epf_mhi_probe(struct pci_epf *epf, } static const struct pci_epf_device_id pci_epf_mhi_ids[] = { + { .name = "sa8775p", .driver_data = (kernel_ulong_t)&sa8775p_info }, { .name = "sdx55", .driver_data = (kernel_ulong_t)&sdx55_info }, { .name = "sm8450", .driver_data = (kernel_ulong_t)&sm8450_info }, {}, From patchwork Fri Oct 27 13:33:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 158931 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp607538vqb; Fri, 27 Oct 2023 06:34:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwpQubi4dgKp5Ms4Kf0re8LkGOO1yCpp9uwDcHzI5wMtby2JGrrgw7RxfA+b2Q3ndEPxV1 X-Received: by 2002:a05:620a:d85:b0:778:b9ee:4aa7 with SMTP id q5-20020a05620a0d8500b00778b9ee4aa7mr2900891qkl.38.1698413695026; Fri, 27 Oct 2023 06:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698413695; cv=none; d=google.com; s=arc-20160816; b=q0PgSmWrqk8kMxELeIk1YdA92Zl47eCd8Z8Dn91WFidCg1GvvFlxi1QBByURinLjFv ljvkLL/HoajiVvtr8tU0iNWoIV0uha0Coja1uyjfd3RRleyZqE+QIqogixcRnj3Ku/D8 kuu0jZ0Hxnv1US38LgJQV8TQb3as/3j64YZt8HeGBpD6FmqThH3s+iJAyW3iXNS1d2VD 7kIe27sh/64bLJu8+gDYi0sI5KA3rCTAmZjafRGeSBCx4ik77tcIQlqpyop3PyIh0yIg Y/W+cgH92k8ZPiXrwmRcBSlVxLoCrdimOahqwAmPJUBIgzi7X3F7zcj2ThKrsIvNiPkq ctCQ== 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=RsQx3p3Jdt45deKD8q2naBRmwFH/7pLMEOjfr52W8xs=; fh=mQywMIqQsMucxKJtXIeB3pagyD/Hfoi+86AptvN1bL0=; b=SmMdqjdbgL0rcMEw+hO5LcFZ93DMKmoP9MHHURv4tE31naqb/v9poyBUFBTXR7DGUD 4+aAz29jPjno8YYoqRu/VdJmD4U1EPNzSgJ0y4p/59tWKR2uMk0FUG72YUT7YPFEyeu1 infJ7bG+ac2Z6hVLRGXlFBepIFFWQuxhLRZsEIH33T7S/Eo25PC8Mbyv2editK2KcKzK TW0PFkbGYLTyDDkPw6SZl3dMhVzPeUfiiivGfA939y61XUd7Dolzn39bvibpdjWwAzeL 1rxV0+p+rqQ4T58KZrRbTy7uTEea9GiyC51x1gLKIrr/FH9a/MW1kqd7uX9TfG0+c82P WE5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VExHeDzO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u18-20020a05620a431200b0077592d4c5afsi680141qko.767.2023.10.27.06.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:34:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VExHeDzO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id D3FAE831554F; Fri, 27 Oct 2023 06:34:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345954AbjJ0Neq (ORCPT + 25 others); Fri, 27 Oct 2023 09:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232003AbjJ0Neh (ORCPT ); Fri, 27 Oct 2023 09:34:37 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59C391BE; Fri, 27 Oct 2023 06:34:35 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39RBPgN0024483; Fri, 27 Oct 2023 13:33:25 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=RsQx3p3Jdt45deKD8q2naBRmwFH/7pLMEOjfr52W8xs=; b=VExHeDzOOk0g+Z+Dzcb7knMZzV8n5MYG5Z624K7UiPYSJidCJg2CWXKTk4jUn/RfqqOc +hVsxbye4LegMvGo4LmdLMTkboLKcB2ZEFahwVzk6pX2bu3Yy1koeOk3FDwb3aozYkff xt/hW/CUZFiroeK4yEJfsXKzKQcBH/p3jpmmmWklkgfLUvG7jsIwjDNKA30VrvL0uvIc WlVcHuPM7HTKs6gknxk6QDcMocoB6o2ZSzP3m4Px3FU61Y67GG8crRVpAV7SRlZnpQyg lJmGh3gpJ/xit2KX2+GLC3stx74t8ssExTi6jTazrmL40VBa4EZgn2fZR0147hHq/KuN FQ== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tyxfga4ex-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 13:33:24 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 39RDWw6E025502; Fri, 27 Oct 2023 13:33:21 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3tv7qmaaq9-1; Fri, 27 Oct 2023 13:33:21 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39RDXLoF026080; Fri, 27 Oct 2023 13:33:21 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 39RDXLMq026079; Fri, 27 Oct 2023 13:33:21 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id 3AC4D481E; Fri, 27 Oct 2023 19:03:20 +0530 (+0530) From: Mrinmay Sarkar To: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, quic_schintav@quicinc.com, Mrinmay Sarkar , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Bjorn Helgaas , Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev Subject: [PATCH v4 4/4] arm64: dts: qcom: sa8775p: Add ep pcie0 controller node Date: Fri, 27 Oct 2023 19:03:12 +0530 Message-Id: <1698413592-26523-5-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698413592-26523-1-git-send-email-quic_msarkar@quicinc.com> References: <1698413592-26523-1-git-send-email-quic_msarkar@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-GUID: D2AllKrWHeaLji7CmmlNujmoAwfwwVod X-Proofpoint-ORIG-GUID: D2AllKrWHeaLji7CmmlNujmoAwfwwVod X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_11,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 adultscore=0 spamscore=0 mlxscore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310270117 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:34:52 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780915839120439568 X-GMAIL-MSGID: 1780915839120439568 Add ep pcie dtsi node for pcie0 controller found on sa8775p platform. It supports gen4 and x2 link width. Limiting the speed to Gen3 due to stability issues. Signed-off-by: Mrinmay Sarkar --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 13dd44d..7eab458 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -3586,6 +3586,52 @@ 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"; + + iommus = <&pcie_smmu 0x0000 0x7f>; + 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>; /* FIXME: Limiting the Gen speed due to stability issues */ + num-lanes = <2>; + + status = "disabled"; + }; + pcie0_phy: phy@1c04000 { compatible = "qcom,sa8775p-qmp-gen4x2-pcie-phy"; reg = <0x0 0x1c04000 0x0 0x2000>;