From patchwork Tue Jan 14 23:34:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanmay Inamdar X-Patchwork-Id: 3488851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 49E01C02DC for ; Tue, 14 Jan 2014 23:36:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CA0320255 for ; Tue, 14 Jan 2014 23:36:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6651C20171 for ; Tue, 14 Jan 2014 23:36:29 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3DWI-0005B7-RQ; Tue, 14 Jan 2014 23:35:43 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3DW8-0004Fd-Pw; Tue, 14 Jan 2014 23:35:32 +0000 Received: from exprod5og101.obsmtp.com ([64.18.0.141]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3DVk-0004BI-9g for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2014 23:35:14 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) (using TLSv1) by exprod5ob101.postini.com ([64.18.4.12]) with SMTP ID DSNKUtXJl7L7NUjsDub3QHtjdn89kiz58rk4@postini.com; Tue, 14 Jan 2014 15:35:08 PST Received: by mail-pa0-f46.google.com with SMTP id rd3so317050pab.33 for ; Tue, 14 Jan 2014 15:34:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7ktqaOCO0ZTv8cI6Y9vW6oxxMdwl08DSRzWvNSygL/I=; b=ZV5TxQZ1TL/KTOeHk1P+i3QC5PuCycmV7ryqpSL7OcTs8SvcIWQephsKgwad+ArLq3 8i0XxjzI3c70ciNlm7ZSZxOdffZ0+JLvwhhOZDEt2mtKlhWRbdM/+4ec0KIo+0B1N0Pd HzxYnvz+S58FmA+NO1VaqheXLgOFfP2ZMfzu3PiprMt2kYW2A2LWSFYpc9oFz8mM7qsO kML+p5+bVhUXzeWgO8+G/lGNrImbhAvfcENuDnHZRy5SnoczrGPNqqDvd+blBKI7+dbG PWuRkY2bY4zH+JKa7PpiujiaWoOgxSCidEg4HLnn5ilYYKP+3vljALZQ/4zZJA4YzTSe rodQ== X-Gm-Message-State: ALoCoQnZCrsvxdIPWfRYi+YpwTcNn14zBjvLL7HKwJ7WynMNhEA7Ehpc1pW+1C3XhwSp/Sh1LcwyVpzLfOJcuCLO/JtQ11HqFhkxWvdh6qP/1VozpDOtspUL27+m1eVA2Eo4TVEw/ioJTXiZ2Rd2CcNNWExGPORm8ew21yq0kTsH8CeIbazHBoSQbYMVxYqi+Qo89B2huPgm X-Received: by 10.66.136.107 with SMTP id pz11mr4878600pab.118.1389742486739; Tue, 14 Jan 2014 15:34:46 -0800 (PST) X-Received: by 10.66.136.107 with SMTP id pz11mr4878572pab.118.1389742486540; Tue, 14 Jan 2014 15:34:46 -0800 (PST) Received: from amcclab-ThinkStation-E30.amcc.com (63-147-59-2.dia.static.qwest.net. [63.147.59.2]) by mx.google.com with ESMTPSA id pe3sm3704858pbc.23.2014.01.14.15.34.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 15:34:45 -0800 (PST) From: Tanmay Inamdar To: Bjorn Helgaas , Arnd Bergmann , Jason Gunthorpe , Grant Likely , Rob Herring , Catalin Marinas , Rob Landley Subject: [RFC PATCH V2 3/4] dt-bindings: pci: xgene pcie device tree bindings Date: Tue, 14 Jan 2014 15:34:17 -0800 Message-Id: <1389742458-7693-4-git-send-email-tinamdar@apm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1389742458-7693-1-git-send-email-tinamdar@apm.com> References: <1389742458-7693-1-git-send-email-tinamdar@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140114_183508_636646_43CA88FC X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, patches@apm.com, linux-kernel@vger.kernel.org, Tanmay Inamdar , jcm@redhat.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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.3 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 X-Gene PCIe driver. The driver resides under 'drivers/pci/host/pci-xgene.c' file. Signed-off-by: Tanmay Inamdar --- .../devicetree/bindings/pci/xgene-pcie.txt | 45 ++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/xgene-pcie.txt diff --git a/Documentation/devicetree/bindings/pci/xgene-pcie.txt b/Documentation/devicetree/bindings/pci/xgene-pcie.txt new file mode 100644 index 0000000..19b9c28 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/xgene-pcie.txt @@ -0,0 +1,45 @@ +* AppliedMicro X-Gene PCIe interface + +Required properties: +- status: Either "ok" or "disabled". +- device_type: set to "pci" +- compatible: should contain "xgene,pcie" to identify the core. +- reg: base addresses and lengths of the pcie controller configuration + space register. +- #address-cells: set to <3> +- #size-cells: set to <2> +- ranges: ranges for the outbound memory, I/O regions. +- dma-ranges: ranges for the inbound memory regions. +- #interrupt-cells: set to <1> +- interrupt-map-mask and interrupt-map: standard PCI properties + to define the mapping of the PCIe interface to interrupt + numbers. +- clocks: from common clock binding: handle to pci clock. + +Example: + +SoC specific DT Entry: + pcie0: pcie@1f2b0000 { + status = "disabled"; + device_type = "pci"; + compatible = "apm,xgene-pcie"; + #interrupt-cells = <1>; + #size-cells = <2>; + #address-cells = <3>; + reg = < 0x00 0x1f2b0000 0x0 0x00010000 + 0xe0 0xd0000000 0x0 0x00200000>; + ranges = <0x01000000 0x00 0x00000000 0xe0 0x00000000 0x00 0x00010000 /* io */ + 0x02000000 0x00 0x10000000 0xe0 0x10000000 0x00 0x80000000>; /* mem */ + dma-ranges = <0x42000000 0x40 0x00000000 0x40 0x00000000 0x40 0x00000000>; + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0xc2 0x1 + 0x0 0x0 0x0 0x2 &gic 0x0 0xc3 0x1 + 0x0 0x0 0x0 0x3 &gic 0x0 0xc4 0x1 + 0x0 0x0 0x0 0x4 &gic 0x0 0xc5 0x1>; + clocks = <&pcie0clk 0>; + }; + +Board specific DT Entry: + &pcie0 { + status = "ok"; + };