From patchwork Wed Nov 12 21:37:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 410120 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 88D6F1400AB for ; Thu, 13 Nov 2014 08:38:08 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753309AbaKLViA (ORCPT ); Wed, 12 Nov 2014 16:38:00 -0500 Received: from mail-pa0-f74.google.com ([209.85.220.74]:53766 "EHLO mail-pa0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753474AbaKLVh6 (ORCPT ); Wed, 12 Nov 2014 16:37:58 -0500 Received: by mail-pa0-f74.google.com with SMTP id kx10so2119352pab.3 for ; Wed, 12 Nov 2014 13:37:58 -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=w0KRBjlCpihdb2Op2U4Z9Gs48/zAU5ubDvJD1RjNUo0=; b=Go6K53OZ2YnYxz8k1BdN1d2GXkU5ZAbLex8FRek0YcyucQsRXwnYFUbtrj58VGoVry 4QCTUIx1zfHB06j5WsuSS7gh6/7ZxIuZ/2kNHOw7HiMKqPuWbokVmBf+/52lveQExc2H 2kJMNJaxThd0NBaiZGfb/YzPwM4pFhforzxvfyWPg36DZIpx8NtFmbCUmmuB5BJP/4f7 EE2xIIpyRFA8H3s5Z5JKLh9Qs07KA5Cx+d6wJXLgPJHM9kpcqZA+z8yOJDTk3TV918tt ZJCNPjPKY339jvvkb13UnHqb66Ad/Qpr+v/wsy3uBFqYhU9v1iq7Yz8tSA1F/+8mzZ6G Lb2A== X-Gm-Message-State: ALoCoQnUG12mb8+plEfjS8KxJJvZRZC3Rl3pTq3DqfvPnPlGQJhvPluk9JVmfceqbAg2ROmqkfJh X-Received: by 10.66.219.231 with SMTP id pr7mr38820921pac.47.1415828278070; Wed, 12 Nov 2014 13:37:58 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id e24si977189yhe.3.2014.11.12.13.37.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Nov 2014 13:37:58 -0800 (PST) Received: from abrestic.mtv.corp.google.com ([172.22.65.70]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id mSnCG7My.1; Wed, 12 Nov 2014 13:37:57 -0800 Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id 9AB09220BC1; Wed, 12 Nov 2014 13:37:56 -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 1/2] of: Add binding document for IMG SPFI controller Date: Wed, 12 Nov 2014 13:37:53 -0800 Message-Id: <1415828274-24727-2-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1415828274-24727-1-git-send-email-abrestic@chromium.org> References: <1415828274-24727-1-git-send-email-abrestic@chromium.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- Documentation/devicetree/bindings/spi/spi-img.txt | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-img.txt diff --git a/Documentation/devicetree/bindings/spi/spi-img.txt b/Documentation/devicetree/bindings/spi/spi-img.txt new file mode 100644 index 0000000..c7dd50f --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-img.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>; +};