From patchwork Fri Apr 21 12:49:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 86296 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1041556vqo; Fri, 21 Apr 2023 05:52:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ajnrhMm/rPzaZNf4hlJlO94ruR9SIJqbYIFtTYvlhItZIlFnSaT2Oves09gAjMQI12Aapr X-Received: by 2002:a17:902:d4c5:b0:1a9:465c:67d8 with SMTP id o5-20020a170902d4c500b001a9465c67d8mr2747554plg.15.1682081551664; Fri, 21 Apr 2023 05:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682081551; cv=none; d=google.com; s=arc-20160816; b=ZZc9HKDmC1rVBNc7LqOV38IcYl0RmN3jSNJGa1sRyjxDF4QYHiylBEy1KIOtR6zD4C 7DlEvM7Ap9eB4FhMBldD9VzWlOrFd7oxbjjkRlYxvApnz07CoT9Yw8w7+y4uG4kU9gOA 70QX48aadrWcl90bY3dkVdp/8TfW7c1YV2A4gdQGTYJVioSVyXwrPZyOZKkKpf6MAP1Z NkMRejT75IeSBNMaR2iAUpZsdLRATWKqt2GSasJ2tEzGWisBsXkCMTkDtVohdOrLhp+T 78yDGZYIdQR1F0vhIlWt9gnEjklNCw8odS5NbhghA1y4yI1cLWT18gkR5rEz9aIaIlc1 qFAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dODqQyjI+tkvy1XSegbXNtkktrcQwDiEQ2N1l2UIUHM=; b=kgSa8R3HzUGI0IKqSmJN7K6rnyzDC8w3fsvuZzD8bzbv4xo8tQ5GSbQxPaWs9qnPsU ahCFay/lm6TBDV7fPlWivnItRrBE52BdKuUk/YOVKoW59wXDr+TYnDEHnvO/bpChwiaB LFNNVLKB0mAxxXByeKVND04hUwrj6y2FCivnHb1s7GrDM87jyz3NtlkvH3jfad63rMBZ W6B2CtFtLLiyT3kj/el5LReHFB5OeibK6TkKw/BK24YKriQf3UzEkcoG0JyCI7SNijUh yLbEwAfPPUKQwWQkBkTwZi/rqmERxSU+gWAx7UXGVdmXcsLYddqR1JxJ2CmG2IFxtKKs MgMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ki5uDF9I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a63ee50000000b0051805159a1csi4250719pgk.476.2023.04.21.05.52.19; Fri, 21 Apr 2023 05:52:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ki5uDF9I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232263AbjDUMui (ORCPT + 99 others); Fri, 21 Apr 2023 08:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232350AbjDUMud (ORCPT ); Fri, 21 Apr 2023 08:50:33 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D56F0CC3A; Fri, 21 Apr 2023 05:50:27 -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 33LBg00D016221; Fri, 21 Apr 2023 12:50: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 : mime-version : content-type; s=qcppdkim1; bh=dODqQyjI+tkvy1XSegbXNtkktrcQwDiEQ2N1l2UIUHM=; b=Ki5uDF9IG+K5RFk4XPQOpUSuLFLrHQ9uY3PxdHK5VdoCT5CafmmO7GqoheOchQ0HCN+I vBvRg7mE6fd1wtmjlcDI9idNdxxpekhMEwyqev7RIdQ27WbFar1XxMHGGFNLte10ZNg5 Ed76DvHIgC0jArh0U54Ip1WJcUHcQ7bL5QRLG16wnW52cicg2J68AcxPBmea9EVCYFS7 lT53dQ5yr3RvBfN1z8fMvC1Sj55H5DOxIF48NC2zn2mPH00FHR4cObzJm/NloFqPdQwx pmlST3ZTmDwUZD0+W5ELWbINjLQ2XuG5I3d4QmrtZ/o6+KzIxaHgnAY3umKLqii4bdmE pA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q3ap71w5a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Apr 2023 12:50:21 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33LCoKZR018398 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Apr 2023 12:50:20 GMT Received: from devipriy-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 21 Apr 2023 05:50:13 -0700 From: Devi Priya To: , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V3 3/6] dt-bindings: PCI: qcom: Add IPQ9574 Date: Fri, 21 Apr 2023 18:19:35 +0530 Message-ID: <20230421124938.21974-4-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230421124938.21974-1-quic_devipriy@quicinc.com> References: <20230421124938.21974-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 9XuQiffmIB735rov_1Waljj60oImpN6l X-Proofpoint-GUID: 9XuQiffmIB735rov_1Waljj60oImpN6l X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-21_06,2023-04-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 mlxlogscore=999 impostorscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 adultscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304210111 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763790345113582062?= X-GMAIL-MSGID: =?utf-8?q?1763790345113582062?= Add bindings for PCIe hosts on IPQ9574 platform and allow msi-parent property. Signed-off-by: Devi Priya --- Changes in V3: - Rebased on linux-next/master .../devicetree/bindings/pci/qcom,pcie.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index 81971be4e554..a92cecc5fe6f 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -26,6 +26,7 @@ properties: - qcom,pcie-ipq8064-v2 - qcom,pcie-ipq8074 - qcom,pcie-ipq8074-gen3 + - qcom,pcie-ipq9574 - qcom,pcie-msm8996 - qcom,pcie-qcs404 - qcom,pcie-sa8540p @@ -113,6 +114,8 @@ properties: power-domains: maxItems: 1 + msi-parent: true + perst-gpios: description: GPIO controlled connection to PERST# signal maxItems: 1 @@ -138,6 +141,8 @@ anyOf: - required: - msi-map - msi-map-mask + - required: + - msi-parent allOf: - $ref: /schemas/pci/pci-bus.yaml# @@ -171,6 +176,7 @@ allOf: enum: - qcom,pcie-ipq6018 - qcom,pcie-ipq8074-gen3 + - qcom,pcie-ipq9574 then: properties: reg: @@ -382,6 +388,39 @@ allOf: - const: ahb # AHB Reset - const: axi_m_sticky # AXI Master Sticky reset + - if: + properties: + compatible: + contains: + enum: + - qcom,pcie-ipq9574 + then: + properties: + clocks: + minItems: 6 + maxItems: 6 + clock-names: + items: + - const: ahb # AHB clock + - const: aux # Auxiliary clock + - const: axi_m # AXI Master clock + - const: axi_s # AXI Slave clock + - const: axi_bridge # AXI bridge clock + - const: rchng + resets: + minItems: 8 + maxItems: 8 + reset-names: + items: + - const: pipe # PIPE reset + - const: sticky # Core Sticky reset + - const: axi_s_sticky # AXI Slave Sticky reset + - const: axi_s # AXI Slave reset + - const: axi_m_sticky # AXI Master Sticky reset + - const: axi_m # AXI Master reset + - const: aux # AUX Reset + - const: ahb # AHB Reset + - if: properties: compatible: @@ -767,6 +806,7 @@ allOf: - qcom,pcie-ipq8064v2 - qcom,pcie-ipq8074 - qcom,pcie-ipq8074-gen3 + - qcom,pcie-ipq9574 - qcom,pcie-qcs404 then: required: