From patchwork Fri Jan 20 00:12:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9527141 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 F34FA6020B for ; Fri, 20 Jan 2017 00:19:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAE172867A for ; Fri, 20 Jan 2017 00:19:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB3902867C; Fri, 20 Jan 2017 00:19:14 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D6E82867A for ; Fri, 20 Jan 2017 00:19:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078AbdATATN (ORCPT ); Thu, 19 Jan 2017 19:19:13 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34690 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775AbdATATM (ORCPT ); Thu, 19 Jan 2017 19:19:12 -0500 Received: by mail-pg0-f68.google.com with SMTP id t6so5329065pgt.1; Thu, 19 Jan 2017 16:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=LaxRjSTL69ffzQj/B200ySICIXGxF6rlKGCs47mMeQw=; b=i3QppaH2HnE4ZyusJWONb9EuRASLB3XHZ3Uo/9S8saRxS4C/zE0ghsJ+sdvo3w6nqm jAS1aqiNfBY04rZcoiINexEWIr7EioNTWX+gxJNfTWmiD9RYSoqGMSRPW/frUdu4ebG3 zlUlWgGLA2miS0LZxanR9bLo8LjzwmujEOPkFvxdMY8nGYga2XuojWmhpfcnSHBD/BWG xEYAkHJjQtFr7oUXeEGrKyEm3J0ZtRCJxpDd691Jj5fKflX8FQuIhclvZnJj0mH+CNCy 779EzJnq9JVtObM9OpCvSjYCqEZqibbi9iXyF25pqLmnDYX0ENQG+QLGz+rhGtFAiJkB zdGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=LaxRjSTL69ffzQj/B200ySICIXGxF6rlKGCs47mMeQw=; b=URUIiVz6JBJJgt0PHlhy7c87RSdDhVv60pW366PS0LELvMEoR2upEdq3OHgllwq9Sd 0HlTYllUrRbASjIi9UGLh+hKlUGwMb68J97ntim9J7+YBQbN43kfMuyhYWbs0wVx5oH9 R131Kj+HNWAm2dhif1aqi0C59EO47Ca/MI3zS5/zcDAnqLv8yOJJW8FlNcDUI/tKY+rb gEcwXueXLla4njrcOLE+IlhSzBrcaleKfxLcSPI32MCVpmm7J4YO22GfT/cwiwEvr2W/ j/4X+hlJFMvAgRqNxwtdQDEFC4uxPSsr27+n1dgb+AgnYMz6I44i64eYXdWYbtq4Thz3 i+EA== X-Gm-Message-State: AIkVDXIpHjKZpISWW7jVd+0LNhHScXsqqiBJ4ukGPvwr/diYUNyfezIWWpmpO/6Vx5yFZA== X-Received: by 10.98.152.79 with SMTP id q76mr12989759pfd.147.1484871158021; Thu, 19 Jan 2017 16:12:38 -0800 (PST) Received: from jclayton-pc.columbia.uniwest.com (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by smtp.gmail.com with ESMTPSA id i10sm11438465pgd.37.2017.01.19.16.12.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 16:12:36 -0800 (PST) From: Joshua Clayton To: Alan Tull , Moritz Fischer , Russell King , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Mark Rutland , Rob Herring , Anatolij Gustschin , Joshua Clayton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fpga@vger.kernel.org Subject: [PATCH v7 1/3] doc: dt: add cyclone-ps-spi binding document Date: Thu, 19 Jan 2017 16:12:27 -0800 Message-Id: <6b7883678d1e343d103302c77863bf69ca836637.1484869881.git.stillcompiling@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Describe a cyclone-ps-spi devicetree entry, required features Signed-off-by: Joshua Clayton Acked-by: Rob Herring --- .../bindings/fpga/altera-passive-serial.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/altera-passive-serial.txt diff --git a/Documentation/devicetree/bindings/fpga/altera-passive-serial.txt b/Documentation/devicetree/bindings/fpga/altera-passive-serial.txt new file mode 100644 index 0000000..b5f0bb5 --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/altera-passive-serial.txt @@ -0,0 +1,25 @@ +Altera Cyclone Passive Serial SPI FPGA Manager + +Altera Cyclone FPGAs support a method of loading the bitstream over what is +referred to as "passive serial". +The passive serial link is not technically spi, and might require extra +circuits in order to play nicely with other spi slaves on the same bus. + +See https://www.altera.com/literature/hb/cyc/cyc_c51013.pdf + +Required properties: +- compatible: should contain "altr,fpga-passive-serial" +- reg: spi chip select of the FPGA +- nstat-gpios: status pin (referred to as nSTATUS in the cyclone manual) +- nconfig-gpios: config pin (referred to as nCONFIG in the cyclone manual) +- confd-gpios: confd pin (referred to as CONF_DONE in the cyclone manual) + +Example: + fpga_spi: evi-fpga-spi@0 { + compatible = "altr,cyclone-ps-spi-fpga-mgr"; + spi-max-frequency = <20000000>; + reg = <0>; + nconfig-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; + nstat-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; + confd-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; + };