From patchwork Tue Jul 28 10:45:44 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: 501149 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 035C9140E10 for ; Tue, 28 Jul 2015 21:02:22 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932102AbbG1LCU (ORCPT ); Tue, 28 Jul 2015 07:02:20 -0400 Received: from mail-by2on0064.outbound.protection.outlook.com ([207.46.100.64]:52608 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755305AbbG1LCS (ORCPT ); Tue, 28 Jul 2015 07:02:18 -0400 Received: from CO2PR03CA0018.namprd03.prod.outlook.com (10.141.194.145) by BN3PR03MB1493.namprd03.prod.outlook.com (10.163.35.144) with Microsoft SMTP Server (TLS) id 15.1.225.19; Tue, 28 Jul 2015 10:46:14 +0000 Received: from BN1AFFO11FD019.protection.gbl (2a01:111:f400:7c10::151) by CO2PR03CA0018.outlook.office365.com (2a01:111:e400:1414::17) with Microsoft SMTP Server (TLS) id 15.1.207.19 via Frontend Transport; Tue, 28 Jul 2015 10:46:14 +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 BN1AFFO11FD019.mail.protection.outlook.com (10.58.52.79) with Microsoft SMTP Server (TLS) id 15.1.231.11 via Frontend Transport; Tue, 28 Jul 2015 10:46:13 +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, 28 Jul 2015 03:44:55 -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 t6SAk6ij011072; Tue, 28 Jul 2015 03:46:07 -0700 (PDT) Received: by leyfoon-vm (sSMTP sendmail emulation); Tue, 28 Jul 2015 18:46:14 +0800 From: Ley Foon Tan To: Bjorn Helgaas , Russell King , Arnd Bergmann , Dinh Nguyen CC: , , , , , Ley Foon Tan , , Rob Herring Subject: [PATCH 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding Date: Tue, 28 Jul 2015 18:45:44 +0800 Message-ID: <1438080345-7233-6-git-send-email-lftan@altera.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1438080345-7233-1-git-send-email-lftan@altera.com> References: <1438080345-7233-1-git-send-email-lftan@altera.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD019; 1:ZZM0i+ysKpeNMUXNlIS7uVDbngM8Wk/Ke4bk1H4OyXDPPfSVkRU3kfUAYPHWGTlK2EThqpAstaBLhdKmSew1Bhg0e7yytQqXfK7ggKrdldtPE8Sn+J36pyfx/Ov/eE5VyvEncRxgQ0dyCCVZoPrB1SUxXbmd18f5e5VJbX9izmoHeY7EQvaM9mssbwO40+67AHpLZXOldySxHi257qSKVwH1peBBirlcRwARsvdML3pILkltHGYW7SLzhKdZ792LkKAJef7BuiRNGAFhqKDF/W1VnqC7RjpyJOrZtNrTlNlFRpXZGPYz8MBjXBF7QHcq X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(199003)(189002)(87936001)(47776003)(229853001)(6806004)(42186005)(77156002)(62966003)(50226001)(19580405001)(86362001)(50466002)(33646002)(189998001)(19580395003)(46102003)(50986999)(2950100001)(106466001)(105596002)(4001450100002)(5001770100001)(36756003)(76176999)(48376002)(92566002)(5001960100002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1493; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:SoftFail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1493; 2:hEjaQ9ix/pULSFa3Ptq0OLl3Nr0UWX1YOPB2xdZbWr6V4lUBUunkj7+D9jb4ib6y9CZd0WVCAg43ARDgrFJcEdEjTZmMmqtccmWVFf6hemsj9FqRvuAriHuCJqJjzjVQBgtq3HL2mbniRVvNZUAsXk/KAz/5wKUyMY/zu6ulh3k=; 3:Fne4i7qfDGPKAKst9VUzz6fUqZoEI6ioY+IHWOk0FTX6uW0m7hpW2BDHznkV3OUsaRJOBpTUG9GMD17kCw1rc5c+S0KVOvErdMKpMVEMQLM5Jqc5x8DlVwpNcWuNerDFozx7EozCPcszinoZhP+iaU3GUS5zL+d4dFgPmhWdPRDGem5BIfb8RFk/7D8fKDyhExmq1CTmy+9F+TfowoOJxkcKwK2CQwLJ6fMzsbzeZks=; 25:Ll90FnN4vvqfBhStjGGm/BQN8fpnvnhbhOUssqLgmWXU1fjxGqrl7VCh9p/AJQfe7w4mi218RnvHUsbL7P5PSsC96Z/IWgrXMReJ2nqaLFSG9bZkh63qKd0aRO75g4Fc48bQDwfZOhOXNlD35ceTl/i3CZFBlvrHkYDd8NXXKAM93I6EiSqyUqf5fTAkj0Sx++RaVbMZFhVqrez2sjrxVgT7ysRVuTg8570/siLRgDHA3mO9841ZQOBUUQNi6MohpRdDV4lZZXpenmnoikusmQ==; 20:qJjrhPxgP9Br8VuY8ZZKHlof1qFHrxCht00zxeKusWdHcM+NRyAj6GVLNaLG9kmXGQ45/y2zHAefcFocahEcV9IXkeHrwihfmDUViaRoiEsMdM3snqHwFzgJFkptB8OvmKCU6d1mo/l7l8/IMqqHnrZnHnQs84ZJIUkG+w678Fw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1493; BN3PR03MB1493: 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:BN3PR03MB1493; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1493; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1493; 4:xR7TLMWon4z2pllfr18UKS5Y9FjFmrWByrCqoth9MzoA07NJMq0dh2rbHVebIL/jdlCeJLJQQ6RHExfGJ4RCTEsdP/qHdDYqzlqdo2wMLnfGPD+7W8dfr/7A6+V9vnEOxzvOF+/NVT+zOjcG1ZLAOZ31W4UnH1av2HuUBoWMDpVzFWo28E2+R4EG/rFtVgh1j8VBzhoblXzpJQ9+FOmwigSDnczUa3QPBQJb14YbCG+uTJ+rseaqqZDRKlFpi26P5Eii1OxZZ1TGR1qaetFKTXS+QijDbg0L1k+OdgomKLM= X-Forefront-PRVS: 06515DA04B X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1493; 23:klJ4ZuEFM6NiMSww1c0kAZNf5V8zvtHAZFqMHjs0VVlH0q91A/B/qQSagyU2GSx0od5SejO0CDow5eURYpKuJ5DcXaCx2fyDwWOCyloV68LpCqcDYmX4wgL9lFCzsJJTYAAixoaLfl1RbO85SGgsWaCU5qEODgAS0CwgfYdFwNGE7yWA26e5NBbll8ccT/oI7l/5XCqTF0StLFrDtzWSlzvkPnBJgHB1Bzy+NeQxC+rTDwhMmpV+VFvTIg/xKhl6jetc28I+PTxEfL5FQrc8vn7+FXEvI6lpxeet1p9RtRMfZndzeDhY3zcXK6IFmbuFHcW1khYp5bNLlXNrIhQAgDLJFVMECFssuIVKbz7+ZCZl4UIZzTdtdWqx5lUa7EGiExoLKoUashLTuYat4LM0gE48bFdeupkbdHDV8pRJUDs6F7cwZiVg+y/070MaOxHufk5GVHrFD/wf7KFJF5M7NQ5KKlo1Wk1UyI9R6VQraJ+vS2S2nP2xA6pdhtTAUu3BQjohXWmdxs6g4dqzQzzqrJbBjHG5z2lYlkCUCvjnr/AARYX+ICWcWlldisLcycUjyVwcjZ8FEpMZsqqRmxXWxdSKQ4qvNZb73YDx2Dg2EsGQlXpV5PtewHdr5vjbuiKDZeDyS6na9OU4eQ+rz46xJr5yY7A1CGAN90GWXgPHA+UmtVvNnye+2tAjSYLhGgymXbIsjrygCLR2E08/CjvhsBI2nDXGJqerVDE38znsWhuoRRof+VbYEisfT6XI/h0fGSq9hg2ffdJF36Trt0OxcQk6I4VCgvcdH0GRnnD8RfFmv4sZ4R31Fhujj21VP3ojNYwjh7rzjY/D3WbTY9uExQeGbM3HWBOeCe3R+e0scdY= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1493; 5:b/xnpRz6g9xdcYITVZCXOB0ZBth4GdZKyGg4vjtjgFbAXvr+h0NUyilqWD/N+qGYzHrCcSh/NF8gqdYnfTrVuXgykQ7BfDHOy2p3zLrhRG7zFrcS2FYGxUAP5U1O7nHSDOKMOkYHWdVL3eR/ia8cEA==; 24:4MVGcYEo7AJh5JTXFtEMrG4DAW8MToGg7fn99FlqA07T06mwIB9G/UsgRS38TvjCp5YV9P4VJFbv4nj2F5pJG+yXMWXZPpb21jKSiBqL8Rw=; 20:UK6sEDh5M8wojJSbkCTAo2NbAFxjFkKtmeTmuVwgsO6UnlGrdE+BYNa8YkiS2zhaiJV4OpRfOQHHf/E0deCK4kCnNpzMi5xT2U4x2aKC4RiLUgoa1szATy+oZ77ULfX6ECbAKyIREPrFX1eFCSQ1UtXn8oxrvuk4cbMW3dJFlSI= X-OriginatorOrg: altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2015 10:46:13.7412 (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 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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>; + };