From patchwork Wed Sep 24 15:37:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 393006 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 9214A140174 for ; Thu, 25 Sep 2014 01:39:37 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751537AbaIXPi6 (ORCPT ); Wed, 24 Sep 2014 11:38:58 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:35134 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751434AbaIXPiI (ORCPT ); Wed, 24 Sep 2014 11:38:08 -0400 Received: by mail-wg0-f44.google.com with SMTP id z12so2601712wgg.27 for ; Wed, 24 Sep 2014 08:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=nmQ7RWB2Ip5hCK30KI7I05gG7IM+V/7/FkP4qDLyc7w=; b=crxLZ43L4msgKExPSCsS5+q7OWFfX9e8fLDrJCbMi1/Yzd9LGsUIjkmOCzS37yN8lt bZg3aa5swVZJBPpuOZOh3TimxXKo2HgtARU1F6cSMD2piPXHLnUhLdzQR2V5Kie6NC/0 l269yKoDL4xJKEPmavT4+3hSIoHOrh9gM2S0joYhImIDc5wdKAQQ0EATI/PuCevl7DHa i/WsdsjzTJcQ/wSwA4rHQIAXZpw6Bj5Cp1hg+z6S1XvqwTb0ZV8MagJmT27k5kLWgjkB r9M/si4L859E2PCqU9lVtn6fwlFLeInGTPgsS3j079nRjwMVMmnqHmX0Hi4Kx8x73K3/ lWHA== X-Received: by 10.181.13.14 with SMTP id eu14mr12302448wid.43.1411573087136; Wed, 24 Sep 2014 08:38:07 -0700 (PDT) Received: from rric.localhost (f053087200.adsl.alicedsl.de. [78.53.87.200]) by mx.google.com with ESMTPSA id ky3sm19788016wjb.39.2014.09.24.08.38.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Sep 2014 08:38:06 -0700 (PDT) From: Robert Richter To: Bjorn Helgaas , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Cc: Liviu Dudau , Arnd Bergmann , Will Deacon , Sunil Goutham , linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Richter , devicetree@vger.kernel.org Subject: [PATCH 4/6] pci, thunder: Document PCIe host controller devicetree bindings Date: Wed, 24 Sep 2014 17:37:46 +0200 Message-Id: <1411573068-12952-5-git-send-email-rric@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1411573068-12952-1-git-send-email-rric@kernel.org> References: <1411573068-12952-1-git-send-email-rric@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Sunil Goutham This patch adds documentation for the devicetree bindings used by the Thunder PCI host controller. Signed-off-by: Sunil Goutham Signed-off-by: Robert Richter --- .../devicetree/bindings/pci/cavium,thunder-pci.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/cavium,thunder-pci.txt diff --git a/Documentation/devicetree/bindings/pci/cavium,thunder-pci.txt b/Documentation/devicetree/bindings/pci/cavium,thunder-pci.txt new file mode 100644 index 000000000000..c8ff3d2e8630 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/cavium,thunder-pci.txt @@ -0,0 +1,32 @@ +* Cavium Thunder PCIe interface + +Required properties: +- compatible: should contain "cavium,thunder-pcie" to identify the core. +- device_type: set to "pci" +- #address-cells: set to <3> +- #size-cells: set to <2> +- #stream-id-cells: set to <1> +- bus-range: PCI bus numbers covered +- reg: base address and length of the pcie configuration space. +- ranges: ranges for the PCI memory regions. +- msi-parent: Link to the hardware entity that serves as the Message + Signaled Interrupt controller for this PCI controller. + +Example: + +SoC specific DT Entry: + + pcie0: pcie0@0x848000000000 { + compatible = "cavium,thunder-pcie"; + device_type = "pci"; + msi-parent = <&its>; + bus-range = <0 255>; + #size-cells = <2>; + #address-cells = <3>; + #stream-id-cells = <1>; + reg = <0x8480 0x00000000 0 0x10000000>; /* Configuration space */ + ranges = <0x03000000 0x8010 0x00000000 0x8010 0x00000000 0x70 0x00000000>, /* mem */ + <0x03000000 0x8300 0x00000000 0x8300 0x00000000 0x80 0x00000000>, + <0x03000000 0x87e0 0x00000000 0x87e0 0x00000000 0x01 0x00000000>; + }; +