From patchwork Fri Jul 31 10:15: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: 6910001 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 4550E9F39D for ; Fri, 31 Jul 2015 10:19:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 462DF205BA for ; Fri, 31 Jul 2015 10:19:06 +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 4CC0B205B7 for ; Fri, 31 Jul 2015 10:19:05 +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 1ZL7NI-0004cs-0Q; Fri, 31 Jul 2015 10:17:12 +0000 Received: from mail-bn1on0084.outbound.protection.outlook.com ([157.56.110.84] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZL7Ly-0003AP-Vp for linux-arm-kernel@lists.infradead.org; Fri, 31 Jul 2015 10:16:00 +0000 Received: from BN3PR0301CA0057.namprd03.prod.outlook.com (10.160.152.153) by BN3PR03MB1495.namprd03.prod.outlook.com (10.163.35.146) with Microsoft SMTP Server (TLS) id 15.1.225.19; Fri, 31 Jul 2015 10:15:32 +0000 Received: from BN1AFFO11FD045.protection.gbl (2a01:111:f400:7c10::121) by BN3PR0301CA0057.outlook.office365.com (2a01:111:e400:401e::25) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Fri, 31 Jul 2015 10:15:32 +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 BN1AFFO11FD045.mail.protection.outlook.com (10.58.53.60) with Microsoft SMTP Server (TLS) id 15.1.231.11 via Frontend Transport; Fri, 31 Jul 2015 10:15:32 +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, 31 Jul 2015 03:14:10 -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 t6VAFRtP004508; Fri, 31 Jul 2015 03:15:27 -0700 (PDT) Received: by leyfoon-vm (sSMTP sendmail emulation); Fri, 31 Jul 2015 18:15:38 +0800 From: Ley Foon Tan To: Bjorn Helgaas , Russell King , Arnd Bergmann , Dinh Nguyen Subject: [PATCH v2 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding Date: Fri, 31 Jul 2015 18:15:14 +0800 Message-ID: <1438337715-22594-5-git-send-email-lftan@altera.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1438337715-22594-1-git-send-email-lftan@altera.com> References: <1438337715-22594-1-git-send-email-lftan@altera.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD045; 1:LAsaQRGUrYt+reAioVf0nXbrhNhh9uPfTCD4pIk3+xuZASbogfAL2g4EHefLJ7zHZzwpFXyJCW4WZlZk8bLAU1W1Hoc7+hxuFcGS+JlzR872AhDF19epOARzt3Vx2zLUl3UWsX/ihiwh9udkizxY6On+XgpEGgYeRvhuwLEXoKN9iJPCQEslsnWISQWgwtHC4DkPg8S6wWxcGLhNvZ0vZTx4eHceLggnXyN83giVh81rTmNrdG2VBx8nOYIoi/quZSPxsxnSNfP6Cy05KZVCm6K7tJ9jNCsuMcqAQy7lt8dkm4MhrmGYDRn9ieLuXVsU X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(199003)(189002)(189998001)(77156002)(46102003)(50226001)(105596002)(62966003)(19580405001)(50986999)(76176999)(42186005)(47776003)(4001450100002)(2950100001)(87936001)(5001920100001)(50466002)(5001960100002)(92566002)(229853001)(48376002)(19580395003)(36756003)(106466001)(5001770100001)(86362001)(33646002)(6806004)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1495; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:SoftFail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1495; 2:vnn9p0jbIyhPHAnIQXWoZP5BSWm6ZsYj89ujP5eKqbeOPzBZ8DIZIEwr1LJX7pXhJ35/M7eOMiMEzAoUgeDYh6X/hmllfyoK17WkmYhH9Myx1Te9GdCY2CXdf618gW7E3a9uK2meCngxymZ+pVsXwqRiOgu7zVxp9b36Wr8QMTs=; 3:1p2Ea5IKXk1C6kgOK4mY3zjwo23g12OyHa6AEiY7Oma6U80iMEdDT189QAd8XCEW7479XtmQYCxXGoilxaccmU6eK1GmiLUjHqY4RVHHRyvPJHgglVoIsHrjMXsyr/dt2QyNvLSBJIkWMuwN0Zm808swE/Gc5MnNFKrIzWVZGvfLK5dAwxWzVtQdgCx3TF4tXydR2BptOkmYoUXrx/vHwDz75q+WcKK8ls6JhUnycxw=; 25:UEPr7kxMsYaAncF54vtrX05HMFviTyn9MBfy4nf5mOoVrTmvQtXHuXjhH0u7VsXv36SGIh5AxTCo0eCtdWXgCOmmccQd7EfQARZMYo98oAjNXLS9foqSEx3j4NdfUiEC87yKxHjTxhhtSwoQy/jQ9rpaUlQX/VlaT5btHladrP3V4WNB+iJHyv1k/SJGumE9SLdtnjxRxmOf9hWeiXlbje5ZZV7+RqpOdY14TKTnBgWEhi5VdD4Zj3uV7+x+u+6KO8yzh5DgXb8dVVZpGjb7tA==; 20:4YH/9+46uMuUe63HgvRfh7E0qk5+E7qjLM5Rh2XiWTT4a8BpiSE9+1rx1XPHKY0UGjy22o65poLAn/iZuatzPXY4/P0qnZCxWiXZewaZD2eAP0E8Hdizf5LCGR3Kqn/LC3PghmpXO5FYMwGtMwp0Az8yY7mdbpxJioI/a/FimWM= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1495; BN3PR03MB1495: X-MS-Exchange-Organization-RulesExecuted 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:BN3PR03MB1495; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1495; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1495; 4:fKJdyuLGLkpWzfqdF4R38HvLGV0dqEkNrPhl3o3amnxeR3hbfEUA0zX5X8ezNV7a08DnduHfq2rRFszNv2mNHaYOvUW9U6XxwRmxan3CCXDx0DskEFpP2qYf2ROMAzYL9YwJYk2gRrCovM7Vwg0e/+kRmvzazNm2rsxLJI2FsnZINheu8PNXPli+4KMzfAKrhcnGRPjL2hUoNju49xX53ksOlP+fUvsosJTc/Sg+bkhpDhF3lVzV7mRtH4ledbGJNeUi/nJTNJrTicB4qYYcTWmzCe6hI4o/ci3PaharMP4= X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1495; 23:HYa0himdvw/DYj00xRS1u+N4gOjmCNimCjg7zrQa/tBb4VnH6JkfPcRQpIBBFuxOvHk5YQ1HpYso6mx+3KtsS5Yyw3AS1q7a9bWVOLCKyogfn02uteTYRiud4FGLTpmiSy8DrATKfSNxIExb5lm4MMP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ewib/LisBZa7qkDvGhuAcYxaueSdv4MZitUqoGlFbdHC4d6JaQpfEejRcwFZ1bZ3vWizGdGtj4wOkTsQfwqbwL5u6FDrOiFbUZt6ROm4jXaGXdFhg7bJ3HAWquwv+rEdEEyuzfHbzJiTM= X-OriginatorOrg: altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2015 10:15:32.5049 (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: BN3PR03MB1495 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150731_031551_780094_86DB3F19 X-CRM114-Status: GOOD ( 11.07 ) 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: devicetree@vger.kernel.org, lftan.linux@gmail.com, linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Ley Foon Tan , 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=-5.6 required=5.0 tests=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..54c45f5 --- /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 0xc0000000 0xc0000000 0x00000000 0x10000000 + 0x82000000 0x00000000 0xd0000000 0xd0000000 0x00000000 0x10000000>; + };