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: 9478649 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 22DBB607EE for ; Fri, 16 Dec 2016 23:18:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13DFF285DC for ; Fri, 16 Dec 2016 23:18:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 088102866D; Fri, 16 Dec 2016 23:18:30 +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 6ACC0285DC for ; Fri, 16 Dec 2016 23:18:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762266AbcLPXSU (ORCPT ); Fri, 16 Dec 2016 18:18:20 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34430 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761959AbcLPXSL (ORCPT ); Fri, 16 Dec 2016 18:18:11 -0500 Received: by mail-pg0-f65.google.com with SMTP id b1so1007250pgc.1; Fri, 16 Dec 2016 15:18:11 -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=YLlHLNSns/sRhJl2g8s+769QQJiM9WSUUumvF7uc3j7QXj398JDVnkelbM5yBKnCwJ BIJgX8CwMoJQH7GWL3rnGti/uPU529WmCmvvcpslZQ4bSSGpFU0eY1Gq+9Meoe2IUrfP Q0ghsCvRVCt7nQz6Xt/vlLEmR9wnXAhIzvNmAbATezjsHdNxu90D8VKfxfvLurf1M/ZI iOH6ViwCvaEZP5SNaMJxHhEk4G6iFkHvD23JkrC19pAQMRabQplpT0qZbbJL+gqLlqCc oXMg/8BLQxRkt+xAYPoSCRiK7m4LRda7t2cY1no39ehhjxH+co0V8r/HQWQ5qKNuKDkE Hm5Q== X-Gm-Message-State: AKaTC00D6cWUJ+j1WSuhrFm7AXt+fAkppqb2oVuKeAPInQEJjD5sTtO5BKJjIj6gQWEMfQ== 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 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 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: 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 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>; + };