From patchwork Mon Dec 23 08:02:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanmay Inamdar X-Patchwork-Id: 3396071 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 003FF9F37A for ; Mon, 23 Dec 2013 08:05:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 545BA2045A for ; Mon, 23 Dec 2013 08:05:02 +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 1D5FC20457 for ; Mon, 23 Dec 2013 08:05:01 +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 1Vv0UR-0002eI-Kc; Mon, 23 Dec 2013 08:03:52 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vv0U7-0002sI-Sx; Mon, 23 Dec 2013 08:03:31 +0000 Received: from exprod5og118.obsmtp.com ([64.18.0.160]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vv0Th-0002oR-En for linux-arm-kernel@lists.infradead.org; Mon, 23 Dec 2013 08:03:06 +0000 Received: from mail-pb0-f43.google.com ([209.85.160.43]) (using TLSv1) by exprod5ob118.postini.com ([64.18.4.12]) with SMTP ID DSNKUrfuJKFb+ispXZkcthNp5DqYitW0FdDg@postini.com; Mon, 23 Dec 2013 00:03:05 PST Received: by mail-pb0-f43.google.com with SMTP id rq2so5012029pbb.2 for ; Mon, 23 Dec 2013 00:02:43 -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=BjIH3ekRobAzj7quGagKa8w1KsnnC912EaueZ02dt+E=; b=KuxPsh6Di7g0ZYKSBzlgRpW0avUhMbEH9ImHogHUqqh4obS/fN2s20pBJ8g8lRZ98Z gv59TWlLbwmRKhd+MqrTtfQ+ynqexlFXo5FDNOTzDkxi9NQkakeRAIgOAL0kM0M3a83L F0z6UDJosQFCPO7QdRjAcHP936/nS28GyOLAYYbl6a0Jeu3iCWUbs2SAX1+5JTfdExkF rJks66mAAEio2SvDKfzH03R/uFudLDs4xZ7zLK7te6KPkdo76+QrYl95BVdtBwuq2IYA C7ZK0v1DPuWDpPuOKg3AOJXuiiFw03NPqD3k7CwvjRZPm3UdWWktjoNIr89RtcU8rCbv 9f+w== X-Gm-Message-State: ALoCoQlkePWaTf7JueSN/E/RslGx3nM7yrM/jsT37S8teTC+9MZZzuoY3KvOqy8N+EzVXkXf03JdG7nwKcF7vMb5liCA9IuNPxk7rWPZDcEAgDZrZtuOqTNw9irL4tbINsyVJxtGQ7gNwXVG/9KfeeYLZmZLd+jEx3AFlHqXIJLWMACq+t++PgUlCMclXpEEZtZ7IdPVbibt X-Received: by 10.68.8.136 with SMTP id r8mr24244023pba.36.1387785763665; Mon, 23 Dec 2013 00:02:43 -0800 (PST) X-Received: by 10.68.8.136 with SMTP id r8mr24244011pba.36.1387785763589; Mon, 23 Dec 2013 00:02:43 -0800 (PST) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id ql10sm32202966pbc.44.2013.12.23.00.02.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Dec 2013 00:02:42 -0800 (PST) From: Tanmay Inamdar To: Bjorn Helgaas , Grant Likely , Catalin Marinas , Rob Landley Subject: [RFC PATCH 3/3] dt-bindings: pci: xgene pcie device tree bindings Date: Mon, 23 Dec 2013 13:32:04 +0530 Message-Id: <1387785725-24262-4-git-send-email-tinamdar@apm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1387785725-24262-1-git-send-email-tinamdar@apm.com> References: <1387785725-24262-1-git-send-email-tinamdar@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131223_030305_763578_05219368 X-CRM114-Status: GOOD ( 10.78 ) X-Spam-Score: -1.9 (-) 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.7 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/pcie-xgene.c' file. Signed-off-by: Tanmay Inamdar --- .../devicetree/bindings/pci/xgene-pcie.txt | 43 ++++++++++++++++++++ 1 file changed, 43 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..d92da4f --- /dev/null +++ b/Documentation/devicetree/bindings/pci/xgene-pcie.txt @@ -0,0 +1,43 @@ +* 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 PCI memory, I/O regions, config and MSI 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. +- clock-names: from common clock binding. Should be "pcieclk". + +Example: + +SoC specific DT Entry: + pcie0: pcie@1f2b0000 { + status = "disabled"; + device_type = "pci"; + compatible = "xgene,pcie"; + #interrupt-cells = <1>; + #size-cells = <2>; + #address-cells = <3>; + reg = < 0x00 0x1f2b0000 0x0 0x00010000>; + ranges = <0x02000000 0x0 0x00000000 0xe0 0x00000000 0x0 0x10000000 /* mem*/ + 0x01000000 0x0 0x80000000 0xe0 0x80000000 0x0 0x00010000 /* io */ + 0x00000000 0x0 0xd0000000 0xe0 0xd0000000 0x0 0x00200000 /* cfg */ + 0x00000000 0x0 0x79000000 0x00 0x79000000 0x0 0x00800000>; /* msi */ + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0xc2 0x1>; + clocks = <&pcie0clk 0>; + clock-names = "pcieclk" + }; + +Board specific DT Entry: + &pcie0 { + status = "ok"; + };