Received: by 10.213.65.68 with SMTP id h4csp2477843imn; Mon, 2 Apr 2018 08:15:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx497/BQxEas3VtIUr/ZeciOBCvJBF+f3V7IRBhVzuF1fzqoYFyyV5GT5x+5tp1RExfFtCNgV X-Received: by 2002:a17:902:9a48:: with SMTP id x8-v6mr10155852plv.135.1522682126056; Mon, 02 Apr 2018 08:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522682126; cv=none; d=google.com; s=arc-20160816; b=nf2/IPEt+aBgyAoUiDHHPq+FLLKRvq9VH6SACv3GfwM0yRsvAYFhPbOmpnz3DlzTem NpzCgmuDo0dCqnsIMuv3TmPUKjH2Gnmul+qVjIcC+eooZYdd2WYtXnSbZteuD1DL5fk+ JtdWCIEMOQZB6i8TIQ+slBmeoa+Y6yEXEyS7ZkkC1O4tTUTAOmOH0BN4tI6vi42J0Cnf wsfk9r7J/opCuFd7Dw5IN/2HZLXwTqljoFOZnUBEd7LTsRrCr7lOpKzmmitiA/qVQURL VH3+YY+WjN7YWLLW2/4V9wlUrRHUy8FVKBTiKm0dOcx5UVAtWMbZTprq8bAwOi2MQ8JV vi6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=qQvy19l3l7hTDnecfF2UQzTxORsw855Yxo/gAGT0h4c=; b=q0KHxVH5BjoDgat8PL5LBuHUMnPq7ZB45SB9tqALR85NT2G6nMdinzfY+ZMns5vFZV LVBgF5amIX3XuO+Murott+ciQnwXy1Aawzc8xPNfWcaGBYPX+fvRWO+nKcZpiszdehQf H7bKMTV6HnKdUevhw53GYq6Aq4ArYTvv4Jpaw2UBTgG7gHol1q+iWh6nosXa7vBo0ZRf TOuTbZqrT7F4/aVTqCPIjROzFU0+qSsN44bnPJeCV7KvUqDxMoPN+PYooHicowIdHpcK sIHPeSLLOHRBBsEJ1iULL9PLjIqk/rOVi+Ch4c0vix0WEtEnQl/g6ab1axB6bnZNXoBj MkLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C8nCUHHK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si374783pfj.193.2018.04.02.08.15.10; Mon, 02 Apr 2018 08:15:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C8nCUHHK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752442AbeDBPNv (ORCPT + 99 others); Mon, 2 Apr 2018 11:13:51 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34017 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbeDBPNt (ORCPT ); Mon, 2 Apr 2018 11:13:49 -0400 Received: by mail-wm0-f68.google.com with SMTP id w2so6581283wmw.1; Mon, 02 Apr 2018 08:13:48 -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:mime-version :content-transfer-encoding; bh=qQvy19l3l7hTDnecfF2UQzTxORsw855Yxo/gAGT0h4c=; b=C8nCUHHKBMEFRucAunGfBGAgvMfiPqOyYa3Mu/O4pvkj4WQmQS1rwF2erBNs0Jm3nm LQIK/Swbjgtfxqm9s1vo0nFeZxFiPUi170KNHtmULDtPM8nhVvk+sLhM199gSQ88UlFu 3azEFLFj1fwfK+kCVaGjH7vkyz219DberPdt/YHNlgIbcXI7NJKMDraR6YAF3h90EgWS kpD38ENZlaq5HzgEOxTjlWMdPGFv1q/uQ3SVbNEGEHUrY2zuGc3cU3IFaoIWyx/5Vx8g uZ1n5PfrjqKLzsY16DJz33GwWtKUAQiuisHrgmulzGt4kJHvHrbT0uxsEifcWjo2TFKE wH1Q== 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:mime-version :content-transfer-encoding; bh=qQvy19l3l7hTDnecfF2UQzTxORsw855Yxo/gAGT0h4c=; b=MO08qWez+WAgUoKeRiFbRXgDCvzbjZ0WCWXagxc+BdGgGdDYqkYNC4kFI+NjbFmP3O mmia3ptzP/fHbfKXRKpG8j2h0VwGAYdvbt0j7+KvlhGA510yFVnZ2t5rcL+DPUEaCFpS woit793DeAGC7shGrutJkI3mczQ4ThQzZfDclc6HZfYkBZWJiOjcKwhsc5DK3lzBkJ23 I6bDhgJ8EToW4NEum+X7CkGCzboQbVEmohN9bSoTkQpOI1KuaBdvdKBghmBcS5eNYMfp n9L1dopHu9eSFdjI4kZ/QFm8//7jxZzMi8xEWAYcPH3A/mN41TWZa532DCJcTLoe3ctb bO0g== X-Gm-Message-State: AElRT7EPgt34RVFtWK7jGWm+a7yCgQOsdH65TpuzrJbMWyoUgrNrNat4 l6rEBXc4BVRX8oGh72rq7Jch0+DJ X-Received: by 10.80.149.237 with SMTP id x42mr12802103eda.99.1522682027806; Mon, 02 Apr 2018 08:13:47 -0700 (PDT) Received: from gmail.com (net-93-144-128-215.cust.dsl.teletu.it. [93.144.128.215]) by smtp.gmail.com with ESMTPSA id b47sm472794ede.13.2018.04.02.08.13.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 08:13:46 -0700 (PDT) From: Paolo Pisati To: Alan Tull , Moritz Fischer , Rob Herring , Mark Rutland Cc: linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 0/2] fpga: Lattice MachXO2 Slave SPI FPGA Manager support Date: Mon, 2 Apr 2018 17:13:44 +0200 Message-Id: <1522682026-11395-1-git-send-email-p.pisati@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series adds support for the Lattice MachXO2 FPGA chip, programmed over slave SPI. Tested on a raspberry pi3, beaglebone black (little endian mode) and imx6 hummingboard (big endian mode) + bugblat's pif2 fpga hat (machxo2 7000HC) or tinyfpga A1/A2 (machxo2 256HC / 1200HC), in SPI slave mode with varying bus speed. Changes since v8: * style fixes pointed out by Alan * rebase on the new fpga_mgr_register() API Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 405 +++++++++++++++++++++ 4 files changed, 442 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt create mode 100644 drivers/fpga/machxo2-spi.c -- 2.7.4