From patchwork Wed Oct 14 02:41:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ley Foon Tan X-Patchwork-Id: 7389911 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E16B59F302 for ; Wed, 14 Oct 2015 02:46:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF1342080F for ; Wed, 14 Oct 2015 02:46:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D2FAA2064B for ; Wed, 14 Oct 2015 02:46:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZmC3h-0004NM-A9; Wed, 14 Oct 2015 02:44:53 +0000 Received: from mail-bl2on0100.outbound.protection.outlook.com ([65.55.169.100] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZmC3I-0003Mn-Gc for linux-arm-kernel@lists.infradead.org; Wed, 14 Oct 2015 02:44:31 +0000 Received: from BY2PR03CA011.namprd03.prod.outlook.com (10.255.93.28) by BN3PR03MB1493.namprd03.prod.outlook.com (10.163.35.144) with Microsoft SMTP Server (TLS) id 15.1.293.16; Wed, 14 Oct 2015 02:44:06 +0000 Received: from BY2FFO11FD020.protection.gbl (10.255.93.4) by BY2PR03CA011.outlook.office365.com (10.255.93.28) with Microsoft SMTP Server (TLS) id 15.1.300.14 via Frontend Transport; Wed, 14 Oct 2015 02:44:06 +0000 Authentication-Results: spf=softfail (sender IP is 66.35.236.227) smtp.mailfrom=altera.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=altera.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning altera.com discourages use of 66.35.236.227 as permitted sender) Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BY2FFO11FD020.mail.protection.outlook.com (10.1.14.137) with Microsoft SMTP Server (TLS) id 15.1.293.9 via Frontend Transport; Wed, 14 Oct 2015 02:44:05 +0000 Received: from sj-mail01.altera.com (137.57.1.6) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 13 Oct 2015 19:41:48 -0700 Received: from leyfoon-vm (pg-lftan-l.altera.com [137.57.103.123]) by sj-mail01.altera.com (8.13.7+Sun/8.13.7) with SMTP id t9E2g2no018310; Tue, 13 Oct 2015 19:42:03 -0700 (PDT) Received: by leyfoon-vm (sSMTP sendmail emulation); Wed, 14 Oct 2015 10:42:08 +0800 From: Ley Foon Tan To: Bjorn Helgaas , Russell King , Marc Zyngier Subject: [PATCH v9 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding Date: Wed, 14 Oct 2015 10:41:31 +0800 Message-ID: <1444790492-4051-6-git-send-email-lftan@altera.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1444790492-4051-1-git-send-email-lftan@altera.com> References: <1444790492-4051-1-git-send-email-lftan@altera.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD020; 1:Ysn/FZbdDDfaZCSP5aMdJMnWCMPYKJh9RmTUp0JgmWNMh8stSoM2cn6Odn91PwWPjhogAyK/uf0O/ABN+sRwE37FluZbvxGJaVa7hMoEBWnXAY7o4F4Ag3Qf9BtPleZXsjedqMOc81fy0PpgLVDmbRt8OOKa6+q5/niMx2FfGqDRM5ggu4ZyB5RH1gYMjY5sFcIM/rr1YkDq5v276icw9eqX0UkuBuwXBJBxIwexdvloqPSyIYwNsoRWcG70jCIIOXkx8akCeDyd8BmFFPdQptXZjWT3DF4MDNjW4R/oqTXJh5WEwkCulm1fDHflo1syWvfDxdR3j/OLz/6zawwaNKIjGR1r+je/GELPZQwX/W18U9/lK0HMYH6x39cDoqI4 X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(2980300002)(189002)(199003)(81156007)(5007970100001)(42186005)(33646002)(97736004)(229853001)(47776003)(36756003)(50986999)(48376002)(50226001)(189998001)(50466002)(87936001)(5001770100001)(19580405001)(76176999)(5003940100001)(106466001)(86362001)(19580395003)(5001960100002)(64706001)(105596002)(5008740100001)(11100500001)(6806005)(46102003)(92566002)(2950100001)(7099028)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1493; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1493; 2:jMsaL0o2jQ15jA9Ocr6aK12kLxp0tDvIKdjwFtDWo3ofiU3XL3o9xplfMi4xaootai7ZtDG/OhHvB1yVZTEo30aaWWpBNsTdJYJJhnIASt7BKELUawMgczlkPOWfbsnTEcMUr/pExfHzoaMYv8gX+lFimCCoipjYGZLg1USxP08=; 3:XOI4G4pnQBv+mYnHBYPexh29V7KGdnz3ytcX29ECHum6cghM9M2tu+0tfICfpWFYaOuFu6hKTz47yeUObIBqBCMzFbTCAYwhz9/ryT0NwEwYMpC5pOsCZ21WCnbx/yIlh/tzY1gxi+KCSA47+pNuLLcHNxemIDnsyQLJsgAcYHf74HTFAjNVd4pHHkM8AYOUC5vEEnW/f+P8dk4BQFEBofYM0iKF0MSKNqnza2ejOlI=; 25:JxwOjNsjGf9OzVy6R9q+QsyELSYj4Y+knUlIL7ZD4WG0Pu/9SMl7h8evXR8hxOHcXzj1uCU+8kP/Y/e/pr6k/QJMTf83bhR47bgVcDszTx1s5+vZZ7AtBWijRzpWVVLlMS/j/m+grXecp09Ppmu8n+/KC45el+AuMAr8S1WHMEMGZ6pAofQm7Vfa9CU9qrmX7u+p2LQtn22hcRSXgrLAV0iyK3/regVGUMuFOb5KNPpcT1P0vI8Hcvh+ihHOEwtl9w/mVJ+ywx4F0Y/9oTngvQ==; 20:QvYSbwt6Gz+R3riP4OTEMcKRKzn50pHY9L1Qn85ULtcc3NTsBFC4dLpcEgxR13xjdpX9Md+oak8XLGkj+rEtrtMG5ZAf6bDS6y9atCRC9Xi3wn/YThbGUDZ4p6BBM+6MrR4a/+Gb29DKaubRAdcSwHhZLvgSH9lIvfMxQsY4xUA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1493; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001); SRVR:BN3PR03MB1493; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1493; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1493; 4:giRGiLGTAjTFyo5RLy2p3jT8MNb6jLyGNoz9HFnDItYpVAmk79zFCaiBbWZSpS19IFq4sN4i24Kail8wLOKRwqp2wirxXGDC9DIiDCe6sR4XsazkkCr/yfzukN1R1Fl8+YgkSq0maCH9WNIA07Owvoc1p1E7zyuV29ZnyG2BzabFnEXTFy6gQOEsxicrqbMh8PzmJO9wPO/8ITWEBTjHtxZOVutXO5zYoVKTuSHToHF/Y0J/kWJUeDHLWlqwdDIpHee7bD9+iHWgLwDxeSr7Hh8XNLqo6u3BT1FV+6mfhV2IRRX2Jsmt8GjYxGoHYztS55OvCQcqn5irNs9k4KQoXZS+6yhk6SzTEnR3/Ej7gx4= X-Forefront-PRVS: 0729050452 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB1493; 23:66yVO3Ku0Ae1m8li7BNozecGzCr1WtnNCyBmYBQ0m?= =?us-ascii?Q?NSLcnbFG55p7I2unx46qiPZ68sKx3VOM01sc3mO7YNzu2M97LdMay/lHceEl?= =?us-ascii?Q?CAAo9jb77JKyzQb2lWGAtkKJO+Ty2+utxSc7fmdvb/WcHvsljCukIZX3Fb7+?= =?us-ascii?Q?pq7HUAGTYITqvaOx3UfEPqgIO3mj/BSUjEfAaXZwvu3OpSjxe50n5SNqvAPT?= =?us-ascii?Q?WdMugO7EZDmoAKrK0d73FxsYqD3af16RA09S44r+mFr8eSpyaGLKQK1IaV6N?= =?us-ascii?Q?4IOrgduQg81+nbmEqm8iHOgBJDUtozA0XJGNqF119ZAuO2vXsh6IlJyDod74?= =?us-ascii?Q?Oufl8EEVHF56oQDiSTclTCICz64uZZ7ryUuPIuja81JY/tKndlEBdcoe1AFJ?= =?us-ascii?Q?ieHuUm7rQWL4H9XHmG6UTNLeAC6Wa4HoQe7kHpSbmelRfHAlCSLHTQufTnKE?= =?us-ascii?Q?JsFysCcxsd32GMlbsQcSi+ibqez/FZq6fH+2yCz344RGMfkc+1AjuMWOquE+?= =?us-ascii?Q?Z5CZz/XInId6BpvC3T0OPLqh700aJ43QjEweOXzD9rzJ1DPxC++dW0CQxlXM?= =?us-ascii?Q?WWOXzHrZxrM/P0hbjZtjyNgrUHLw4tQQ0waEbdSb7oZB+dK3i37Z7Y51C35h?= =?us-ascii?Q?JxNoaDvDoR5wZZwM2hq1eM+qyCc1eSmhCcYsfgGTmTRI9APQCME6UQJd4vGr?= =?us-ascii?Q?azR+Bis37w5ZhFwqx40TpdIIA5099WCK5GRunDGslcRoBfcuSvgs/g8/wyZh?= =?us-ascii?Q?uPT+Lf8LAbjjoqlQxXmnEZsBSrusF5nGDGBSA7cp5+4WDp50yjJNMRCSHOif?= =?us-ascii?Q?Yb+toRuUhjObnyGd3sLjFxfocBGDs+wf1c0rodKfCRGWGkbzUKIoXLGl3LXw?= =?us-ascii?Q?ldaH/b+EHsaH4L/rtRxM2mHKZxSXa8FiiPSEbtrd2ejTGh6FfKtgvMHxzXyW?= =?us-ascii?Q?nyS9Xz3hR7OicRaZgcX8y4mcPCe2Ny3vaPbRCz9FXEflWODlsmguduvLExfO?= =?us-ascii?Q?QaalTQTJPbiSJww9xhXgmkhSvxR+EM12C0v0BxWcmFCD76AMCsccbO5MJstD?= =?us-ascii?Q?/8ImbK9kJ/64PCXneaDXjKKvHDH?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1493; 5:7v8v2NKez1DooBNOGF4tLc37vaexH0cifKh2IqFUDJh7aKJ6iwHUv+GvIycZ+YhPb9uOpteFkTvDn3DqLMSPij3CSXMH5dWO4EkV1HRK6y9EGyBDNK4DN5f/GRsgOwgG63UYow8uUdbNjz6nwdr5Xw==; 24:OyDAGuR2UobX8YJFXrRn312XRPYoFCPTIoXXJSYDgZ58ku66X5NwsLMh/NstZBEHKctQHIAC8sYmLtRGpbAQY2Irfrgn7vsyTxsvWNrGacY=; 20:iO9kZyQZcKHbj81cY9C1JzI6G05ysAuqIZ+gRmgjh8g990KX9J81rVDv1ti9Q9OVN+E37ESSHlz5VjF5902oMjyyAX0SKN9nRYDXMSovPcCCnjh93mvHxisrpBDWwQz0S/AXXuB0JeGcV1CQGcRPJ9ED6QlKIR6vhDZFDIMe3Mo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2015 02:44:05.7308 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.227]; Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1493 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151013_194429_010017_BD712E44 X-CRM114-Status: GOOD ( 13.40 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Lorenzo Pieralisi , lftan.linux@gmail.com, Arnd Bergmann , linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, Ian Campbell , linux-kernel@vger.kernel.org, Rob Herring , Pawel Moll , Kumar Gala , Ley Foon Tan , Dinh Nguyen , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt | 28 +++++++++++++ .../devicetree/bindings/pci/altera-pcie.txt | 49 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt diff --git a/Documentation/devicetree/bindings/pci/altera-pcie-msi.txt b/Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file mode 100644 index 0000000..09cd3bc --- /dev/null +++ b/Documentation/devicetree/bindings/pci/altera-pcie-msi.txt @@ -0,0 +1,28 @@ +* Altera PCIe MSI controller + +Required properties: +- compatible: should contain "altr,msi-1.0" +- reg: specifies the physical base address of the controller and + the length of the memory mapped region. +- reg-names: must include the following entries: + "csr": CSR registers + "vector_slave": vectors slave port region +- interrupt-parent: interrupt source phandle. +- interrupts: specifies the interrupt source of the parent interrupt + controller. The format of the interrupt specifier depends on the + parent interrupt controller. +- num-vectors: number of vectors, range 1 to 32. +- msi-controller: indicates that this is MSI controller node + + +Example +msi0: msi@0xFF200000 { + compatible = "altr,msi-1.0"; + reg = <0xFF200000 0x00000010 + 0xFF200010 0x00000080>; + reg-names = "csr", "vector_slave"; + interrupt-parent = <&hps_0_arm_gic_0>; + interrupts = <0 42 4>; + msi-controller; + num-vectors = <32>; +}; diff --git a/Documentation/devicetree/bindings/pci/altera-pcie.txt b/Documentation/devicetree/bindings/pci/altera-pcie.txt new file mode 100644 index 0000000..2951a6a --- /dev/null +++ b/Documentation/devicetree/bindings/pci/altera-pcie.txt @@ -0,0 +1,49 @@ +* Altera PCIe controller + +Required properties: +- compatible : should contain "altr,pcie-root-port-1.0" +- reg: a list of physical base address and length for TXS and CRA. +- reg-names: must include the following entries: + "Txs": TX slave port region + "Cra": Control register access region +- interrupt-parent: interrupt source phandle. +- interrupts: specifies the interrupt source of the parent interrupt controller. + The format of the interrupt specifier depends on the parent interrupt + controller. +- device_type: must be "pci" +- #address-cells: set to <3> +- #size-cells: set to <2> +- #interrupt-cells: set to <1> +- ranges: describes the translation of addresses for root ports and standard + PCI regions. +- interrupt-map-mask and interrupt-map: standard PCI properties to define the + mapping of the PCIe interface to interrupt numbers. + +Optional properties: +- msi-parent: Link to the hardware entity that serves as the MSI controller for this PCIe + controller. +- bus-range: PCI bus numbers covered + +Example + pcie_0: pcie@0xc00000000 { + compatible = "altr,pcie-root-port-1.0"; + reg = <0xc0000000 0x20000000>, + <0xff220000 0x00004000>; + reg-names = "Txs", "Cra"; + interrupt-parent = <&hps_0_arm_gic_0>; + interrupts = <0 40 4>; + interrupt-controller; + #interrupt-cells = <1>; + bus-range = <0x0 0xFF>; + device_type = "pci"; + msi-parent = <&msi_to_gic_gen_0>; + #address-cells = <3>; + #size-cells = <2>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_0 1>, + <0 0 0 2 &pcie_0 2>, + <0 0 0 3 &pcie_0 3>, + <0 0 0 4 &pcie_0 4>; + ranges = <0x82000000 0x00000000 0x00000000 0xc0000000 0x00000000 0x10000000 + 0x82000000 0x00000000 0x10000000 0xd0000000 0x00000000 0x10000000>; + };