From patchwork Mon Jan 23 22:51:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9533691 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 896C66046A for ; Mon, 23 Jan 2017 22:53:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 734A5283F3 for ; Mon, 23 Jan 2017 22:53:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66BD92793A; Mon, 23 Jan 2017 22:53:10 +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=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [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 7EBE227CAF for ; Mon, 23 Jan 2017 22:53:09 +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 1cVnU4-0003LO-Bb; Mon, 23 Jan 2017 22:53:08 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVnTW-00033J-DQ for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 22:52:36 +0000 Received: by mail-pf0-f195.google.com with SMTP id e4so10754947pfg.0 for ; Mon, 23 Jan 2017 14:52:14 -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=1b0Wrd1qd1g8Zvlm9J1UT9qOLZSzVJz+RgTuSWXV+js=; b=VjNrVOGzjvM8dgEnK7acm517u+VDI0zKkc+h7efxIxkN2a9y2JLb90NS4b3+HWrcLB /VUgD6A36e9HtSLhAVhj7hhYAb/rDtwgcQlZxFA+5vBw1j0o6YjwEcz02WIWoQXMSdnC A5hIasVIi6MsRUAQhusxZQHyz0ZCfF4opVMnrG3OOga2LKok9ypX5HHmO0OJtC8LgQ/M G6SYDy5kTxOdPnzarsXxGTU0Y9bKaYIZfZKvyNqjjsXnoayruon8DgKjy1vzvI4s/YWE 5+4WV2S23sqTfSTDC4GPlGYRExpBymwSOccAGVUbZW8DsjCta+uHrUwOizB2rYfy6rxX DbDA== 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=1b0Wrd1qd1g8Zvlm9J1UT9qOLZSzVJz+RgTuSWXV+js=; b=gUBE7Ls1H2RAE6wzSX80Qw9qZ7ZG1TXq73vtj/y0Tl3JwUmC0q+CXW7eE2htLrmZHk oss139cp4z4n+6QbbmmvSOl/DMuud+atoTIA6EbP47zD69HvzjiydHuAMpNfb0oMRExk 8XWceBebMtlBk9U1b5Pw/OWY3TPIvQLx3yBHRhA8cFVapWd5WEedygNymqhmni+sI1nM rxRYj5UIOhLd6fMwcJAuYUgpPg2rmlu5V1aRgst6oKqHW8ugQCVI24waQF5qvnunlcEH DbrDMiofUfCgUtPMFc6CaYUvzIdPcRYw+vwRcqcSJdUODYiPznoRbL1xB8Q2fKDkuQm0 D6dQ== X-Gm-Message-State: AIkVDXI0bzdTp7jH1fcrphG6lw2YXapBF9N88zTa7cu3Wv0Pj3p1lihRhYV13tQ4HI8PZg== X-Received: by 10.99.56.94 with SMTP id h30mr35672690pgn.23.1485211873506; Mon, 23 Jan 2017 14:51:13 -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 d69sm39353003pfd.11.2017.01.23.14.51.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 14:51:12 -0800 (PST) From: Joshua Clayton To: Alan Tull , Moritz Fischer , Russell King , Shawn Guo , Sascha Hauer , Fabio Estevam Subject: [PATCH v8 1/3] doc: dt: add cyclone-ps-spi binding document Date: Mon, 23 Jan 2017 14:51:04 -0800 Message-Id: <6b7883678d1e343d103302c77863bf69ca836637.1485211400.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-20170123_145234_484997_E8DF0146 X-CRM114-Status: GOOD ( 12.14 ) 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>; + };