Received: by 10.213.65.68 with SMTP id h4csp3869157imn; Tue, 3 Apr 2018 12:05:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+YfBPLIpPkp2a1o6RUbrmKHGi6qE9sReGsMBhTeQqDJZQMRx/fG+f0ups0VIDoNq5Mr5Kq X-Received: by 10.101.74.193 with SMTP id c1mr9954971pgu.116.1522782326613; Tue, 03 Apr 2018 12:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522782326; cv=none; d=google.com; s=arc-20160816; b=G3qz2cmfLXl9XY3Ug59FCTfM5luXNzd9FWwC0pcWvfQ6KdY7T/VuGvoAAMdfD2dOB3 0yoTTncZpqJm8Cx5uVGgwgnT42LLnJ/irpduPbdbMgl38eyb4JSnjW4VUlvDZCCLfYvX uVECN7zMGZNpZEQCT49iHVi0FB0yztwm0Q3T0OdaG50IU+0hYRNAjDs7kdFm+t9HIa4U astor1rHZJ+1CAqY6Ih70QGHm5uveXxPqAVsqz62Ku8wKikQ3SQ+XgHk8IB9CK3w6wld 5PMYemSOh5zhUcmgi2+V3jEA8bs69no6i7QAvfOxPNAOBICB9dmu12xqFbTFqwX2FQfQ yhEg== 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=3vSs/9BCdg82QBvd5JBKQ+7RhRiMx1MtrsLXoJjXtSM=; b=grHbe8Ic5yvp7Y9ezcOB4Cy9TBq2bcmWRKrnw6YR7RMdZaaGQcpbywKftbNaLjXsmS dRsAnijOzHrSg5jXEbE7phYQCvQYCIF7m1TwWP7sb0XzUMOeKtT0cSjhRSUMMw+NA0fI 9aV1vWDGClOI2xhuMAFd8gSmwYuOJxGjZYNEHLRjqQpOTuI5NzZr/E27mBNvXcDzulN3 x/Ze5zY8YNJZxQLdAGBjhcQFAp5+zDp0RAkoKes7iWNok1rXELvXov+MsF6QEHqTtJPE wUtocAcpFuXN19j14kEtE+07ysErUsWAdiHh3eARdo3KII45KsuDDlFlYOMrTd7K0hbV +xNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OPA++daH; 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 y19si838729pfm.63.2018.04.03.12.05.12; Tue, 03 Apr 2018 12:05: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=OPA++daH; 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 S1753312AbeDCTCi (ORCPT + 99 others); Tue, 3 Apr 2018 15:02:38 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52645 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752949AbeDCTCf (ORCPT ); Tue, 3 Apr 2018 15:02:35 -0400 Received: by mail-wm0-f68.google.com with SMTP id g8so11828729wmd.2; Tue, 03 Apr 2018 12:02:34 -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=3vSs/9BCdg82QBvd5JBKQ+7RhRiMx1MtrsLXoJjXtSM=; b=OPA++daHvrfg0FPPVtneyeTbfdkNGS/m0dNyq/mcnbMSjQMe7fhjHOcV7FV09h9/IS sAVfrkXTRKTsTRwi2FcNNyn/oMVULzajAwdLJBn10thgM3fMRqyXtT+WY7fd6IbMsqEo IXPZe182DLBaTGDsanAevvd3ztVIqHC0ZaK+kEtRYnOq9iYtTXv+iDUDZpSPdQAs5K8g +BaaoabKF4lME3LdQh/NLqENvPBrXT3CWTknJ5spoxMFlj6c82Yr7Jkz9DQtj1kTk2FK zZnc7HGowRD4h6qT7ddc3+VA2EXJw1ZBcMW0bkyafX+ueAHFsA2XjRTJBJh9d7dC2qRn fm/g== 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=3vSs/9BCdg82QBvd5JBKQ+7RhRiMx1MtrsLXoJjXtSM=; b=D0svLGGZB9qgn7035arw1gKN3V26lGF0ERyQwRE2kA/UGsAcnmdSy/tFI7Vn4jgdRy Jq0032/ubuHOVFvWdC9ybY34KCM7NgTqWBE4eubh0QuUfPBpv7/+5a/JddkypPopKX0p 58WTRVaLyXNiifBEup6FkriMil61Fbvv89poCJPCYnB2wjiVf6yHxaWARqDxWXTuS2rH mKYbq49n7JBFX8Kplvs1c87JhpbuYAjci/CMtqYorlTTft/EeWHYkiCJCx4STZKKiR8y WSes5zEQtjKgntrDTLDjYG0Q83kpvK6yEA6ot1LH4S0lkGXLAjo7u7YEwUGhEkJA1bE6 2sJQ== X-Gm-Message-State: AElRT7GmlgzXOoNU8njsQ8SaXYytfon84iALLgOyifIxqiEs5BlPOryY KKk7zr+JFa7x6dMudi2qlDg= X-Received: by 10.80.182.121 with SMTP id c54mr17645149ede.112.1522782153882; Tue, 03 Apr 2018 12:02:33 -0700 (PDT) Received: from gmail.com (net-93-144-128-215.cust.vodafonedsl.it. [93.144.128.215]) by smtp.gmail.com with ESMTPSA id e24sm2245754edc.47.2018.04.03.12.02.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 12:02:32 -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 v10 0/2] fpga: Lattice MachXO2 Slave SPI FPGA Manager support Date: Tue, 3 Apr 2018 21:02:30 +0200 Message-Id: <1522782152-27300-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 v9: * implemented machxo2_spi_state() 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 | 413 +++++++++++++++++++++ 4 files changed, 450 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt create mode 100644 drivers/fpga/machxo2-spi.c -- 2.7.4