From patchwork Mon Aug 17 09:09:38 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: 7024071 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 88D3B9F373 for ; Mon, 17 Aug 2015 09:12:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8255E205FD for ; Mon, 17 Aug 2015 09:12:32 +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 8022B205F9 for ; Mon, 17 Aug 2015 09:12:31 +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 1ZRGRF-0008OE-GJ; Mon, 17 Aug 2015 09:10:41 +0000 Received: from mail-bl2on0058.outbound.protection.outlook.com ([65.55.169.58] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZRGR0-0007y1-1Q for linux-arm-kernel@lists.infradead.org; Mon, 17 Aug 2015 09:10:27 +0000 Received: from BLUPR0301CA0012.namprd03.prod.outlook.com (10.162.113.150) by BLUPR03MB033.namprd03.prod.outlook.com (10.255.209.145) with Microsoft SMTP Server (TLS) id 15.1.231.21; Mon, 17 Aug 2015 09:10:03 +0000 Received: from BY2FFO11FD006.protection.gbl (2a01:111:f400:7c0c::103) by BLUPR0301CA0012.outlook.office365.com (2a01:111:e400:5259::22) with Microsoft SMTP Server (TLS) id 15.1.231.21 via Frontend Transport; Mon, 17 Aug 2015 09:10:03 +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; 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 BY2FFO11FD006.mail.protection.outlook.com (10.1.14.127) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Mon, 17 Aug 2015 09:10:03 +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; Mon, 17 Aug 2015 02:09:34 -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 t7H99tYJ008907; Mon, 17 Aug 2015 02:09:56 -0700 (PDT) Received: by leyfoon-vm (sSMTP sendmail emulation); Mon, 17 Aug 2015 17:10:07 +0800 From: Ley Foon Tan To: Bjorn Helgaas , Russell King , Marc Zyngier Subject: [PATCH v4 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding Date: Mon, 17 Aug 2015 17:09:38 +0800 Message-ID: <1439802579-22651-5-git-send-email-lftan@altera.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1439802579-22651-1-git-send-email-lftan@altera.com> References: <1439802579-22651-1-git-send-email-lftan@altera.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD006; 1:KOzmkTspVYboCCp6p1lxvrFDSE9lxySR6lEoEl3GF8ey8lpLe1MGFOr+efQtWe2GgNAgwlj8ZXOSbSTsXry8hqzMy+f6lHq7KajvaH47LN9xsAlEmSOZz/qekvIL8rI9AAXM81pfq24Foh3rYbx9erDaEO1geMAqrQL23n0R7Exa39avlIpI4lhLu8eR2elrKjbivJYyNs4S+cUsJRcc+zxPkQwfmIArwBwr1/ixmCGg0vPq3wv58oGKOxD9GDIQtS3UnjWC8xWynGuIWz967mcVdaIcux+FjOE3wWlD8bCuzlb9oHghuXkkNV3rPRNbjFcKkyqoFDEaBxlH+JMvIHTzpZwzKC5mB2izlot0ntbYq5Vc7vsqm/OJcv9Xz+iF X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(3050300001)(189002)(199003)(5003940100001)(50226001)(19580405001)(5001830100001)(42186005)(5001960100002)(47776003)(87936001)(76176999)(68736005)(81156007)(5001860100001)(97736004)(105596002)(2950100001)(4001540100001)(50986999)(5001770100001)(62966003)(77156002)(46102003)(92566002)(33646002)(106466001)(86362001)(64706001)(189998001)(229853001)(36756003)(19580395003)(6806004)(50466002)(48376002)(5001920100001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB033; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB033; 2:JzXvtfzu+Gg/P/ZZIwkX8Qm+3wggC4cjP/sntPECPR+CRPpI1kmwj7DAzjmoMwMlt77FQHNSazTU8MS19kmewjR/WqwIPD0XgKaKQwx9ryUG4gxbbzTfkgpKTAFV2JRM1+Bq75SW9GOpZMyf+J9AteTzFt1Mo0fE5wnxEUX+NEI=; 3:gUN5mJ0jgPk7mzeoc8DqBCnjc38kuUZStywop6RFXFAvI6/CdDyJB2pL/H8P0zTm0gTwBbMC5VOpvD6VnNPC49KnPGry5Ix15jzXGZxgxuYJJOEqEcelZowDiqfmHh7aVmS7rcy+gg1cslVhZF9tv1rQ6M9oZXrrMqmJolokzy0IZ6Nq8fmrob/lquR9G5KXlDl2dK7gTEVKTHYXeFdEjmlBYlkHty4cC1U/kMHPeDI=; 25:DDvAu1lifPS7qleGehS3jqjC1QE2GcqVoNarKinBa+IujYtNq2tsbAXZ5Z6yXcV9GMiOo9dpP2ri8saA+8UhGilQakZlye6aLIzIoeN1ZjZENhkwT3RWZSiY5dh4/4KV/Fdn6g1ZbN3wk3IAAW68m+e8Wfl1poe+OnqessqwhTRSxBTn/yqZkP6OvDjxBXlvZbh5AUcY2gYbf/wCHFikYszgq0BuBX7D3z0YheHgDMqy9VbsvRTHRuWlPU67Xp66SDRugxHgdRvkGR/L1ICDqQ==; 20:3aLom57j97gEeTDQTbvggBMyUjGnpJ13wrv0ASF/TqJceDQy82PaB5cbpvAYFW86P6WkeIRv9s+f0oSK3+A76hv4ZhP8hS9ldzDNKuwPDJb75K05OSBmiGHIsL+pJrQlVZt//Bvgh2MtgT0VkfritKrt99a5Ceo/ZSyGqmNOBY0= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB033; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:BLUPR03MB033; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB033; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB033; 4:IqntpIov7k3iSbTiHmrT+2rMkubLqpOk2uklKKE1jm4QcE+V6qzHKEjV6PN2gt22maDwNSXFQ6AVmMb7Mnv4zWuAXq0VFGUNn5C6caPeBsLFcQmRiV4GJCjW6P7yDIDqTh6XFxso9JBvWr15UrMyzZqJZcHat2Ul4KpPCEq0knnwsO8QZ7Safro5+SSVzP0fzXXcfUJB43wouKKCjZzNx7iMNCeb0vdYKt8cWqizWxDxQ0Yas6NAXEv0k/5MRaDgQvK8naVdJpUwwUDHtaS87H3wluRQ2gwEFZgnabX80Kqgnygd8q7B4GJg6zBHZj5x X-Forefront-PRVS: 0671F32598 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB033; 23:/FKPw8E3NiGi2Zt82bYGnLMvyH9JiHerZOp+RBOZSL?= =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B5nX/5MV33+/P1fSRekofWoG4S3CO6qtgN?= =?us-ascii?Q?w2z5Fe3lvUioR3PrlAalvIAGFCSUnYXsl/YTRQCEKQ3Z8v14iFQi/vz6oW5V?= =?us-ascii?Q?UNpcE4kNawxCkRVtwznq7OEjnHfQoldv1aTtHEuRZepg6GNk86dHKM2/3HoN?= =?us-ascii?Q?dffmHBqe43tpZD24wksbDW7wUXFGpgykBmOW3lbywmz2Vh4U3Uge3E8N61hc?= =?us-ascii?Q?XPSRG6LGk=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB033; 5:eD0SovZ8NmrHNErLNzA5C7y8OpHxpJ51UCfJWNoOqHSh1I2vHPM2c/1Rq2rxI7bFpsYbwFfNV2WxjgQOnZnrN6IHKlrAmh4fauhiFPIYxTIdXpaFF7nT2xJvkUy++3UzQk+mcd9gr1cpFDZQsUMhRA==; 24:LPGyoZNCVL185xRxz8PeCQmjQz3DE2CgH72+SJr5S6F0A/wvmTh9Oh/c3EqL8CKMDqWD47fT2ysaxtTDGivTOM85GQVDzA2i0i6iywzAeQA=; 20:kXuDzvwP+aVjmR0nPLDMBufSsxcEG+F018C3BVNiz4M0VGRBQWHBw1F45o6IO5x7dm0xqHj2MgTrFG2lSYik21fvvZueRLAZVZq1wiZLm080lzWAAo30643pqQJPwWFU/PGiETXS0eTlEoM78zdmsKzdTmVdZ8a+Pweo855YVbM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2015 09:10:03.2823 (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: BLUPR03MB033 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150817_021026_330583_405630B7 X-CRM114-Status: GOOD ( 13.45 ) 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, 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.8 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, 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..73a8dc0 --- /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" or "txs": TXS region + "Cra" or "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>; + };