From patchwork Thu Oct 6 20:34:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 679064 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 3sqksQ4Gflz9s3s for ; Fri, 7 Oct 2016 07:34:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=FvuGWnrI; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934692AbcJFUed (ORCPT ); Thu, 6 Oct 2016 16:34:33 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34615 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933542AbcJFUe3 (ORCPT ); Thu, 6 Oct 2016 16:34:29 -0400 Received: by mail-pf0-f196.google.com with SMTP id 190so1633433pfv.1; Thu, 06 Oct 2016 13:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=t/wBWI7q581O1c4USR5oQREVbumwbk9tKbKyHcsrQLM=; b=FvuGWnrI/5xHqODFwv+NosJn1HpJszNQN2zfyJs9Qgl7RFD53QmdloQmzhVY5D5Eb1 kStfJefY7bSZA3P0QZFp1a9Ik8KUuQIW+cKxcQyVooiwcaffFYXJQllbRXoPH4M5m3ng AJmz3kYqJkDsFAuVJslXggy2tl1rma9Yhy2GruIgQXGODLtDFe61XuxIPNlG0C3ToEnD boX3h3oMN97TXZU84L8+jw82Yv15xcAcCgsIDrXyBwQINQdTzpZ30tKY4dm9YMwExa0D 7d+CNpSwaJzYl/xv8DEdGE0490cNZsm3YWGsefH1hXAIQONq2L18NHzldB1QuI+jr+9z C7xQ== 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:in-reply-to:references; bh=t/wBWI7q581O1c4USR5oQREVbumwbk9tKbKyHcsrQLM=; b=OXLOu3qFhN+EQ6EJOgLti4fSRs5mael3TJezt/v0Y+sagZz3Vc18ai3XktO07ElBAb /L/KILWbSeDlbiRMEamvfPmp9GYqtLLprUmMiEtU1/UQpSS+4TdOugpIjJ7sevIAwIA5 ZcGOPWYNusG0HP7TxxVyE/5MhIeYkALjyHh0EZ9Hxm0N8HXIajg4REQq3/po4MhCY3QS nLy/tHK5yox9qd0PoPxplOogUFd9vSupOdDcy3hqSecRz16p7yJmv6n0UqIwXkYHkRSI aqU3hiv1CwBHiHDqzRh9p/NQ0LRM7HU1yQyjhjtHHFspnDtaTiXm52DzX0+BV/v1PhCF 5O7g== X-Gm-Message-State: AA6/9RkFMToO+zNa0DWDOj/zK8YbP5yryHHB/Bg5mb1E8+4o3wvpBOg3krHSfPSwZSD1gQ== X-Received: by 10.98.59.211 with SMTP id w80mr22357027pfj.65.1475786068184; Thu, 06 Oct 2016 13:34:28 -0700 (PDT) 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 c9sm3095446pfc.79.2016.10.06.13.34.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Oct 2016 13:34:27 -0700 (PDT) From: Joshua Clayton To: Alan Tull , Moritz Fischer Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Fabio Estevam , Russell King , Joshua Clayton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] doc: dt: add cyclone-spi binding document Date: Thu, 6 Oct 2016 13:34:18 -0700 Message-Id: <8d89e70475e8e1c3ce5117a0367c8444c11c61e3.1475783742.git.stillcompiling@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <4b4432c04b4ea92a2af814e3d7866c33f2eb12ea.1475783742.git.stillcompiling@gmail.com> References: <4b4432c04b4ea92a2af814e3d7866c33f2eb12ea.1475783742.git.stillcompiling@gmail.com> In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Describe a cyclonespi devicetree entry, required features Signed-off-by: Joshua Clayton --- .../bindings/fpga/cyclone-spi-fpga-mgr.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/cyclone-spi-fpga-mgr.txt diff --git a/Documentation/devicetree/bindings/fpga/cyclone-spi-fpga-mgr.txt b/Documentation/devicetree/bindings/fpga/cyclone-spi-fpga-mgr.txt new file mode 100644 index 0000000..8de34db --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/cyclone-spi-fpga-mgr.txt @@ -0,0 +1,23 @@ +Altera SOCFPGA 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,cyclonespi-fpga-mgr" +- reg : spi slave id of the fpga +- reset-gpio : reset pin (referred to as nCONFIG in the cyclone manual) +- status-gpio : status pin (referred to as nSTATUS in the cyclone manual) + +Example: + fpga_spi: evi-fpga-spi@0 { + compatible = "altr,cyclonespi-fpga-mgr"; + spi-max-frequency = <20000000>; + reg = <0>; + reset-gpio = <&gpio4 9 GPIO_ACTIVE_HIGH>; + status-gpio = <&gpio4 11 GPIO_ACTIVE_HIGH>; + };