From patchwork Fri Dec 16 23:17:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9478671 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 C6CB8607EE for ; Fri, 16 Dec 2016 23:21:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6E98285DC for ; Fri, 16 Dec 2016 23:21:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAEE528658; Fri, 16 Dec 2016 23:21:27 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4B73B285DC for ; Fri, 16 Dec 2016 23:21:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cI1mr-0006FY-Uq; Fri, 16 Dec 2016 23:19:37 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cI1ll-00051m-V3 for linux-arm-kernel@lists.infradead.org; Fri, 16 Dec 2016 23:18:33 +0000 Received: by mail-pg0-x244.google.com with SMTP id 3so11059231pgd.0 for ; Fri, 16 Dec 2016 15:18:10 -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=T6R2oSWmddYFEMAvyEE6J/JFHowNSIHJnC5cSSbZqYY=; b=JUXTNujOLFSf7FkLSQu8ss/TlbhZjQMlElO/dOM6zIKVF69OpdEnUXpYJtIFTvkJI+ dpblaOjcgi12bOnxHWJqlYKtNps9zlxUkM/gvaaMXE3NjdmI1qw8SrM1S0OkmrnfK+oj lJtDvJ/zeMcNngdzzbBibV4MTIIDxglp37j8MzS7gZEW8Du6Oya0ETNmOPB+YufJt+NW l+mLp2vrAEviXxdWVDeA7ddOtj4/qX+hHcmHRVpwZU9IpZxojmplGZQRaUv1/6/H/ktj ezlKJNKXe4EKrR+Mci6M2E3AbBiiojSqD42pPRWG1gjcVU2EM7/AkdcLD5WW8iZ2nKGY iLtw== 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=T6R2oSWmddYFEMAvyEE6J/JFHowNSIHJnC5cSSbZqYY=; b=BanaM8PkkwTIt6iPCfnXV/FkXH/d5EwdoDj0B91y27ue2KL8VskxvP5YXJ0c2i98+k skvHwtGAiWbMl0nnpxLqTM29pvoqhDJVdr+m93HHfrK+SNcHmUKMFTwQQ7oNhf9GV6xX AYZRmQP4Y/TbGqnlOeAazO6nIphrC63pL+RZHuGm3mIlvpMpxZe5nZy7OajaqPynuzzV xEKnLY4JXbZz2EpvKOFdjnA6riL0OJ7FOLKouHk1T0wXnP5PvdbaT6Wnei+uImcEaMmH pxEy69sjeq8wvm0leascCOpNI88ufnsQ8JQ1AlR80y6anMIdJfPFdBMxb0Vcn2aBrFCc Dlsg== X-Gm-Message-State: AKaTC01O9g4zplUmGipltPAtS0QkKJm+78M1UaxjAcXaMt2QXwEp9zITSDc97vo04Qsrqw== X-Received: by 10.99.120.13 with SMTP id t13mr9761241pgc.17.1481930289920; Fri, 16 Dec 2016 15:18:09 -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 e11sm14280165pgp.10.2016.12.16.15.18.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 15:18:08 -0800 (PST) From: Joshua Clayton To: Alan Tull , Moritz Fischer , Russell King , Catalin Marinas , Will Deacon , Shawn Guo , Sascha Hauer , Fabio Estevam Subject: [PATCH v6 3/5] doc: dt: add cyclone-ps-spi binding document Date: Fri, 16 Dec 2016 15:17:52 -0800 Message-Id: <526ee1b336cf2ab9473041762cf55018b6156dd4.1481918884.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-20161216_151830_251762_C62F2499 X-CRM114-Status: GOOD ( 12.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 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 Acked-by: Alan Tull --- .../bindings/fpga/cyclone-ps-spi-fpga-mgr.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/cyclone-ps-spi-fpga-mgr.txt diff --git a/Documentation/devicetree/bindings/fpga/cyclone-ps-spi-fpga-mgr.txt b/Documentation/devicetree/bindings/fpga/cyclone-ps-spi-fpga-mgr.txt new file mode 100644 index 0000000..3f515c7 --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/cyclone-ps-spi-fpga-mgr.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,cyclone-ps-spi-fpga-mgr" +- reg : spi slave id of the fpga +- config-gpios : config pin (referred to as nCONFIG in the cyclone manual) +- status-gpios : status pin (referred to as nSTATUS in the cyclone manual) + +both gpios pins are normally active low open drain. + +Example: + fpga_spi: evi-fpga-spi@0 { + compatible = "altr,cyclone-ps-spi-fpga-mgr"; + spi-max-frequency = <20000000>; + reg = <0>; + config-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; + status-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; + };