From patchwork Mon Jun 26 16:13:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: matthew.gerlach@linux.intel.com X-Patchwork-Id: 780775 X-Patchwork-Delegate: cyrille.pitchen@atmel.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wxDdj17fCz9s9Y for ; Tue, 27 Jun 2017 02:14:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YRgB+/oY"; dkim-atps=neutral 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=yOCWoykCJl0wfPckE7fcOpwo0yAoETtzAwS7Z1QDG4M=; b=YRgB+/oYoswexOonxQju8aabN1 EhTwg47xLe3m7dd2HlH5xjknqyVlXAIDU/DyUxeGEicrcRib+NkXARWhVMDJ2/kTWJL7xXFNz29Fw pWoxQS1WokIjJ/VjSV6wizIWbDwog8LYpmzl8AySvFmPbGS9J7Io9UWq73vif8wbk03BNZMDdoKv5 zAP1ukEXAR1d6Q3gioaZOxF1bYRKc+3YYpHWDHxAO3IQD6RIwVINxjqIV8BNPvPr+8W7v9i3+gqCP NYL7WR6yBV6XIUOp2GnN5PBZOaPeh01B1D39nJXtTkEQWtx2q93dgNHTm/zS4Uh88Nsi7LgqaOHYG oo0ihBDA==; 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 1dPWeQ-0006C7-OO; Mon, 26 Jun 2017 16:14:10 +0000 Received: from mga07.intel.com ([134.134.136.100]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPWeN-0006AZ-MR for linux-mtd@lists.infradead.org; Mon, 26 Jun 2017 16:14:09 +0000 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP; 26 Jun 2017 09:13:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.39,396,1493708400"; d="scan'208"; a="1164793484" Received: from mgerlach-mobl.amr.corp.intel.com (HELO localhost.localdomain) ([10.254.235.156]) by fmsmga001.fm.intel.com with ESMTP; 26 Jun 2017 09:13:46 -0700 From: matthew.gerlach@linux.intel.com To: vndao@altera.com, dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@free-electrons.com, marek.vasut@gmail.com, richard@nod.at, cyrille.pitchen@wedev4u.fr, robh+dt@kernel.org, mark.rutland@arm.com, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, davem@davemloft.net, mchehab@kernel.org Subject: [PATCH 1/3] ARM: dts: Bindings for Altera Quadspi Controller Version 2 Date: Mon, 26 Jun 2017 09:13:37 -0700 Message-Id: <1498493619-4633-2-git-send-email-matthew.gerlach@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498493619-4633-1-git-send-email-matthew.gerlach@linux.intel.com> References: <1498493619-4633-1-git-send-email-matthew.gerlach@linux.intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170626_091407_801477_0E7D00A5 X-CRM114-Status: GOOD ( 14.18 ) X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [134.134.136.100 listed in list.dnswl.org] -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matthew Gerlach MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Matthew Gerlach Device Tree bindings for Version 2 of the Altera Quadspi Controller that can be optionally paired with a windowed bridge. Signed-off-by: Matthew Gerlach --- .../devicetree/bindings/mtd/altera-quadspi-v2.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/altera-quadspi-v2.txt diff --git a/Documentation/devicetree/bindings/mtd/altera-quadspi-v2.txt b/Documentation/devicetree/bindings/mtd/altera-quadspi-v2.txt new file mode 100644 index 0000000..8ba63d7 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/altera-quadspi-v2.txt @@ -0,0 +1,37 @@ +* Altera Quad SPI Controller Version 2 + +Required properties: +- compatible : Should be "altr,quadspi-v2". +- reg : Contains at least two entries, and possibly three entries, each of + which is a tuple consisting of a physical address and length. +- reg-names : Should contain the names "avl_csr" and "avl_mem" corresponding + to the control and status registers and qspi memory, respectively. + + +The Altera Quad SPI Controller Version 2 can be paired with a windowed bridge +in order to reduce the footprint of the memory interface. When a windowed +bridge is used, reads and writes of data must be 32 bits wide. + +Optional properties: +- reg-names : Should contain the name "avl_window", if the windowed bridge + is used. This name corresponds to the register space that + controls the window. +- window-size : The size of the window which must be an even power of 2. +- read-bit-reverse : A boolean indicating the data read from the flash should + be bit reversed on a byte by byte basis before being + delivered to the MTD layer. +- write-bit-reverse : A boolean indicating the data written to the flash should + be bit reversed on a byte by byte basis. + +Example: + +qspi: spi@a0001000 { + compatible = "altr,quadspi-v2"; + reg = <0xa0001000 0x40>, <0xb0000000 0x4000000>; + reg-names = "avl_csr", "avl_mem"; + + flash@0 { + reg = <0>; + label = "FPGA Image"; + }; +};