From patchwork Fri May 19 09:02:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 96279 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1089175vqo; Fri, 19 May 2023 02:04:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cbcrvzakBcNASxD4LJDYnyKIhgZGh3q8pfJwhbEFF4/AlNdYY91ww7CQRsBn6fByVLzdg X-Received: by 2002:a05:6a20:8e15:b0:104:3877:b5a3 with SMTP id y21-20020a056a208e1500b001043877b5a3mr1518488pzj.14.1684487088591; Fri, 19 May 2023 02:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684487088; cv=none; d=google.com; s=arc-20160816; b=vLxSLYIyLmEQL+jWDAQ1sqB4Gnb3Uylz+z53bgqgJWIwewVhE09fpLV+ZY08/j21wx Z7Uz0t6PvlIMcHJdLdNbO7M3gTaV9ms3jQ2pmokOr/WqnSaxMb42yvcrzreRp/qVqpMW Xg/wJlZFPjAcecy2ubvxtynIyK+LDAPx032OITBbsSldrs69FEZ0+uEa636A/gEl5kYu OHsCjDl7Cwzt40tQMLJ+yXR5itLuGoHxdgk5H5NK/Ra9+oDIn5FPPdcoQh4qITXO7zHC sQChCiMfKj/kK8Duefha8DrK5sOEv6NPGkynsI1W5p0K9BLGzxziVhsG6GnYYEAzSOLG bGkQ== 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=gLMEAADV5Voa+hjHd2kw8/UCOL6X53k5+RaVvhhvhGo=; b=UsA9bmr5d4A6rEzR1cakZUmGQ815y+gOk7kejKVMTcKD3KAlmnK2LvwZstTfjuJXlV +mLDM5uMUMgBJvSx4adss6SU6qJTwI6yEWnLsNuqTxvaJznIjNMDPmpQVIotJ/m8DTEy r4awuDmPeay6gLqZXyAcuRe/GR+j8q/lm4mce9zH3YZX3DKsNvH0JsQMt+YR7yKntpnx tg3a6Uf+Sb4D+LgnzKQEAoG5+KgMkRoieqxjiw5hxQwuipZugLOIMqN/QL9/AKPMzONn Eoj5/dKIJo4VZ2IZLHXSRerbyVInQNSmYXrxMmFzqtSYGk1D7Ko3hGObNpx2aOepyLZp uYng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LYaXLvdQ; 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 1-20020a630101000000b004c259db61fdsi3283642pgb.561.2023.05.19.02.04.33; Fri, 19 May 2023 02:04:48 -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=LYaXLvdQ; 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 S231297AbjESJDZ (ORCPT + 99 others); Fri, 19 May 2023 05:03:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjESJDS (ORCPT ); Fri, 19 May 2023 05:03:18 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6059A10D0; Fri, 19 May 2023 02:03:09 -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 34J7NeXB018881; Fri, 19 May 2023 09:03:02 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=gLMEAADV5Voa+hjHd2kw8/UCOL6X53k5+RaVvhhvhGo=; b=LYaXLvdQ1S7D0rJf9+DjRSzpZ5U4s0hf4MNqHwnQxrZHssw/X9Jl5qLKtE7rRFF9vvBP xIn0Wxq3gE1sLUsRPucLKeYMtq+WMC+lRacfPUl2CtntUOZvy2s+DUXytt46zcLZ4HJq roOMCWpUS6oDuaXjtMikvKzS6rSoobpIJlgXtUjewnZyMQjoAEtpwhn4euxc5dyOFtVz Rg2nbYxr3zuemrO/26WnTqCK7lxX51ECRmsVqcWG4UlAtGrCfyaOtMAU0QJ3zW9X0mKO iPnglCD0HP4PfkuIzDzxXIpo/JULZK9BJJ3FNKul6Spa1BvdGW39PJyHFVmvBBL9OqyV ZA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qp4nt85me-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 09:03:02 +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 34J93063009446 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 09:03:00 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, 19 May 2023 02:02:54 -0700 From: Devi Priya To: , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V4 3/6] dt-bindings: PCI: qcom: Add IPQ9574 Date: Fri, 19 May 2023 14:32:16 +0530 Message-ID: <20230519090219.15925-4-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230519090219.15925-1-quic_devipriy@quicinc.com> References: <20230519090219.15925-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: S1aujFqgeLZBGf_Z7ma4WX2K3qRsxdLA X-Proofpoint-GUID: S1aujFqgeLZBGf_Z7ma4WX2K3qRsxdLA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-19_05,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 phishscore=0 spamscore=0 impostorscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305190076 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?1766312733004044798?= X-GMAIL-MSGID: =?utf-8?q?1766312733004044798?= Add bindings for PCIe hosts on IPQ9574 platform and allow msi-parent property. Signed-off-by: Devi Priya --- Changes in V4: - Dropped msi-parent from anyOf: as msi-parent and msi-map cannot coexist and added it specific to ipq9574 .../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 81971be4e554..af5c7a390df1 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 @@ -171,6 +174,7 @@ allOf: enum: - qcom,pcie-ipq6018 - qcom,pcie-ipq8074-gen3 + - qcom,pcie-ipq9574 then: properties: reg: @@ -382,6 +386,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 +804,7 @@ allOf: - qcom,pcie-ipq8064v2 - qcom,pcie-ipq8074 - qcom,pcie-ipq8074-gen3 + - qcom,pcie-ipq9574 - qcom,pcie-qcs404 then: required: @@ -862,6 +900,16 @@ allOf: items: - const: msi + - if: + properties: + compatible: + contains: + enum: + - qcom,pcie-ipq9574 + then: + required: + - msi-parent + unevaluatedProperties: false examples: