From patchwork Fri Oct 23 10:27:14 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: 7471671 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 0AD1E9F36A for ; Fri, 23 Oct 2015 10:28:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A3B52094B for ; Fri, 23 Oct 2015 10:28:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 033DC20945 for ; Fri, 23 Oct 2015 10:28:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752997AbbJWK2D (ORCPT ); Fri, 23 Oct 2015 06:28:03 -0400 Received: from mail-bn1on0076.outbound.protection.outlook.com ([157.56.110.76]:64546 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752988AbbJWK16 (ORCPT ); Fri, 23 Oct 2015 06:27:58 -0400 Received: from DM2PR03CA0027.namprd03.prod.outlook.com (10.141.96.26) by BY1PR03MB1500.namprd03.prod.outlook.com (10.162.210.146) with Microsoft SMTP Server (TLS) id 15.1.300.14; Fri, 23 Oct 2015 10:27:54 +0000 Received: from BN1AFFO11FD017.protection.gbl (2a01:111:f400:7c10::152) by DM2PR03CA0027.outlook.office365.com (2a01:111:e400:2428::26) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Fri, 23 Oct 2015 10:27:54 +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 BN1AFFO11FD017.mail.protection.outlook.com (10.58.52.77) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Fri, 23 Oct 2015 10:27:53 +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, 23 Oct 2015 03:27:15 -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 t9NARj0I011275; Fri, 23 Oct 2015 03:27:46 -0700 (PDT) Received: by leyfoon-vm (sSMTP sendmail emulation); Fri, 23 Oct 2015 18:28:02 +0800 From: Ley Foon Tan To: Bjorn Helgaas , Russell King , Marc Zyngier CC: Arnd Bergmann , Dinh Nguyen , , , , , , Ley Foon Tan , , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , "Kumar Gala" , Lorenzo Pieralisi Subject: [PATCH v12 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding Date: Fri, 23 Oct 2015 18:27:14 +0800 Message-ID: <1445596035-27733-6-git-send-email-lftan@altera.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1445596035-27733-1-git-send-email-lftan@altera.com> References: <1445596035-27733-1-git-send-email-lftan@altera.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD017; 1:S0c3l4bIZ7WDvAqNmhQ/3HcY7rAs5d5lkcFDYljlrv9+26HK95kl+B9f7ovFdwlZxDkzn0MfEGOkpMz2irHMFhk6AOyomYLM4O+yPDeiPsx5vvsaFL0xdH2UGQTD2NsAQuy+ik+IIKnWjhdmbY2SUaxBd15XMICkl4A+fPq6tNELyMpw37hDSjgEAEqM8dOP7OQDVbgTABE7Qh0YIoklZ1JXWtn/iQEaVO1eFLrZtkAenonHfPJ4OhH3E5VRq6/bOpxYET/DzeaSbh6+V3Ju6ZXUELBoRetV39gKg7K7RQ7E29XhHwBVCxXX69FRhN/op+RAUIfRuCXZh8H0h5OznyGAWoQfUZaWYJTTfSZy8VUanbNLqESLYm5q6ylxNohr X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(189002)(199003)(33646002)(5007970100001)(92566002)(86362001)(50466002)(81156007)(19580405001)(97736004)(87936001)(5001770100001)(48376002)(6806005)(5003940100001)(19580395003)(47776003)(5001960100002)(50986999)(106466001)(2950100001)(42186005)(105596002)(76176999)(5008740100001)(11100500001)(50226001)(36756003)(189998001)(229853001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1500; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1500; 2:KQitGquwfO7uK/ohRmT92HVJ0pSccvyrPrRINn1PFMprmv6eN+LzrilRIWDWoGBrmMy3yV4/JgwvSTSw5ZWjFYv1eCdsrZD+JyHMvUraXVfiDG8TQD2VCsduU1KCnHfyJvZOiEr4HAfjMDflk0DLT3qq8lleOUKarpld8rjEC3k=; 3:adnrYh7D5R5mN0w0alwb10ReVWwruG4wwmvNq6cdF3bGFyELRnTWBpBCeOTpIVttDYxMSTVzxh/rM6iWXJJAzEFm5HFidR/tHqw43PjRvnc5g5k9BcIOOz04JTe1kDieDLzXWoa/f0BeUhzPfE6hzf8dxSm+OkrBM2MJ+3IcEF4vortCDl8aM1R+bgnBFmvogUiulLw5BQLt4g0A/PKqmbMMHcd18J75oH/jdUtZOOc=; 25:dgxrom50JVPTXAORAJT8C1y+VUNfBN4wPeJWBAC9TdwQ2391Y7S+JJWmc9C1hFwuazOMQSjAh71VYFdYN9vWBQVvdYy8uME0xqJDkGs6Shc7lXE5b8O9oLS57uuH5eF+GaEzc9qB7BDDsOQXjtz8Jpa0v3XO0n5C2D7zHut5CsR5tUTnGyoIeaXm+y//mMZCd2tmT6/Yda05Io2ETiXgPABhtGH68f4J/2D8nk67asRhGk+jj75lLkbTpP3DiuTcgmfCv9qTNLQp/AcISVAelg==; 20:oUF2aVNOXQviFRa1qypNeCWBv87IzaXavSamt7g2rXgxFyaU/USDAK1ukFI5JRb0m9H4OGdzQwlqXU2geUkGY0wryOBXsOyqOsCU4OQhV7paUdgSmbzFhbSPXM/2XGOozIzGnxNxIdbh+gRx3sQ9oFGjz70xKtk4/sdjLsoGzW4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1500; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(102215026); SRVR:BY1PR03MB1500; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1500; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1500; 4:BOI12tkWxDXOg7pqmL8XAFlYkZpHII/KSowcKA8LC+02L8MoVnQ0Pft8vzqtWP1kbWVlgtJNDDhauj8XekWlWZJQxktoy5eYofu990jtvMvUOCy58Ko6e7X0eCXQ2D4UQs5eGLvu5UVDjsVKdpqz/jHPSDxGYo76gUFAG62HxT6tVzfngHuBzC5Gs810PGBh94OxXHzb4rw8mSEsaaTtYxoaWCXWqvk9baQAledn55A5i76NGPaxKUw35rjG9kKsikqxwr0P9PFprHBt0pKPkjJXyez9MI6rX9Y1YlYuBsAcCeBHcnZxHQktLaYnlso0F53m6uu3wUMfINuTtevx9FhHNrFzoORDgKTFIIAuXBb0awhAGEpwpp72jYfTflGr X-Forefront-PRVS: 0738AF4208 X-Microsoft-Exchange-Diagnostics: 1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NMwY9FlsQv7xtq8SKY+i/wTDx4liIYpo+fG1GwTw/DhZdo2Aov3w8JPXGiieVSd3wVTy4CC0EXfcZX0XNy+c5VFUGf4iT5YV8g==; 24:y9JZ37ITw9MkFWK62kIOwZuPPVJds+rCjatGnSM5kx3zO92/RCH/vOQhOWYgAOxU818DbcbLu5FDc2/RGq6jNpQVZNtckpuGscMOIHB96Z0=; 20:uE4NoWjHb3oA4Jw08kuV5468pW4E54IuaodWrKf3rGSf2pWLjJeHdkaGeZp3uGQ7IZLDusA+McxzdXMrV4rXXdtisdScMQSH9cwEIFgqmCT/h1mBs+i/KQ9Qc3hPSjlrb7HNmTP1+jneLxGCjd1QmyE6pCDFzdcqPrntta9BTC8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2015 10:27:53.5593 (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: BY1PR03MB1500 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Acked-by: Rob Herring --- .../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>; + };