From patchwork Tue Jun 13 13:51:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Gonzalez X-Patchwork-Id: 9783941 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C74EB602DC for ; Tue, 13 Jun 2017 13:56:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5A4F284FC for ; Tue, 13 Jun 2017 13:56:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8C7E286F2; Tue, 13 Jun 2017 13:56:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8F982284FC for ; Tue, 13 Jun 2017 13:56:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pcYDm0iGZ18ihqAL2LirxDlNFl3Mh2Sj56HJNQLSkZI=; b=ndg3VD1WAm8+J5 etjqFgnkeYY68frxKe1FvA1e5v7OM8v0pevGI2qFtmQ5nlvumzN6xKVtSaM3dJWoThugh+x0O7pR7 opqe2ObZGHnyTtY1wWxC/pd75qjBvoIE98c0d9UNCEwufUBUwi2Yh9FIrSsU75vkhpaClNkl2WSb6 +elSRksSgqIAMOilqbYnFZNN9h9eHRF1P2cQ+pvTLXA4f+KQTvfMgzZ/K3fx64hK6klM1zlTrBbZT WOo/rAckEw9seOJDg1f4v8zDbkNGvpfMHK0sJHX9eARrp6G0VDGBErCZGdGtIxdqrpKO7gL0SFL+b dt9ZbOzO0req3YdK/XXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dKmJS-00079C-3a; Tue, 13 Jun 2017 13:56:54 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKmJQ-00077K-4j for linux-arm-kernel@bombadil.infradead.org; Tue, 13 Jun 2017 13:56:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=d065mp9uwWXkG4LdE93DnoWyfDh7kbOSfZfd02Q91qE=; b=cXNW5tmikvEquWvU1Ik3tJX4aE fX2AGz06fgp8pI8iX3wMVQgzOcvV1GuReiIVl84v+AbdeAjMiWExwvAQx3ce26xDWO38ckvtKU+eK kOMPjzY7tsxNKcQX0iVKCn7/iuNZadaQhACSncy7MuScNmzEio6jUVC4dwaMlfmrIp3CurDwUJ9nO SOyXl6MZTJ95KHibkC0yTMxyf6AS9KzeAbh9R+GwZQCpfLq6eX6/7WOfGDYoXrW5KPz3qLgb0bdXv kZk3cGIdyhWRdQt/Q14cYeG0Tl0WJIi8tqm/rz0iuTYbfxtL15W6b3FuVt1q0VkIAwc1pvSA99V8N neLNf3Kg==; Received: from us-smtp-delivery-107.mimecast.com ([63.128.21.107]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKmEn-0001UH-Da for linux-arm-kernel@lists.infradead.org; Tue, 13 Jun 2017 13:52:07 +0000 Received: from CPH-EX1.SDESIGNS.COM (195-215-56-170-static.dk.customer.tdc.net [195.215.56.170]) (Using TLS) by us-smtp-1.mimecast.com with ESMTP id us-mta-124-TfgdFdrdPsKPrYptQGOfNw-1; Tue, 13 Jun 2017 09:51:37 -0400 Received: from [172.27.0.114] (172.27.0.114) by CPH-EX1.sdesigns.com (192.168.10.36) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 13 Jun 2017 15:51:33 +0200 Subject: [PATCH v6 1/3] PCI: Add DT binding for tango PCIe controller To: Rob Herring 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170613_145205_701482_3156BC70 X-CRM114-Status: GOOD ( 11.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: DT , Lorenzo Pieralisi , Mason , Marc Zyngier , linux-pci , Liviu Dudau , LKML , David Laight , Bjorn Helgaas , Thomas Gleixner , Robin Murphy , Linux ARM Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Binding for the Sigma Designs SMP8759 SoC. Signed-off-by: Marc Gonzalez Acked-by: Rob Herring --- 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 */ + };