From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2118C3DA4B for ; Mon, 15 Jul 2024 18:15:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BsqkTxTegj2hlVRLZ9DlL6ClI6gvd2pgo9wFqQqHL+A=; b=T4vabZVIvTlxRxeId6aW1Efr9b rB2YenkeyqHPH4TZczmSU/bTzZbpYfQmlCoT7y6TCoxqWJ9HUDCSD6Sa20/4ZtuLelQ+v2bJ8MuMQ U31giKhoBt1wh5s/EmZgFkgFKt4XZE6QeNA0G/mJKyTKiusHcvZOyY3q8fMi+wCPYp2paZ4boBk1b Pnjn1/r8FhhYJulK79+yGAcIEkbFpJrPBoYANUaSrPCDiyvBkAA6+yah2bo7f2jzJVD7YCArGaPq3 UqTUZSguv5349CTPGoDBcbid33esK6G+DYPqRvdrHtNBNKjNFPVaJ4O8PoO/NtKKrUm5pj6QURf4R faIFxm4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTQDy-00000007yoV-3PNF; Mon, 15 Jul 2024 18:14:59 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTQD6-00000007yUq-2uDk for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 18:14:06 +0000 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46FH8hPj029998; Mon, 15 Jul 2024 18:13:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=BsqkTxTegj2hlVRLZ9DlL6Cl I6gvd2pgo9wFqQqHL+A=; b=KjHZvGGDj4A9LDX0pzCGxxMDUxM98Yz36S8vJLqv 3asQWhiO59ExJ43nW9qIwNn60tqhK8Rh5BXG3nkpsNvPD3dkZmybpVTRRfirEXUX 3o4IJNfLM50H5OC1+2UTGM7DJH8CaP+z/iBHhfvpyxMuVuulHAXhEa1cRIg6HPje moeMDz7VOqNl72tVfjrqTJLMiPHksMOrBxIaCCFWxpQK0B5c9r1lQ3PwSryLKjuh aGBgmF69cNyIyVkG/77wz/7s/OQPGzeWjMunRYR9wF0RKV6pvgrF4j3cayuTooT1 meT0b1Ptuj6sz7YcWj+S5XexsCUQw0CIuDFKJct42wVddw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 40bf9ed68h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Jul 2024 18:13:54 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 46FIDr2E026349 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Jul 2024 18:13:53 GMT Received: from hu-mrana-lv.qualcomm.com (10.49.16.6) 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.1544.9; Mon, 15 Jul 2024 11:13:53 -0700 From: Mayank Rana To: , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , Mayank Rana Subject: [PATCH V226/7] dt-bindings: PCI: host-generic-pci: Add snps,dw-pcie-ecam-msi binding Date: Mon, 15 Jul 2024 11:13:34 -0700 Message-ID: <1721067215-5832-7-git-send-email-quic_mrana@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1721067215-5832-1-git-send-email-quic_mrana@quicinc.com> References: <1721067215-5832-1-git-send-email-quic_mrana@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: T4gnOBKDQXQBRBiziBzzidh6lptryqV2 X-Proofpoint-GUID: T4gnOBKDQXQBRBiziBzzidh6lptryqV2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-15_12,2024-07-11_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 bulkscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 spamscore=0 phishscore=0 mlxlogscore=972 mlxscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2407150142 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_111404_764756_667CF7F5 X-CRM114-Status: GOOD ( 12.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org To support MSI functionality using Synopsys DesignWare PCIe controller based MSI controller with ECAM driver, add "snps,dw-pcie-ecam-msi compatible binding which uses provided SPIs to support MSI functionality. Signed-off-by: Mayank Rana --- .../devicetree/bindings/pci/host-generic-pci.yaml | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml index 9c714fa..9e860d5 100644 --- a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml +++ b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml @@ -81,6 +81,12 @@ properties: - marvell,armada8k-pcie-ecam - socionext,synquacer-pcie-ecam - const: snps,dw-pcie-ecam + - description: | + Firmware is configuring Synopsys DesignWare PCIe controller in RC mode with + ECAM compatible fashion. To use MSI controller of Synopsys DesignWare PCIe + controller for MSI functionality, this compatible is used. + items: + - const: snps,dw-pcie-ecam-msi - description: CAM or ECAM compliant PCI host controllers without any quirks enum: @@ -116,6 +122,20 @@ properties: A phandle to the node that controls power or/and system resource or interface to firmware to enable ECAM compliant PCIe root complex. + interrupts: + description: + DWC PCIe Root Port/Complex specific MSI interrupt/IRQs. + minItems: 1 + maxItems: 8 + + interrupt-names: + description: + MSI interrupt names + minItems: 1 + maxItems: 8 + items: + pattern: '^msi[0-9]+$' + required: - compatible - reg @@ -146,11 +166,22 @@ allOf: reg: maxItems: 1 + - if: + properties: + compatible: + contains: + const: snps,dw-pcie-ecam-msi + then: + required: + - interrupts + - interrupt-names + unevaluatedProperties: false examples: - | + #include bus { #address-cells = <2>; #size-cells = <2>; @@ -180,5 +211,31 @@ examples: interrupt-map-mask = <0xf800 0x0 0x0 0x7>; power-domains = <&scmi5_pd 0>; }; + + pcie0: pci@1c00000 { + compatible = "snps,dw-pcie-ecam-msi"; + reg = <0x4 0x00000000 0 0x10000000>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges = <0x02000000 0x0 0x40100000 0x0 0x40100000 0x0 0x1ff00000>, + <0x43000000 0x4 0x10100000 0x4 0x10100000 0x0 0x40000000>; + bus-range = <0x00 0xff>; + dma-coherent; + linux,pci-domain = <0>; + power-domains = <&scmi5_pd 0>; + iommu-map = <0x0 &pcie_smmu 0x0000 0x1>, + <0x100 &pcie_smmu 0x0001 0x1>; + + interrupts = , + , + , + , + , + , + , + ; + interrupt-names = "msi0", "msi1", "msi2", "msi3", "msi4", "msi5", "msi6", "msi7"; + }; }; ... -- 2.7.4