Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365AbdFMN6I convert rfc822-to-8bit (ORCPT ); Tue, 13 Jun 2017 09:58:08 -0400 Received: from us-smtp-delivery-107.mimecast.com ([216.205.24.107]:22186 "EHLO us-smtp-delivery-107.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753103AbdFMN6G (ORCPT ); Tue, 13 Jun 2017 09:58:06 -0400 Subject: [PATCH v6 1/3] PCI: Add DT binding for tango PCIe controller To: Rob Herring CC: Bjorn Helgaas , Marc Zyngier , Thomas Gleixner , Robin Murphy , Lorenzo Pieralisi , Liviu Dudau , David Laight , linux-pci , Linux ARM , LKML , DT , Mason References: <741766e5-cff2-db5f-d40b-6866e08fd966@sigmadesigns.com> <69f3ffe7-3c39-fa94-71f8-91744a869cc9@sigmadesigns.com> <20170607212907.2wr3hqbokjb74kj3@rob-hp-laptop> From: Marc Gonzalez Message-ID: <3790db8d-6a4c-5c74-9ca2-431715a712a7@sigmadesigns.com> Date: Tue, 13 Jun 2017 15:51:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49 MIME-Version: 1.0 In-Reply-To: <20170607212907.2wr3hqbokjb74kj3@rob-hp-laptop> X-Originating-IP: [172.27.0.114] X-MC-Unique: TfgdFdrdPsKPrYptQGOfNw-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1587 Lines: 50 Binding for the Sigma Designs SMP8759 SoC. Signed-off-by: Marc Gonzalez --- Changes from v5 to v6 o Delete links to elinux.org o Use explicit hex numbers instead of symbolic constants for sizes (in the example) o Add bus-range to "Required properties" --- .../devicetree/bindings/pci/tango-pcie.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/tango-pcie.txt diff --git a/Documentation/devicetree/bindings/pci/tango-pcie.txt b/Documentation/devicetree/bindings/pci/tango-pcie.txt new file mode 100644 index 000000000000..244683836a79 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/tango-pcie.txt @@ -0,0 +1,29 @@ +Sigma Designs Tango PCIe controller + +Required properties: + +- compatible: "sigma,smp8759-pcie" +- reg: address/size of PCI configuration space, address/size of register area +- bus-range: defined by size of PCI configuration space +- device_type: "pci" +- #size-cells: <2> +- #address-cells: <3> +- msi-controller +- ranges: translation from system to bus addresses +- interrupts: spec for misc interrupts, spec for MSI + +Example: + + pcie@2e000 { + compatible = "sigma,smp8759-pcie"; + reg = <0x50000000 0x400000>, <0x2e000 0x100>; + bus-range = <0 3>; + device_type = "pci"; + #size-cells = <2>; + #address-cells = <3>; + msi-controller; + ranges = <0x02000000 0x0 0x00400000 0x50400000 0x0 0x3c00000>; + interrupts = + <54 IRQ_TYPE_LEVEL_HIGH>, /* misc interrupts */ + <55 IRQ_TYPE_LEVEL_HIGH>; /* MSI */ + }; -- 2.11.0