From patchwork Wed Dec 7 21:04:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9465235 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 7E4F56022E for ; Wed, 7 Dec 2016 21:07:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 747C028575 for ; Wed, 7 Dec 2016 21:07:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67A3A28577; Wed, 7 Dec 2016 21:07:38 +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 EEC1B28575 for ; Wed, 7 Dec 2016 21:07:37 +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 1cEjPo-0004S2-1X; Wed, 07 Dec 2016 21:06:12 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEjOx-0002bz-FS for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2016 21:05:21 +0000 Received: by mail-pf0-x243.google.com with SMTP id y68so21084994pfb.1 for ; Wed, 07 Dec 2016 13:04:58 -0800 (PST) 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=T6R2oSWmddYFEMAvyEE6J/JFHowNSIHJnC5cSSbZqYY=; b=AceOysOG4cfYkJuwv0SGNuvlH7Qa1fQ20Z4eVitPYlWknnuA5Lf5XCyuwrosh2sde7 Zk1iY2zYMCvaOr8LDnUOZx/mcACn1Y3CS3f/iQ3NbEBz0Sbgae7Qx5hOxi3x5SFEozO1 I5bWnzbpAwUC/TOzL8J5DlfZIyYv08U8hLpZTQql9HnM/JU2Onds/CDrMOXiuto78Dm9 EygoSn6AqZrp4K8ODKt+ys40GEUAF4egdM62pVHzy8I2S/3S2uh0z2k7O6xIUi6UpPGl iuDThJPDc+LBaTD+cSPac/ei57y8xc90g2FWx5KRAwSPOkb6/0CuXFxzFzzjy1aQ5A5x TF6g== 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=T6R2oSWmddYFEMAvyEE6J/JFHowNSIHJnC5cSSbZqYY=; b=JanzM5er6xSgVjvG5zcjI/NcQ/FU2zKi+nn5OIbPJmYkGdAn2HCmDH5gDZA5nlW/4O kuUksXKCyaD/05C2iHvvF/TzQW2Wh9dISLrweSrBH5smI1AZD3nL1aBE/T+hCw0sfvYW LsM59F6xRKWMIWAevRJxG7tJ8iY9jE4XzpHg8CmyZQ4unSTh+qQ9o75AP8j6iGgd058B xUxYVS0gFuKiSxZjhVUUQ3GJ1yUrio7laWipRT19LkjuF1gJ4tnJ3q4+estjJWQxHHbT Elmk01zRosP9998skcC3w8yn2yURCxVVMDu3SarzU0070baB7ZzUBr+2VMwpfy03rNT8 VMfw== X-Gm-Message-State: AKaTC02HZyXdQ8xJWmjsmwqmJAI5xBZkOh+LsFAwGewasYc5uLfYx0SIRdmQigrdXTqqMQ== X-Received: by 10.84.128.65 with SMTP id 59mr152784777pla.109.1481144698221; Wed, 07 Dec 2016 13:04:58 -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 24sm44704876pfh.41.2016.12.07.13.04.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 13:04:56 -0800 (PST) From: Joshua Clayton To: Alan Tull , Moritz Fischer , Mark Rutland , Russell King Subject: [PATCH v5 2/3] doc: dt: add cyclone-ps-spi binding document Date: Wed, 7 Dec 2016 13:04:39 -0800 Message-Id: <0825a00c127aff5933d8ca991810af00b9bc19dc.1481139171.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-20161207_130519_911802_04A3CF95 X-CRM114-Status: GOOD ( 12.33 ) 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: devicetree@vger.kernel.org, Joshua Clayton , 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/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>; + };