From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565AbdB1QlD (ORCPT ); Tue, 28 Feb 2017 11:41:03 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:52428 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbdB1Qk3 (ORCPT ); Tue, 28 Feb 2017 11:40:29 -0500 X-Auth-Info: m+pH15zD1EkfIFFr28/gD3vLSzLoUU/hrkxbVQIvAFo= From: Anatolij Gustschin To: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Alan Tull , Moritz Fischer , Rob Herring , Mark Rutland Subject: [PATCH v4 0/2] Xilinx Slave Serial FPGA Manager Date: Tue, 28 Feb 2017 17:40:20 +0100 Message-Id: <1488300022-30150-1-git-send-email-agust@denx.de> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds an FPGA manager driver for Xilinx Spartan6 FPGAs that can configure them using an SPI port and two GPIOs. Anatolij Gustschin (2): dt: bindings: fpga: add xilinx slave-serial binding description fpga manager: Add Xilinx slave serial SPI driver Changes in v4: - add Acked-by tags for DT bindings - increase program latency up to 7.5ms for other Xilinx FPGAs - continue to apply CCLK cycles until specified timeout elapses (to cover more possible configuration DONE scenarios) - apply 8 CCLK cycles afer DONE signal - rebased to apply on top of Kconfig/Makefile changes by queued fpga manager patches Changes in v3: - extend example to show the usage in SPI master node, connected to the fpga-region node - use named constant for udelay()/usleep_range() arguments - drop not needed .owner init - correct module licence (GPL v2) - fix build warning with newer gcc (in min() macro) Changes in v2: - corrected gpios properties and node name in example in DT binding document - rebased on v4.10 .../bindings/fpga/xilinx-slave-serial.txt | 44 +++++ drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/xilinx-spi.c | 198 +++++++++++++++++++++ 4 files changed, 250 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/xilinx-slave-serial.txt create mode 100644 drivers/fpga/xilinx-spi.c -- 2.7.4