Received: by 10.213.65.68 with SMTP id h4csp1438287imn; Wed, 21 Mar 2018 10:37:08 -0700 (PDT) X-Google-Smtp-Source: AG47ELsEIcD7uHQizaD4ZHcYqWNUuBHj3fe3LuD0Sr7unGLF6SgIZvBcQLHZc1tHRneOPNTpr5Se X-Received: by 10.101.100.200 with SMTP id t8mr1307062pgv.120.1521653828698; Wed, 21 Mar 2018 10:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521653828; cv=none; d=google.com; s=arc-20160816; b=y7zTqAUTfredCpaUMFxdHy+AKhLHtoxqDJq0EQD7D9y3f1L7+uUMmAFPvsmWec7ntB /HYLO2xQ0XNlSy7+6RGP9WQjycoUXoHWq5ZSLmbfBuLue2szBAwTr+XiEOinKVTq3qb1 bTQeeFXJmtbd/XfYEqjZfSM+zbw+Zd7NYLtwRCQYHG3+I8P39jZrjq7zcHjwPm83HQmx m/EZQYkOyFx57edSMYaezog3OazHu5krHW25u+tds5o7wk38nj4RJi47xjvvRzc88ntC 3Pek4ca0IjbESmD16fh7GwS0JypSojf51qQRYQ2HYRzmolnSvsEndLGFYGBu33udL0zh Ct/Q== 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=Nl7hvOs4xUxoX10mNTG0MFrjZ1H8wgjCbeimRDKJztI=; b=pmQrGvw/Ka50MuRa30LrXLRf1UIQVgyUSbxaRelsJyDIyiOCiraGsTrBHWGxuQnfj6 fNlEEzkUz3YDNERUMlHNSHkKf8qKffynbwtvwCLmUSgB/gxrWedycCTuGgx27MuMMtDf qLHcZsKcgcCDamyM95Wreqj032VD2BZRXNMswIXBENbPzN4GJ3lVHneKQ7180CRmuulD i6mMB1msjQ8FCygzGahM1tdIKso5YAMeXmLmbioQDsVITlpe51EJ6ZJT1rbxw0hDFRo0 Jl0F288SvNbZb7qKLhKwh0gZ3UWWvFJAhZlLAPvDSj610ZaqPO98RPsR+D6wKedhJKBQ MsVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JjgCIIYk; 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 f11-v6si1311590plj.164.2018.03.21.10.36.53; Wed, 21 Mar 2018 10:37:08 -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=JjgCIIYk; 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 S1752309AbeCURfd (ORCPT + 99 others); Wed, 21 Mar 2018 13:35:33 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33185 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbeCURf3 (ORCPT ); Wed, 21 Mar 2018 13:35:29 -0400 Received: by mail-wm0-f67.google.com with SMTP id i189so7396639wmf.0; Wed, 21 Mar 2018 10:35:28 -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=Nl7hvOs4xUxoX10mNTG0MFrjZ1H8wgjCbeimRDKJztI=; b=JjgCIIYkHhnu5Jc/PoF9tThEDumWxdzmqLmhnxHdNsdRufd1WD1AXPB5FDpHzoWAD7 ZeoGENmXOwGjEFpurZgnkd9dqIUfO8nPlUYLxp/u4HrNPK6pn8qQOFG7LZ01sTmx9lvO bFQjinqv/Hlrhhf0KS+81O58pmJWCUL+efjXlWprG12avEbLNWvAmJ73Gx/6lJ8vAObK t60SlNanyp09cgSm1tJDdDEOa6TgftvFl2vZrzVqPLOILOanvVVURZgNmhLUfKFyq6n6 RIxE+tFZTQ4q5ADNz8YuaRd81vYOoJlsYWoYfZdeDvvqyvcyWwZ7eAb/mWFBWwyUEhS4 HgEA== 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=Nl7hvOs4xUxoX10mNTG0MFrjZ1H8wgjCbeimRDKJztI=; b=axGSgEnup/cgb+yVYyncZkFo+EA2JHNWiJ/oilamoUHinr3gqwWOL7xn4OYAwsLXEL XaYTbZZOmCXYtBBfCTJ8lLXygPXo409TppcQ+nsc9zBRzEwPU1Y1343D6N/NsqxpVJTT nWKk9StwY4Hm04YOyDBMBfDp16pFQIiBgPG/XN4p4fayP3V2EDTZBi8O3RV4eKL8xfnb Kqu2LcW+bjkZFU9cQd5mTBe1E37fsPPIHY9Ad/nC8r1t9ObsrntqHnIpAhnaCxD+4NDZ +7EO7qT+4ZoXH6cbUd377QN2JyQayl5Aa16SZ0Raf5dRP0mHJcBmIyHokEoZbmVT3LZB kB2g== X-Gm-Message-State: AElRT7HuyXGkR3Dai68AyBVel5wofHTQb6XBlWZ4b/a8Aclz2EjhxHM5 f/HQAD+pDCDR7CToaRW3fjw= X-Received: by 10.80.230.14 with SMTP id y14mr22670844edm.307.1521653727724; Wed, 21 Mar 2018 10:35:27 -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 x25sm1459932edb.2.2018.03.21.10.35.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Mar 2018 10:35:26 -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 0/2 v7] Lattice MachXO2 Slave SPI FPGA Manager support Date: Wed, 21 Mar 2018 18:35:24 +0100 Message-Id: <1521653726-24625-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 v6: * added the SPDX boilerplate * switched to pr_debug() and renamed MACHXO2_DEBUG to DEBUG 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 | 8 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 405 +++++++++++++++++++++ 4 files changed, 443 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt create mode 100644 drivers/fpga/machxo2-spi.c -- 2.7.4