From patchwork Tue Apr 4 16:48:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 79248 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp22362vqo; Tue, 4 Apr 2023 09:52:03 -0700 (PDT) X-Google-Smtp-Source: AKy350YnM4oX/U9ObuTSfkbnTgfKcyM8q+/oaYBgOvLLJ/1h2LsVw6+uLkTYqnSsT0RM0wR/Ej1T X-Received: by 2002:a17:902:9b8c:b0:19f:87b5:1873 with SMTP id y12-20020a1709029b8c00b0019f87b51873mr3035347plp.62.1680627122970; Tue, 04 Apr 2023 09:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680627122; cv=none; d=google.com; s=arc-20160816; b=a5/e/TgjMo+d25xBTG93eWuPFlb2G0FmqONV/EU/vXwxfXML8aUnGv1eGuhGXt5Uon RXhv0ReiUUQbXaYdoqg2h4sLShe7utWGtF25cfZa74PlGMrGTjHCqdsFhmDdGtOViHle y0m+lUsvrZD1U9s2upPnIibyFmRXSVC+w4snoaLwDlAuEDzfNy8RJeUuTqG0azU2A6s/ +vPYE9tA7DFfUtOmSee71uf7duhORiBBN7wXw0Wc121OLKsWT2qhXytzNmxWogbIrOrg ULZFIEYcSh4S3CmIJTSNbQbJ3oGez57NnLi1G+tcniuUo5FoqV+dreyS0cYwzeXxuOdD fG+A== 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=kUJpggEwCNXjZH9AVi+pfQL01TOarDuuJO2kkIc/vtA=; b=aH1jT5Xo7bD1ETyCYIpNGQaZrSBBGjn3L9CNlBs0Y10f0EuIxZYk/RQNUSMkiWF6Ru es+bznJzlzgtMo3HqPzxyATZ7SOSYZP9zqkUyuZy8za0qzX28mOxQWKDRoKUZ75zUYk1 By3z1PezLypcuUX/PcVArdXPCNs7Cz+TWypGcX3mqq2G6C/dYdTcOhShn7wfSfmga7Hl jfOC9SU4mYrEiqW4tXeCXlLemVeo4LRuXuEkgWbWdLnl1SZtqmFMlwYZGJdJyiLf1VRJ Vc8VBFeoObMRGQsHBzwhMqseijCge/ohUctsYEaQ7FZYxgyo4+wvtEW5X01QX8DGazvx IC+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="lpG/oLZ7"; 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 b9-20020a170903228900b001968c61066esi11242503plh.493.2023.04.04.09.51.49; Tue, 04 Apr 2023 09:52:02 -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="lpG/oLZ7"; 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 S231626AbjDDQuH (ORCPT + 99 others); Tue, 4 Apr 2023 12:50:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235216AbjDDQuB (ORCPT ); Tue, 4 Apr 2023 12:50:01 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA53C4C32; Tue, 4 Apr 2023 09:49:47 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 334DuwvU021575; Tue, 4 Apr 2023 16:49:38 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=kUJpggEwCNXjZH9AVi+pfQL01TOarDuuJO2kkIc/vtA=; b=lpG/oLZ7t3iYv1Mc4HB1Vd7CkKAmXIzgIhvA2n9Iln+B7nUI2zZCdxh3bYqXG06saC3o qb5NRjQSOPNt57hzr8wSXm+8ng8HNyhbzPZ+fzUCmjCQ7Kf8EdPlR3e4Z8HwJwD3jbYz YhdOx0e5Xi6flXR7EQ0vx3bpbKTJBl/giD899/Bduu7663OZ3Zw38GwiQjs+A9IUIl/+ mLAfj+xuntPfnAmxo2FpaE02Mo/+EhBpIdMUKTDyS1PxZ1bktCaCL8N7vBll6oQ1ycIY S1hi9/xmHP6v6QcF1FBjr/xEtM4D4Cf7dsfrbZ42a+h30iZpKLqN1X2Ae0p8TpO3o3yv NA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3prn7qggnm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Apr 2023 16:49:37 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 334GnaJ0015021 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Apr 2023 16:49:36 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; Tue, 4 Apr 2023 09:49:27 -0700 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH V2 5/9] dt-bindings: PCI: qcom: Add IPQ9574 Date: Tue, 4 Apr 2023 22:18:24 +0530 Message-ID: <20230404164828.8031-6-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230404164828.8031-1-quic_devipriy@quicinc.com> References: <20230404164828.8031-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: xeGtsSIzsRPsHvoZISu2dYOVDPj6bNq2 X-Proofpoint-GUID: xeGtsSIzsRPsHvoZISu2dYOVDPj6bNq2 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-04_08,2023-04-04_05,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 bulkscore=0 mlxscore=0 priorityscore=1501 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304040155 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 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?1762265266173148717?= X-GMAIL-MSGID: =?utf-8?q?1762265266173148717?= Add bindings for PCIe hosts on IPQ9574 platform and allow msi-parent property Signed-off-by: Devi Priya --- Changes in V2: - Updated the commit message and dropped the aggr_noc entries as it will be handled via interconnect driver .../devicetree/bindings/pci/qcom,pcie.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index fb32c43dd12d..8657ab65008c 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 @@ -105,6 +106,8 @@ properties: items: - const: pciephy + msi-parent: true + power-domains: maxItems: 1 @@ -160,6 +163,7 @@ allOf: enum: - qcom,pcie-ipq6018 - qcom,pcie-ipq8074-gen3 + - qcom,pcie-ipq9574 then: properties: reg: @@ -365,6 +369,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: @@ -681,6 +718,16 @@ allOf: - interconnects - interconnect-names + - if: + properties: + compatible: + contains: + enum: + - qcom,pcie-ipq9574 + then: + required: + - msi-parent + - if: not: properties: @@ -693,6 +740,7 @@ allOf: - qcom,pcie-ipq8064v2 - qcom,pcie-ipq8074 - qcom,pcie-ipq8074-gen3 + - qcom,pcie-ipq9574 - qcom,pcie-qcs404 then: required: