From patchwork Fri Jun 2 20:30:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9763395 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 19318602BF for ; Fri, 2 Jun 2017 20:31:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B56E205A4 for ; Fri, 2 Jun 2017 20:31:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F413E26247; Fri, 2 Jun 2017 20:31:40 +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.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham 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 8347A205A4 for ; Fri, 2 Jun 2017 20:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=eRLNcQaLTIAb8mYxhBpm1kADiyiYmRDJ6B9mUlwvWfU=; b=GnRBTMGy3XPO4GobzFuCj4qi5z wF2G8FBbTdoYLkvjeUdLyRoaZvmMI+ZFjDlB7Vy6puVbtuY3vwB26DMJgFuw2YPqFikTVavzciN1/ we5J8Rpww7LgI18MW7aEoN8QE7wmVjvcNXpHwmtjnXAg3lCyuO+1kJWixgWPCl8Bk8K82VJTlNQs5 KL+luup0qkMbq18dsXmYAfpVaDmfxKXftuI9R1XSC34Mx1B3GKyNIQ7H19JgL5v3xBz9pbKoHGwtv h7JdlTJqsRCX3MY7NSM98U1E4KnJO9zPjmku6fFwxs38vQmtwqrjkktawE4+tT0r5tfTad5z1Mhwq 4BZKb6+g==; 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 1dGtEQ-0007oE-UA; Fri, 02 Jun 2017 20:31:38 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGtEI-0007bS-8d for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 20:31:32 +0000 Received: by mail-pf0-x241.google.com with SMTP id f27so13707332pfe.0 for ; Fri, 02 Jun 2017 13:31:10 -0700 (PDT) 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=OP2rSAg5Qr1rhlZll0Exytk2+XGEQYEXRCQ2Bb5FMHY=; b=hDc6Mp5FPk6NKHp7My9N3Raawk+4lXiWVvJ3JCC7FaalX+cFVBq0CgE9zT3I1Os8X9 LJSzlLU7SMxGOtGHM6ccwGR5+g+wvudal5MDbpASljc2z3Naef3CR/dmPHN1i6saQ1kA rxJffmxOSZ5+7MkDnK76Z5Nn+mD79w7BA8BxeiC1cR206UynLG6DbWoKbU1PajJReJBQ mPAJWdQDC0y8bC/8Xfcpw+kKdkJKC64s6zOByoe4+ym2j29JA0wX9+ckh1PB5sF8yH9k +xRLscc4C+nWkvVGsyFw5sI7wtKhJRKD3lZOU5wNoq2GUa2S2p/ZwaP+H1re5yJPGpot UR/A== 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=OP2rSAg5Qr1rhlZll0Exytk2+XGEQYEXRCQ2Bb5FMHY=; b=W/UDHE1cHxgnqxOtRG75qw0x2VXzaIkpKOP6Y8Uhlr4hRvpzpMnuBvZ1JK9ZtO4JBq iTWoVHEVOS1LaoOEQT1jZOCl0ntFIyqAfGE2AKBcnmX3pj/edelZ0d5pcVAUgMv4vP2H 7sCWSDmC7EoAttjLfN/4HhqZIsG6/YTWMDiMwN7FDSaAGYxQ2F2pnoVW/h6+0tCXjHm/ +pXpfo7WzSpvXprIMGw/8fQD4wVhCLKQLki8CWeS0bpBg81irVz9r5LkkBu75Rnpsgo1 pRU7s2YEViloxobhYeNDtEHHf5zNnYt+AuLxPXErZ+Aw/tCM9teZYi1apzmRbwWqR+sJ pMyw== X-Gm-Message-State: AODbwcBFsjAC4W11dPxgx/u6voNj89ciMg/vhRgbV1lhBiki7FjVRca1 idjjmjC1srC4CA== X-Received: by 10.99.63.140 with SMTP id m134mr4346881pga.170.1496435469478; Fri, 02 Jun 2017 13:31:09 -0700 (PDT) Received: from localhost.localdomain (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by smtp.gmail.com with ESMTPSA id c4sm6967218pfg.31.2017.06.02.13.31.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 13:31:07 -0700 (PDT) From: Joshua Clayton To: Alan Tull , Moritz Fischer , Anatolij Gustschin , Bastian Stender , Shawn Guo , Joshua Clayton Subject: [PATCH v12 2/6] doc: dt: document altera-passive-serial binding Date: Fri, 2 Jun 2017 13:30:48 -0700 Message-Id: <4945d90535e701e4e0207c08a7543a7623b94aeb.1496434383.git.stillcompiling@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <684ea151ba9aa2c6555a299daf56552ddc11f596.1496434383.git.stillcompiling@gmail.com> References: <684ea151ba9aa2c6555a299daf56552ddc11f596.1496434383.git.stillcompiling@gmail.com> In-Reply-To: <20170525172911.11467-1-stillcompiling@gmail.com> References: <20170525172911.11467-1-stillcompiling@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_133130_380725_00164E90 X-CRM114-Status: GOOD ( 12.81 ) 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, linux-fpga@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Fabio Estevam , 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 an altera-passive-serial devicetree entry, required features Signed-off-by: Joshua Clayton Acked-by: Rob Herring Signed-off-by: Alan Tull --- .../bindings/fpga/altera-passive-serial.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 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 000000000000..48478bc07e29 --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/altera-passive-serial.txt @@ -0,0 +1,29 @@ +Altera Passive Serial SPI FPGA Manager + +Altera 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: Must be one of the following: + "altr,fpga-passive-serial", + "altr,fpga-arria10-passive-serial" +- reg: SPI chip select of the FPGA +- nconfig-gpios: config pin (referred to as nCONFIG in the manual) +- nstat-gpios: status pin (referred to as nSTATUS in the manual) + +Optional properties: +- confd-gpios: confd pin (referred to as CONF_DONE in the manual) + +Example: + fpga: fpga@0 { + compatible = "altr,fpga-passive-serial"; + 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>; + };