From patchwork Tue Oct 31 04:41:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 159946 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp11624vqg; Mon, 30 Oct 2023 21:42:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhun5MdIed8t4FR2Tu79qMyE575wCCFkS6CISSPqfbOzthX95I9s+FZDJh76Av9Tmm8n1x X-Received: by 2002:a17:902:e892:b0:1cc:5691:5124 with SMTP id w18-20020a170902e89200b001cc56915124mr2985221plg.21.1698727328779; Mon, 30 Oct 2023 21:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698727328; cv=none; d=google.com; s=arc-20160816; b=ZCS2YS69i8rjAQc2L58TfEpcXDq3m554+mFzGlThnbtEYM6/8PGBjRLHQ5bfnq1DF8 W8i5GxuLnpmRwhAa5hkb9c5qV65MD/sjRcLvJ2Fo1ihtbIi4hAT4nVl9h3NG+2jXnk4G OKIUc4VHUo9UPdwj8MeS/vy2oI9qX/uG7620RQRnrq2TPMTPP3iCCrMbmmH9/9rf3Nue NfDxbZRJzUCmPTC0q+Hb3QU0JcFMkfixlAIy3OllFGn2TLRH97xN4wn6yrDwu/+U3KN+ 0vF8RZtqD/KaTlbKDArx0sgHMOGc5zjf20WD2nVJXycs7FdK5AL/GSZ5vD2T3cxH3em5 +zjg== 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=TOCkHJNrOksobYLQlF9muMNfMgj/S5y18S5DUul4xvI=; fh=yFr7qhcdQvImWR8Zc0n9HlheDCAdICrmTTRHFLnxeio=; b=bKILJ5CPp4TFZq1taW9RQyBVB8AP51GCA+666rMtTjy7HcIcMc0CvR4Zo9lSYc37pk muZXk8+d4RNp9tN1psBUowbgmloepKA/UVWWeKvPfTzfXs2gmLC1WHSDGKnqVaos1/wa F5GMu38pWJrEhw1Y/W/benJfaTmNsLf8dR8+WN/XUDz96ABPh1Ttr2CYzbPaYiWXmHrM dWjHLVJON1mezGA7bPH4dCIhsY25FE7uFOfFrGde8wIaR12kmCXZPVaUtaBrYt/lFdP3 xByzranAHb7dDCIUvRiQWqMWTvPjy/a2K5Q99judlCtDgLs9Rrz0XYVKV72PYJyG8CSn vmHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PoepuOgr; 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 f17-20020a170903105100b001b9be3b94dfsi431801plc.268.2023.10.30.21.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 21:42:08 -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=PoepuOgr; 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 58DD68029C49; Mon, 30 Oct 2023 21:42:01 -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 S236860AbjJaElx (ORCPT + 33 others); Tue, 31 Oct 2023 00:41:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235985AbjJaElt (ORCPT ); Tue, 31 Oct 2023 00:41:49 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7852BAB; Mon, 30 Oct 2023 21:41:47 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39V3t2c0023171; Tue, 31 Oct 2023 04:41:17 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=TOCkHJNrOksobYLQlF9muMNfMgj/S5y18S5DUul4xvI=; b=PoepuOgrCnkyjQzIKYWrH4DxWsXyaDCx3XIpu2fX1c/cVyu4KVxckvJPc47nEyTtXMXl UI1YwEPXp4yVonsGyYWd+uzvPTkVGphS/oIKCD4+3xYz6/0VPi+SYr7GDf8rWoiG1d2s RmspWBuOBnb6Wt+zFOIN9HgJRdVfjiI8i4c3dydQpReeUDXOiK8b/43Nzk0A3wcDjLpP J4eiD/iHTm2BlB88p7JwEgMWA/CXMBXNYndBkUuMf61SYmw01RqvxG8wAI2QW4ZqwPEt /Fr3Zw2om2rBKEaDrDL/HzcvNQGsYFI8GDh1K0F48KKLYwCpfOqHNmcqz8zbF+Kf0rkK pQ== 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 3u2chyhv05-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 04:41:16 +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 39V4fCTu012165; Tue, 31 Oct 2023 04:41:12 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3u0uckttac-1; Tue, 31 Oct 2023 04:41:12 +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 39V4fCwK012159; Tue, 31 Oct 2023 04:41:12 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 39V4fC9L012156; Tue, 31 Oct 2023 04:41:12 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id 5951E450D; Tue, 31 Oct 2023 10:11:11 +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, quic_shijose@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 v5 1/4] dt-bindings: PCI: qcom-ep: Add support for SA8775P SoC Date: Tue, 31 Oct 2023 10:11:03 +0530 Message-Id: <1698727267-22131-2-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698727267-22131-1-git-send-email-quic_msarkar@quicinc.com> References: <1698727267-22131-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: rreVNBBzGuPUzn9uiWsSkrafxmcThcob X-Proofpoint-GUID: rreVNBBzGuPUzn9uiWsSkrafxmcThcob 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-30_13,2023-10-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 mlxscore=0 adultscore=0 mlxlogscore=967 spamscore=0 phishscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310310034 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 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]); Mon, 30 Oct 2023 21:42:01 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781244707096114429 X-GMAIL-MSGID: 1781244707096114429 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 | 64 +++++++++++++++++++++- 1 file changed, 62 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..46802f7 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 @@ -125,6 +134,10 @@ allOf: - qcom,sdx55-pcie-ep then: properties: + reg: + maxItems: 6 + reg-names: + maxItems: 6 clocks: items: - description: PCIe Auxiliary clock @@ -143,6 +156,10 @@ allOf: - const: slave_q2a - const: sleep - const: ref + interrupts: + maxItems: 2 + interrupt-names: + maxItems: 2 - if: properties: @@ -152,6 +169,10 @@ allOf: - qcom,sm8450-pcie-ep then: properties: + reg: + maxItems: 6 + reg-names: + maxItems: 6 clocks: items: - description: PCIe Auxiliary clock @@ -172,6 +193,45 @@ allOf: - const: ref - const: ddrss_sf_tbu - const: aggre_noc_axi + interrupts: + maxItems: 2 + interrupt-names: + maxItems: 2 + + - 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 From patchwork Tue Oct 31 04:41:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 159948 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp11665vqg; Mon, 30 Oct 2023 21:42:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwE5rYCovfBSUWV+67DnGK7uxwy6B3taWMDuiZaxylxyVAaxQIAsg9XiiNvOLRV+52etUb X-Received: by 2002:a05:6359:1a09:b0:168:e8e6:b91f with SMTP id rt9-20020a0563591a0900b00168e8e6b91fmr9179917rwb.18.1698727338229; Mon, 30 Oct 2023 21:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698727338; cv=none; d=google.com; s=arc-20160816; b=CrB6j+d4itXt+To0EV6e9ix9Ald4ibjp91EICnbKMXZZemQ+K0XFKEEgX2sChu/T38 cQeLuhDi+6Y3bKCWcR3/pLT0K3qft5uziIvTiwDFw69sXZU/xftzxSGb+fDFyDFJ6PNa 6htIdgjNoMiCapObr+b5TPGY0lNamQDqIeQD9tbpiXyr7q/8aUJoWDtyv7+zd2feLdFv 0S5V199GuTp5Vikgf2jC0JGqhWD9JXKLK3BAiiBFcaOckiVofEN1iN3uHk7es9f+MNJx xqi/YukF4cqhHMqBU1uchOLMEVrhS52CuOvFgNUrB3Eu0dNgNYPluK3XPjdc1+H245oZ N0uA== 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=3fpmiuthC9CHGeq0wmB3uVkOPmEtr2rm72aEfJ8BAVw=; fh=KG9/k9i5DXqVZsEoVacVYwOhqNYsIFnP8KSVgv5AS5I=; b=MSOf6pRHorG9f+DKfqFv8d3xT3aaz9XYscDJ2/cagD7UDj3BE0Q5UUhgdyFX4c1yUV 8AcySacXvKvalAfoFbMzFH3Co0/6LQE1+kah9aIdHwBiawWrb1Y7vcjh8aUl9IXSql3r qltU28b7wO9uga9jmVc8hZr03RXKwva7VzT2bpJvmor1JW1ONjvxFXMM5JTU7cqyLlJA q8agm3YS5lKggdJQfZk28Z/3oWy1RVZrKmDvu/3Qhy0uS+GV6a8zwaMR8X52euRK5NlE czox7QhtGrWgo5Osx1CdlRnHMqAZePDfcwZ0nZlngRF6L7gdUqwk9uI8j9feHbYboW+c ShNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iscILfoq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x1-20020a636301000000b005b7d9aace98si476510pgb.109.2023.10.30.21.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 21:42:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iscILfoq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 7055C80465FF; Mon, 30 Oct 2023 21:42:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236882AbjJaEmC (ORCPT + 33 others); Tue, 31 Oct 2023 00:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236853AbjJaElv (ORCPT ); Tue, 31 Oct 2023 00:41:51 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94BCD98; Mon, 30 Oct 2023 21:41:49 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39V3g4Dm008494; Tue, 31 Oct 2023 04:41:17 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=3fpmiuthC9CHGeq0wmB3uVkOPmEtr2rm72aEfJ8BAVw=; b=iscILfoqPZc0TjlMPKXUpftJhSZqQi60ltiVClTw9qliM4w7KjAAYHyqmD9T58slB0Z+ Wetr394iVw3Ih0SpmfLi79k06ZfvvpcTrS2+zvRmlvzFrqNMiIv2NZ12BIwGoLyMYxuf 37xe83/Lp6JGPt8ahFKtrqoXVDhCP2Lwsrhe9WuZhCBGM2Z5nq728u0GqfQmxl0JBGPf Q43PPCDZebUwJwyG/GKE0eUt6qfkjYxeh6L637bTCK7II9XFxY8QPPnLOELSEBcO5Tij b3sI879aqRQrp8/P9p3bIqfJ1/yqcZz2wFSaQd+r+CFJgImVk0e8uqMQr66wYcIDpCkz bQ== 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 3u2b2qt4fe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 04:41:16 +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 39V4fDVc012185; Tue, 31 Oct 2023 04:41:13 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3u0uckttak-1; Tue, 31 Oct 2023 04:41:13 +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 39V4fDA2012177; Tue, 31 Oct 2023 04:41:13 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 39V4fD4q012170; Tue, 31 Oct 2023 04:41:13 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id 738E1449C; Tue, 31 Oct 2023 10:11:12 +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, quic_shijose@quicinc.com, Mrinmay Sarkar , Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , 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 v5 2/4] PCI: qcom-ep: Add support for SA8775P SOC Date: Tue, 31 Oct 2023 10:11:04 +0530 Message-Id: <1698727267-22131-3-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698727267-22131-1-git-send-email-quic_msarkar@quicinc.com> References: <1698727267-22131-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: UDrGqFzCAqJnLxj-IsDxTCrzzOT_-M08 X-Proofpoint-ORIG-GUID: UDrGqFzCAqJnLxj-IsDxTCrzzOT_-M08 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-30_13,2023-10-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 spamscore=0 clxscore=1015 phishscore=0 priorityscore=1501 mlxlogscore=984 suspectscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310310034 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 21:42:14 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781244717449123305 X-GMAIL-MSGID: 1781244717449123305 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 9e58f05..3a53d97 100644 --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c @@ -875,6 +875,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 Tue Oct 31 04:41:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 159947 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp11651vqg; Mon, 30 Oct 2023 21:42:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVyVHlcOPA3UjEAnzJ1KIYsWvxPMtPenhmd9nr5JrMZwwJkqQ7ApEqsAHA48mL9jUa0UYo X-Received: by 2002:a17:90a:7786:b0:27d:7ebe:2e8 with SMTP id v6-20020a17090a778600b0027d7ebe02e8mr11023750pjk.9.1698727333295; Mon, 30 Oct 2023 21:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698727333; cv=none; d=google.com; s=arc-20160816; b=mBaWz8GYLjXX2nJt9aVihGEy8S7Ud1AYoiUWZ8uxYJw7D/7/UfCM30Naj5Y+YymyGh 513iXiUqgYw7z/LdFpL+USydeE2UgBtINVk1kiduiHb6L81TGJKOqiyaz3dVEOZMZZFE A0S+BeDNfmr/U7CnrIFheX+vIH/dqDs4jstzohc+ABfJ98hEV69z+E/vYl3116No76oj KmmNxE57nyPkhmF3sjaTImvrvB3suTucqRz/gyH3Hd9kMl7U59gE+IexFW+fX+FSerBU q+rNMrGI99HhSGc1ojOnBcGEEvynzqr6S8pVacIQJfeylL9vpvGlsgFxR+e5CwcgjqG6 hTzQ== 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=yFr7qhcdQvImWR8Zc0n9HlheDCAdICrmTTRHFLnxeio=; b=hupSmhoohg6083DtOu/2c8pd39LiP6VVrBsbDQO54LhPqgaf9h4YYNARF3I8jrng/e oeNb9QG+MGJdRwglGVn5nQoKngKupSnmGMFeXYMnRZwga4TTXIVEr7fqqR1Uh3tB0tB9 bPl4WQ/d33M5KIIEa7A0Y958zpIxO2M/cebguXteVmXFWasNOCFXdZLAEg0+EbKOCzri cl94YT8SyOsFzRTAFrxGqIC54R2seDm0OgDHnJkeouVUOXoMubDXPrw6l50idPE2ongi RNrZEGckI8I7hq/dcZ60InzxaUUHJL7hpFJPEMVOPwYuPAl2Ce5e1tUcVMszGXxWaVRz r47g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="E65p/R++"; 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 hi12-20020a17090b30cc00b002800b13adb7si407477pjb.72.2023.10.30.21.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 21:42:13 -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="E65p/R++"; 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 28F068029DDD; Mon, 30 Oct 2023 21:42:09 -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 S236348AbjJaEmA (ORCPT + 33 others); Tue, 31 Oct 2023 00:42:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236849AbjJaElu (ORCPT ); Tue, 31 Oct 2023 00:41:50 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 289AAD8; Mon, 30 Oct 2023 21:41:48 -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 39V3UeQL021802; Tue, 31 Oct 2023 04:41:18 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=E65p/R++cuZ4r5Ko+7aL1vg6AdNngZHF9oAP33QRJrKQS8ulWPcuLAg/W1cmkARfQjaI /d2OJMcC8BPqtcIfcLcCUKbJAKWoffFiJZqXG6DDK/MOqaZasTqh/9aBe7Y6vZP6A3ak 5JLX2Issih7WJmMdAsCYTQAQh3wdHyXpWB7wL+P9lB9WyBsVA3JwAkUhyciTasOr6HzV ZDgI1E0TonmJOR4LhO24VEJU7RysZw2po7YK7fvCV4pD4IXDLOLr09XjarUzmdbWHjbI Vrz5ljCISn11kHVFQjgu9nopXLvtV8S2gWlBnxEmIojBgQK4PMnUUni/mKWLMh36dVp8 vA== 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 3u2mcygn43-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 04:41:18 +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 39V4fFDZ012514; Tue, 31 Oct 2023 04:41:15 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3u0uckttar-1; Tue, 31 Oct 2023 04:41:15 +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 39V4fDA4012177; Tue, 31 Oct 2023 04:41:15 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 39V4fD4s012170; Tue, 31 Oct 2023 04:41:15 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id 974FE450D; Tue, 31 Oct 2023 10:11:13 +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, quic_shijose@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 v5 3/4] PCI: epf-mhi: Add support for SA8775P Date: Tue, 31 Oct 2023 10:11:05 +0530 Message-Id: <1698727267-22131-4-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698727267-22131-1-git-send-email-quic_msarkar@quicinc.com> References: <1698727267-22131-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: fykdWSbqEQWeGox37bOaKPVnVGfc-we2 X-Proofpoint-ORIG-GUID: fykdWSbqEQWeGox37bOaKPVnVGfc-we2 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-30_13,2023-10-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 mlxlogscore=653 phishscore=0 suspectscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310310034 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 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]); Mon, 30 Oct 2023 21:42:09 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781244711827845824 X-GMAIL-MSGID: 1781244711827845824 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 Tue Oct 31 04:41:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 159949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp11742vqg; Mon, 30 Oct 2023 21:42:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG54zNcmoZCegwdTe/+kRgGGpMgDEJtq7O6to3IOQMqswpkrAV7kIfErkZOunfyMsM01Vl1 X-Received: by 2002:a05:6870:9a92:b0:1ea:a54:c276 with SMTP id hp18-20020a0568709a9200b001ea0a54c276mr16451711oab.29.1698727358479; Mon, 30 Oct 2023 21:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698727358; cv=none; d=google.com; s=arc-20160816; b=jqi2jbigOJ8Kvmb276nTS0raUsOZVn+Kyn5YAKNhgV7nwI83maXpSiRotxoUNYGTEj MVkUZgEKDtakibQmiQofHObWgCba/VQVwB/TnUsBIbibxoOpdQ0XIb+zF3HdmRPTSoWP YZUZ6hl24O57W4mPoHFZsB3vdyYMT0dGBYVjHgV+54CBE9fi4aoWlIxaXuCx9CsdG8zs aqqN1zeZ2eEYHFcmItswEHNYusTg509nKMjcmQhalQ9fVpR4qbSPiJiKi6hBeS5xrVgM E4rSnUXK1qFqjN6oZjH6W7EqO6uoodpiUoOaArNohzAnvIDWjkeYm2vPiA0GoLmrifA7 ifww== 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=yFr7qhcdQvImWR8Zc0n9HlheDCAdICrmTTRHFLnxeio=; b=Yq08xpbMoVsfJr8RULOt+SMT/nWkQ7TSy3uDZ3PNhlPdfkeaWBhJup7fgjYQEgatMq xe2iWyFe6g0Fz/o0/k+9UUGulnpIfWoO8Vl8H8iglpZyQPE1IIKdyyW+XHeDI+G5SNtP EtLEY0U9xA66JduZ5BgpwwTSKiDOCqFZpJ7jGSaKitUld1SG/j+lsaxC4i/AL1x8hk01 sGcaDvQ5lXQa8U+ciq6Rh3lY4Ecl7EDatrIgINpkD52dH6o5xH3+QxWv4plROmR05CcP uNDJ0ZkQ3alQkPo0OLlSRXIt8OUGCaOWNv0GYB34DPtF1Mzhq6z1aMLOqIyfknoQ4e+0 g5sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Y7LVzWvx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u137-20020a63798f000000b0057745b2d018si475907pgc.390.2023.10.30.21.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 21:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Y7LVzWvx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 0AED38042A94; Mon, 30 Oct 2023 21:42:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236868AbjJaElz (ORCPT + 33 others); Tue, 31 Oct 2023 00:41:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235989AbjJaElu (ORCPT ); Tue, 31 Oct 2023 00:41:50 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D430BC0; Mon, 30 Oct 2023 21:41:47 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39V1Jce5011097; Tue, 31 Oct 2023 04:41:20 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=Y7LVzWvxImTNUVeFVn+35pFz8zckToDtCDvvPWC9hscEdNM1F9wuqlys+0t/7cLfTTug BAZfZknYPEGsG7BxoO65rnmiyX/qojAxJ9WwqFkfjCZthkVMTCYQx909sccQYPaQZ09t +iXp5wffbEeH1ESWWX7bzzSjMDx7StJ0I+jjl3sEY0kql2b9ieLI7Jdeu3sPpSn3p+JL iJe9seqwIxmZh1NiUuyuGUyXyCyFyggwODR8uta8kTumvRl0t+K4n8PbbjLcrEwUjl+D FFaAjM7q9tUOHQB/ib6N2iHAdUbe65nONJOZbzW9uQCDHVHeULqc5oNnQd1eaqwdkTBa 6Q== 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 3u29fet9wb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 04:41:19 +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 39V4fCTv012165; Tue, 31 Oct 2023 04:41:16 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3u0uckttaw-1; Tue, 31 Oct 2023 04:41:16 +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 39V4fDA6012177; Tue, 31 Oct 2023 04:41:16 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 39V4fD4u012170; Tue, 31 Oct 2023 04:41:16 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id E7CDD449C; Tue, 31 Oct 2023 10:11:14 +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, quic_shijose@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 v5 4/4] arm64: dts: qcom: sa8775p: Add ep pcie0 controller node Date: Tue, 31 Oct 2023 10:11:06 +0530 Message-Id: <1698727267-22131-5-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698727267-22131-1-git-send-email-quic_msarkar@quicinc.com> References: <1698727267-22131-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: 7bjdhfygAblCPrZSj_RQ1yYrKCUA08xe X-Proofpoint-ORIG-GUID: 7bjdhfygAblCPrZSj_RQ1yYrKCUA08xe 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-30_13,2023-10-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 impostorscore=0 spamscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310310034 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 21:42:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781244738291044799 X-GMAIL-MSGID: 1781244738291044799 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>;