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: 9527133 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 B78016020B for ; Fri, 20 Jan 2017 00:14:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8EAE2867A for ; Fri, 20 Jan 2017 00:14:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BB742867D; Fri, 20 Jan 2017 00:14:22 +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=-0.5 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, RDNS_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (unknown [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 3CCC72867A for ; Fri, 20 Jan 2017 00:14:22 +0000 (UTC) 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 1cUMqO-0008TO-Rx; Fri, 20 Jan 2017 00:14:16 +0000 Received: from mail-pg0-f67.google.com ([74.125.83.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUMq6-000810-Q2 for linux-arm-kernel@lists.infradead.org; Fri, 20 Jan 2017 00:14:00 +0000 Received: by mail-pg0-f67.google.com with SMTP id 194so5332930pgd.0 for ; Thu, 19 Jan 2017 16:13:38 -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=Ubi7PBs1XntlUNfkCAfqUeHZYkbtVrzBXiJWbBFOGjSOEolG15qCY8dPnZt+ZKTyRg Mxn7HGVKEPPWHlKjlOaA0zxyM/yZdpBBMh78+M78x/sI5xFyUTfdcbyQW8Kg56AVm8kw 8SHVDgZHXO+jo4JlSe8dfuEXazbqCk2mOqRoqmnaf8N3dgYvoB17+tN0DKMnXAG/N/zi PBcgxCt3vY4cXm9DkEUhx/5nUxoaF19hsFQIvZmymkGBLz9CdS7W81yIXb1+TJuN/24Y J/oj6TA3FUbwgYyqGIe6Jf4OPXQb2lxCEUirG8J279FvQjdvtKPheI5ng+wPDG2S68cy 0n3A== X-Gm-Message-State: AIkVDXIOlsFLBGZb/qZNO3yQbkoPUSHK/UGvu7EvwZnV5FmnpIsmrD2TfZKDVUbAMAik3Q== 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_161358_879951_9517AAE6 X-CRM114-Status: GOOD ( 12.31 ) 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: Mark Rutland , devicetree@vger.kernel.org, Joshua Clayton , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Anatolij Gustschin , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 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>; + };