From patchwork Thu Nov 13 03:08:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 5293621 Return-Path: X-Original-To: patchwork-linux-spi@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 6BFF99F2ED for ; Thu, 13 Nov 2014 03:16:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91F1D201EC for ; Thu, 13 Nov 2014 03:16:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A51F0201E4 for ; Thu, 13 Nov 2014 03:16:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753626AbaKMDQH (ORCPT ); Wed, 12 Nov 2014 22:16:07 -0500 Received: from mail-yh0-f74.google.com ([209.85.213.74]:54235 "EHLO mail-yh0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753561AbaKMDQG (ORCPT ); Wed, 12 Nov 2014 22:16:06 -0500 Received: by mail-yh0-f74.google.com with SMTP id a41so272461yho.1 for ; Wed, 12 Nov 2014 19:16:05 -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=zDf+sAWQt5K+kyZt8kdsPMGmJefvePvJU3twecQPVvM=; b=WeF4LLKO+R7fXqrz1ggzMy4ZlDNeIPZyRHBPOl1EjNaF5VsA4vq9JEeOFwjSZ9IUZK xmXL/IcBGLbcp8yYz2iGePjRLdmGT8gEpl1uavz6FUc3DYqm4flNL348is2ot5VUNVmg I4klyqNtFTrfVpfA336EBecCCHnNL00HCR3SUGKKfeA4yoqiH8hfPsrn+yfeTjkp7EjW uvUodvA8FFXgvb12D8ha0vLa/gMbSEiYWFe4nlxz7OYJMFLJsL0sGnYbTwUbt73oB0KQ ksnRd17Uf+hlCJFM8Dv5NYcrD91vO2/9Hqq7NtfiU53Gkwj3WHzZg7xj+DGPbs5oEdvR 7Ljg== X-Gm-Message-State: ALoCoQlKUD3dewYX9g8zBD6fYHpPkBw08Ok46WvhbetcFM2uw1Ph6NRtQFt4mduQ2VvHPQtRJdV9 X-Received: by 10.236.8.71 with SMTP id 47mr9800046yhq.3.1415848105400; Wed, 12 Nov 2014 19:08:25 -0800 (PST) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id e24si1017051yhe.3.2014.11.12.19.08.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Nov 2014 19:08:25 -0800 (PST) Received: from abrestic.mtv.corp.google.com ([172.22.65.70]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id P2p9WRDE.1; Wed, 12 Nov 2014 19:08:25 -0800 Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id EF557220C46; Wed, 12 Nov 2014 19:08:23 -0800 (PST) From: Andrew Bresticker To: Mark Brown Cc: Andrew Bresticker , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , James Hartley , Ezequiel Garcia , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH V2 1/2] spi: Add binding document for IMG SPFI controller Date: Wed, 12 Nov 2014 19:08:15 -0800 Message-Id: <1415848096-20079-2-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1415848096-20079-1-git-send-email-abrestic@chromium.org> References: <1415848096-20079-1-git-send-email-abrestic@chromium.org> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 The Synchronous Peripheral Flash Interface (SPFI) controller found on IMG SoCs supports single, dual, and (optionally) quad mode SPI transfers. Signed-off-by: Andrew Bresticker --- Changes from v1: - spi-img.txt -> spi-img-spfi.txt - fixed commit subject --- .../devicetree/bindings/spi/spi-img-spfi.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-img-spfi.txt diff --git a/Documentation/devicetree/bindings/spi/spi-img-spfi.txt b/Documentation/devicetree/bindings/spi/spi-img-spfi.txt new file mode 100644 index 0000000..c7dd50f --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-img-spfi.txt @@ -0,0 +1,37 @@ +IMG Synchronous Peripheral Flash Interface (SPFI) controller + +Required properties: +- compatible: Must be "img,spfi". +- reg: Must contain the base address and length of the SPFI registers. +- interrupts: Must contain the SPFI interrupt. +- clocks: Must contain an entry for each entry in clock-names. + See ../clock/clock-bindings.txt for details. +- clock-names: Must include the following entries: + - spfi: SPI operating clock + - sys: SPI system interface clock +- dmas: Must contain an entry for each entry in dma-names. + See ../dma/dma.txt for details. +- dma-names: Must include the following entries: + - rx + - tx +- #address-cells: Must be 1. +- #size-cells: Must be 0. + +Optional properties: +- img,supports-quad-mode: Should be set if the interface supports quad mode + SPI transfers. + +Example: + +spi@18100f00 { + compatible = "img,spfi"; + reg = <0x18100f00 0x100>; + interrupts = ; + clocks = <&spi_clk>, <&system_clk>; + clock-names = "spfi", "sys"; + dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>; + dma-names = "rx", "tx"; + + #address-cells = <1>; + #size-cells = <0>; +};