From patchwork Fri Aug 7 07:43:01 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: 6965871 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@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 BA35C9F38B for ; Fri, 7 Aug 2015 07:43:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF07E20641 for ; Fri, 7 Aug 2015 07:43:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 793F620651 for ; Fri, 7 Aug 2015 07:43:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755699AbbHGHnt (ORCPT ); Fri, 7 Aug 2015 03:43:49 -0400 Received: from mail-bl2on0063.outbound.protection.outlook.com ([65.55.169.63]:60169 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753855AbbHGHnq (ORCPT ); Fri, 7 Aug 2015 03:43:46 -0400 Received: from BY2PR03CA008.namprd03.prod.outlook.com (10.255.93.25) by BY2PR03MB042.namprd03.prod.outlook.com (10.255.241.146) with Microsoft SMTP Server (TLS) id 15.1.225.19; Fri, 7 Aug 2015 07:43:43 +0000 Received: from BL2FFO11OLC009.protection.gbl (10.255.93.4) by BY2PR03CA008.outlook.office365.com (10.255.93.25) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Fri, 7 Aug 2015 07:43:35 +0000 Authentication-Results: spf=softfail (sender IP is 66.35.236.227) smtp.mailfrom=altera.com; arndb.de; dkim=none (message not signed) header.d=none; 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 BL2FFO11OLC009.mail.protection.outlook.com (10.173.160.145) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Fri, 7 Aug 2015 07:43:34 +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; Fri, 7 Aug 2015 00:43:25 -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 t777hSYv010926; Fri, 7 Aug 2015 00:43:29 -0700 (PDT) Received: by leyfoon-vm (sSMTP sendmail emulation); Fri, 07 Aug 2015 15:43:28 +0800 From: Ley Foon Tan To: Bjorn Helgaas , Russell King , Marc Zyngier CC: Arnd Bergmann , Dinh Nguyen , , , , , , Ley Foon Tan , , Rob Herring Subject: [PATCH v3 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding Date: Fri, 7 Aug 2015 15:43:01 +0800 Message-ID: <1438933382-2936-5-git-send-email-lftan@altera.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1438933382-2936-1-git-send-email-lftan@altera.com> References: <1438933382-2936-1-git-send-email-lftan@altera.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC009; 1:PvW733KMCL12ym39nPrN7yWV8Wx/TSEBJHliaj90FV9z/b1MRRSXwh9ixBGvNgNNmmNjBjIXHpNeHHjIkue4enyBzjYpuDcvYtZ6xy/e/ao7ql9nYNgcBRTrJjzt05gCPV8OnuC0sJ72rasEv//qL/vGjI+bHtkudVAu1wg7su0GGGa1SO0EdVH7vSgrSBEWHM+iA2zSV0N+IYsv1vNN1lCZgdTsTeU8lK3HAlKzVBUVojPt+OGpeh5FrslwHFE3QY3sGUibz3wbOe7mZnQbQzim7V4erHj6TfeiixaKDV+0M+v5pmjeh/ERTNaE6M4b X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(2980300002)(199003)(189002)(33646002)(229853001)(189998001)(87936001)(86362001)(50466002)(77156002)(36756003)(48376002)(46102003)(50986999)(62966003)(76176999)(19580395003)(19580405001)(2950100001)(6806004)(42186005)(68736005)(81156007)(106466001)(64706001)(105596002)(50226001)(92566002)(5001830100001)(47776003)(5003940100001)(97736004)(5001960100002)(4001540100001)(5001860100001)(5001770100001)(7099028)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB042; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB042; 2:t1Q6nu98/5ku6K1ck7Ouxyy7IG97Dl+NEdzdwuLgsb5IYAchdMEaNE2BYcAHu6DUo5ZONEk8yDyImVfs/iuNmn7yzqRx3LhDh3CWo0aqxmKIlp2sTMX0dduuzFzOtZHf9PLsp73TyjMgF8Wz66MsgqXjPvT530pBCZjecDeJwCM=; 3:wfJvTh8No7nWtybB46BvMB9aR9frCgzsvkoJX4nt454oZD8WlJMrWWcSI401aYC1nHCekr8wVyr/Bo691dPeTX/hwRpRWzFbr1QaPVxgOBera0JN2EvSdpuRW5ljxjAASOi8GlRNeQUYpQJ7ml/jDnecVWs0flV56e63s1l5kl2D9BSW5Fh4zwZMAiU/1rLxZJke0DbquLMOTv8vccBhQrv61csEPKRSLU/61cB/B1s=; 25:0qDq0r2R/d77J9/RmgpTfZtqrzRuqUmzLWC/JXy+Uvkn9Do2SDq53SoXa1gnVitDcQSlBWst6NZ1Be9Gl7oy01rvZOJGT+gVSwVKFja8j+O9SFinBW8KazD3e6oz3vPRFpeCYunngAJRsrympqJ5cGjCvI2egY8/zS92iUdwvT3ZThmc0W+CZK+6cAfWiARq/Y17lB8GESzKPEYJEhwIQViysyiDFCdjLBp8xnWsahIAdfQabrGhaJgo2CPLtTnRUkNIinUF6EImu3CtZJPDdQ==; 20:+so0KoINAcYqIfF7To8EpPKHEcQdsMVsWbQQuZf8HDwPgTwZC6xLHZ/zHFxSp0x5tWjY+lHmSyV1yDk0HAVzTSZo7TN5zFN1Ba2Kd/qiX1u1qBtMwEuGLZZ/PWXRae1UboUF3+e0AF3QDLv1/8NrYyFNVHPQpupU00z8NlMQ9jg= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB042; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY2PR03MB042; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB042; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB042; 4:f8V2smXN1an0iHEpzUhlGHYmiPg6rNzRwLbhOtAKrLh8KS0qTSOehknJ8Z1JtyTshcbPulyq8XoaSr+k+V8YIAdtuBFC7lduCa2E2BySaRJUQT+HyZAOyLEtI/5wiSzMSVVa78RONg8XxK9ThdSNCPbqX5WRp72Tcf18U/q7SgDEewT2uLmHTvVsQulPSFyQN0Z9TMWPUrnb+f0k/f3H2clEvqVbOga2V3cTXNYfc1Ot0Ty+4AUitz0fLxMXBHLIb0xWs/7q/Y5L5+vUFzi9QpF6FjEte5lACaIsoUuR9Eo= X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB042; 23:HQGC+AbifPggCDKdtoCjyLpTg99EdUBmf8z/+zwytL?= =?us-ascii?Q?hlPuMjhPi5MgoRuHxnXHbskCKK8Wj0CYptLmb2oxbyijJCv2ul+SBiy83VRt?= =?us-ascii?Q?igQw9WlL5uIRaK85HLXpITdRJ2XRWNIp41MDO0nxqsNO+j+URvokhpb7c2XH?= =?us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z/dWpa4S2bFUExmzAb+Bs5?= =?us-ascii?Q?LfL1UNu/628ZEg0jsKsif5Jo0vSs8HGGIVDFA628moHDQ13UO1wYwEbI7vB0?= =?us-ascii?Q?YzMiBE3CXSxP5D1qTMOp207IHZeVFF?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB042; 5:2a2Df2bDrR//MnbpYzN4zuvISmqIBJRk0lDjaXeH12zH5GSTi+R3ApcKHiLMmeQsKuOZ0J+WW8e4sMlnx9ZYH5QgCcs/4O6Eiz6fKoXpPEt4OMGUyeEL8ph94sbWIMDug03840OFK94qboRzyBoDbw==; 24:3IZceDrzfiID9w6wv+//JRdqf+FcCI76LIllHmEfn+H1qdwpmJVV++bAJWmYxO6FGRVHTOdyUqPKltYh/eBH6qCwHL6TZ4A91YVMaxfm3qM=; 20:LPQ4wkhQbHlh1+xYMHyN0t4crvg61LiKsc5LFCpoIbnSvvrevWpR3B5Rgtfaf3aJ8f19stgefwYf2Xtc44rSz87hvGi4wvlsOeriXH9qvhLmvW73M7KyIneK+zCN4spc+4se5PtGsO9MJWxS87KA+SG2K0orG9El0D3esSqxS60= X-OriginatorOrg: altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 07:43:34.9477 (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: BY2PR03MB042 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 | 27 ++++++++++++ .../devicetree/bindings/pci/altera-pcie.txt | 49 ++++++++++++++++++++++ 2 files changed, 76 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..7f330c9 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/altera-pcie-msi.txt @@ -0,0 +1,27 @@ +* 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 region +-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 = <1>; + 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..729193d --- /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": TXS region + "Cra": Control register access region +-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>; + };