From patchwork Tue Oct 31 05:11:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 16078 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp21029vqg; Mon, 30 Oct 2023 22:13:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3lApIQhocRS2tTurKhJYQQ0MoVg4y0gocEsURSCFAPkMQBL5ThuKAEg8ZurzudEp2QpqC X-Received: by 2002:a17:902:d306:b0:1c9:fdf0:f69 with SMTP id b6-20020a170902d30600b001c9fdf00f69mr10457045plc.63.1698729180677; Mon, 30 Oct 2023 22:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698729180; cv=none; d=google.com; s=arc-20160816; b=fVCqhx+Q9ixLUodhflfcODnMhg6OmptZkj7UzII5CDcLGY//5EV8s8VVu1wBJWe7mY tBZxWLOAC0yBxk90uiATcr1ChWDKXU5rOim834blY9AUl5Ty02vDXEOi+a2IJsIlNZdT xSfYtm9+dZJeUPPw7Bsm/7bugVo0nssjHb23fCSAJ1F4N/mDmIr+vF0vFCeB7rW6XYuO xieHXud3YbqGxGXjDrTcIJUgJsZq49MLT1I/MQRtD08HTO++awn0Us48OQYfbnyQc1T4 0Rl/Iysm8unScOOzHHKjvCCoB6J1BYT3SkkRZx0qgqqFpYBBxckM+8dz0TZ5T7/x2Ulb wl8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=WAcgGAuAQxwXsgXnigBI8tYHcRJaOWZ2/xe+Zex9xb0=; fh=yFr7qhcdQvImWR8Zc0n9HlheDCAdICrmTTRHFLnxeio=; b=ht/E3NDnnJ5uMm9Ll2Wog7nGgtWxtaoWiCa4goEqfYFknka/fK2TN6fmOlNHRrsSHg J2ZHCiBgu1B1PCG4BnU8Hpp8njhLYx9oIIM7FrQ8NAt4MFEMZgNe3/uK1799zZVkLbHo tZrMabcgX9weKZWzE53AQmsemA/dINe6TzNqtxoieu3hGro08EclK8oPynRYxjTe/JKW xIcFNuTPNkgPoKE3gs8woEBKc00AfgzGYNcIKz64HXuRjslBpnGhYZaTUjn2UtTQcAAp K+03W7EvpVIZsXKhHkwslZhhNtxZODyzgnaMmt7rL0w2z4uTgPAw6DNzf3rEIx1iKjYx XiNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EkpJO5xS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b13-20020a170903228d00b001c5f37aeebdsi492533plh.579.2023.10.30.22.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 22:13:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EkpJO5xS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id B4CEB803DAE7; Mon, 30 Oct 2023 22:12:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbjJaFMI (ORCPT + 33 others); Tue, 31 Oct 2023 01:12:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjJaFMH (ORCPT ); Tue, 31 Oct 2023 01:12:07 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D905FB3; Mon, 30 Oct 2023 22:12:04 -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 39V4gVOb022637; Tue, 31 Oct 2023 05:11:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=WAcgGAuAQxwXsgXnigBI8tYHcRJaOWZ2/xe+Zex9xb0=; b=EkpJO5xSHqksoGNOKbPVcix0MiAo5bzePVLTvhUE4rnONHeGufuP/TiUpakOuKuKY1er EGw1PZecZ+xhS8dyjUTIv8V9rRd+5WzkiVQgbLy3wYhXHOEJugprlkixSUrTOMo8ublP e0RslcncU90xJ7NrWM5U59oFssLDqZPbPY/9HW58x1/ZIKxo0ZHicDBssiUauM9SzMmQ vXzPUlkyfNUbjG+0Wjq5vnmzO9Eu/ijt2uAdY2Yg3/uWxezlwk+kopfx11veSWTisYUI 5p94jRXe+5oXPC1Y6I2geCshR6lqJ1lBDYmbqFe6Buwo0IgHZdyZqhwUYVjjnhAUeqis ZQ== 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 3u2chyhx9d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 05:11:56 +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 39V5Bqxl009979; Tue, 31 Oct 2023 05:11:52 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3u0ucktx8t-1; Tue, 31 Oct 2023 05:11:52 +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 39V5Bp9e009974; Tue, 31 Oct 2023 05:11:51 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 39V5Bpq8009972; Tue, 31 Oct 2023 05:11:51 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id B97B3450D; Tue, 31 Oct 2023 10:41:50 +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 v6 0/4] arm64: qcom: sa8775p: add support for EP PCIe Date: Tue, 31 Oct 2023 10:41:44 +0530 Message-Id: <1698729108-27356-1-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 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: vlgpJvIjI8sn7Z5aP9Bhx-JdhldwyHxY X-Proofpoint-GUID: vlgpJvIjI8sn7Z5aP9Bhx-JdhldwyHxY 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=467 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-2310310039 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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 30 Oct 2023 22:12:57 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781246649289815774 X-GMAIL-MSGID: 1781246649289815774 This series adds the relavent DT bindings, new compatible string, add support to EPF driver and add EP PCIe node in dtsi file for ep pcie0 controller. v5 -> v6: - update cover letter. v4 -> v5: - add maxItems to the respective field to constrain io space and interrupt in all variants. v3 -> v4: - add maxItems field in dt bindings - update comment in patch2 - dropped PHY driver patch as it is already applied [1] - update comment in EPF driver patch - update commect in dtsi and add iommus instead of iommu-map [1] https://lore.kernel.org/all/169804254205.383714.18423881810869732517.b4-ty@kernel.org/ v2 -> v3: - removed if/then schemas, added minItems for reg, reg-bnames, interrupt and interrupt-names instead. - adding qcom,sa8775p-pcie-ep compitable for sa8775p as we have some specific change to add. - reusing sm8450's pcs_misc num table as it is same as sa8775p. used appropriate namespace for pcs. - remove const from sa8775p_header as kernel test robot throwing some warnings due to this. - remove fallback compatiable as we are adding compatiable for sa8775p. v1 -> v2: - update description for dma - Reusing qcom,sdx55-pcie-ep compatibe so remove compaitable for sa8775p - sort the defines in phy header file and remove extra defines - add const in return type pci_epf_header and remove MHI_EPF_USE_DMA flag as hdma patch is not ready - add fallback compatiable as qcom,sdx55-pcie-ep, add iommu property Mrinmay Sarkar (4): dt-bindings: PCI: qcom-ep: Add support for SA8775P SoC PCI: qcom-ep: Add support for SA8775P SOC PCI: epf-mhi: Add support for SA8775P arm64: dts: qcom: sa8775p: Add ep pcie0 controller node .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 64 +++++++++++++++++++++- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 46 ++++++++++++++++ drivers/pci/controller/dwc/pcie-qcom-ep.c | 1 + drivers/pci/endpoint/functions/pci-epf-mhi.c | 17 ++++++ 4 files changed, 126 insertions(+), 2 deletions(-)