From patchwork Mon Sep 8 09:29:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steffen Trumtrar X-Patchwork-Id: 386848 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A690A14009B for ; Mon, 8 Sep 2014 19:29:19 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752856AbaIHJ3R (ORCPT ); Mon, 8 Sep 2014 05:29:17 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:37044 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752784AbaIHJ3R (ORCPT ); Mon, 8 Sep 2014 05:29:17 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XQvG7-0001qb-PY; Mon, 08 Sep 2014 11:29:15 +0200 Received: from str by dude.hi.pengutronix.de with local (Exim 4.84) (envelope-from ) id 1XQvG7-0001lE-OD; Mon, 08 Sep 2014 11:29:15 +0200 From: Steffen Trumtrar To: barebox@lists.infradead.org Cc: Sascha Hauer , devicetree@vger.kernel.org, Steffen Trumtrar Subject: [PATCH v4 3/5] DT: Add binding for Altera FPGAs in passive-serial mode Date: Mon, 8 Sep 2014 11:29:09 +0200 Message-Id: <1410168551-6588-4-git-send-email-s.trumtrar@pengutronix.de> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1410168551-6588-1-git-send-email-s.trumtrar@pengutronix.de> References: <1410168551-6588-1-git-send-email-s.trumtrar@pengutronix.de> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: str@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: devicetree@vger.kernel.org Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Sascha Hauer Altera FPGAs that are programmed via SPI use the passive serial protocol. Add a simple binding that describes the setup for this usecase. Cc: devicetree@vger.kernel.org Signed-off-by: Sascha Hauer Signed-off-by: Steffen Trumtrar --- .../bindings/firmware/altr,passive-serial.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/altr,passive-serial.txt diff --git a/Documentation/devicetree/bindings/firmware/altr,passive-serial.txt b/Documentation/devicetree/bindings/firmware/altr,passive-serial.txt new file mode 100644 index 000000000000..d357dd39cf67 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/altr,passive-serial.txt @@ -0,0 +1,24 @@ +Altera FPGAs in passive serial mode +----------------------------------- + +This binding defines the control interface to Altera FPGAs in +passive serial mode. This is used to upload the firmware and +to start the FPGA. + +Required properties: +- compatible: shall be "altr,fpga-passive-serial" +- reg: SPI chip select +- nstat-gpios: Specify GPIO for controlling the nstat pin +- confd-gpios: Specify GPIO for controlling the confd pin +- nconfig-gpios: Specify GPIO for controlling the nconfig pin + +Example: + + fpga@0 { + compatible = "altr,fpga-passive-serial"; + nstat-gpios = <&gpio4 18 0>; + confd-gpios = <&gpio4 19 0>; + nconfig-gpios = <&gpio4 20 0>; + spi-max-frequency = <10000000>; + reg = <0>; + };