Received: by 10.213.65.68 with SMTP id h4csp324743imn; Fri, 23 Mar 2018 05:35:00 -0700 (PDT) X-Google-Smtp-Source: AG47ELuQKStvmryIMsSzyyEnlXHUH6y21ZJB5w9eokmoQNqlSGIoPGq3f1FRl5UdYDsB3NBFd8/P X-Received: by 10.101.92.6 with SMTP id u6mr20888634pgr.440.1521808500703; Fri, 23 Mar 2018 05:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521808500; cv=none; d=google.com; s=arc-20160816; b=F20M94fbc+GBvRconNC00DTI+BccGFpZG+ghbPSoNyMnNA4T4Al13tWwXadBzIVj9w lVCaN7fz8+IW/nCsHoyT82wpvJ/Wylm/bNDuBm77wiLDddOwPQmYzPNQzX/MKAPZk1CD PlAcnOgoAPxpwyAreSQNJDbZ1100LrfJEuyy7JF5HyMZbPJ0Dy6dCWo9UeCoY6tu8mUg elgoVs6Q1cpwh6mUJtzKHu51ToeCH9aRtDwwjpVuNutm1dcb8o0z2QEYjDbGfNeHbcvw TdiMLiG8WQLzeT4kaBi7BXIH3BUWc4kK1pfOJ7HyBhhvewGOYoYOwxpum3Hnu7+azB6U Xspg== 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=2nMXuwNpS27HMt+PqoMi2McbGKKyRLeXpdIhUnBKFvM=; b=S1yUbOhNPlQH665/MaQw9KRaBzJ7F59JKOCM/B9SsmpbuW5BlqyJLQ0LH2hkXQIHCp 2J+gyvPDLgSxlMX3gHHT8oNCBlTjOZUg+9Nuz0qklMD8GNls9sj/W+k1reubw3aPx19T ZEbgn7AfBllqTu9anckrK7cSaHr4+fmsbW0ODbP6aYTPO+Li0/Ebkt6y4tudfpS+83Ch 3W2Nm9GsVrobpRC0MjgBvdwKBba/83sdISHxb1yf452ZEyJF3+/piCBmdqA2b3k49h15 JNECMOm3r/4jl7Sy0gFRMx69pnDUo7/goQOMxcuTfzPKuKkigi/6dKpkheglYJJJJAVB 1Rrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EWt/rlDO; 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 a34-v6si8550183pld.8.2018.03.23.05.34.16; Fri, 23 Mar 2018 05:35:00 -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=EWt/rlDO; 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 S1752603AbeCWM1S (ORCPT + 99 others); Fri, 23 Mar 2018 08:27:18 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51805 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966AbeCWM1P (ORCPT ); Fri, 23 Mar 2018 08:27:15 -0400 Received: by mail-wm0-f66.google.com with SMTP id v21so3257256wmc.1; Fri, 23 Mar 2018 05:27:14 -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=2nMXuwNpS27HMt+PqoMi2McbGKKyRLeXpdIhUnBKFvM=; b=EWt/rlDO0CI+psfdWOA9FBhKRZvR4z2KHEueR8VxX7ow9WetJFYOBk5COGNTV/UBBw j8oA5km/bM3+Icp7ulBqwWJ6O0sexGPQO1Z7HnA1f/ywbZzYIKUEdqJ62pV9QfIMTYwh a5ZyHfjcir1hIZLSRh21qZskScHNuZ7cVXE/QO9u8LupKIPovhhSiQAqRoMUBVEtwKfO /Yo6yBvSw/ajOry3Wkf9faJDYTSEcA/kbG+OOvyLkLefzEeNKHRdHQA1PvbopAE3M7EK ydkhiuNIoYClP02paMQhKojRadgZtZhJ8/l+tOeu4P+07mFtppuF+QKMW5QnWrRyagsm YKtQ== 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=2nMXuwNpS27HMt+PqoMi2McbGKKyRLeXpdIhUnBKFvM=; b=q45KiCKPhnW4Jr3o2PqvXXO1fpGtM3CPSZ/GReEh+xMoei0cPALJruKOLAYay+LA+T XPQhSFoMMjHQxj8+w/A2Rhg32xvO0gnXVQZJPlcuIl5oP8eNlPt2MfshI3ctiBq44VZW vb2r4GmnNHqbpUDcbN5GFsQ4GKIrwwbJ7FWmtVm4mjdJWKZDMgx1rlLvIW9DK5ZnjI9z oU+Y0nToFSrzK93UjE8NNlG6fHDK9tTzXS+99kQfKNuU5duZNpCFwzoHHIyW4QhcbYFQ iDyJ3CdJhkwSdjR00/to+QBEVc4r7VhGsQpu8omsUD7474jvm2aUFkwOX8CnOEOF2HjI oNgA== X-Gm-Message-State: AElRT7FXox7b71c7ktNhMotXjw3goBl65R0AEasYDwIgXXa2Pl7Y6oyP hVWoB9Mu73LG26e+hmuVCCA= X-Received: by 10.80.174.102 with SMTP id c93mr15906172edd.88.1521808033968; Fri, 23 Mar 2018 05:27:13 -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 j92sm6283993edd.81.2018.03.23.05.27.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 05:27:12 -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 v8] Lattice MachXO2 Slave SPI FPGA Manager support Date: Fri, 23 Mar 2018 13:27:10 +0100 Message-Id: <1521808032-29645-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 v7: * misc style fixes, among which: * static const u8 cmd[] * #ifdef DEBUG ... #endif reorder * introduction of get_err_string() * direct returns to reduce line count * indentation 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 | 388 +++++++++++++++++++++ 4 files changed, 426 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt create mode 100644 drivers/fpga/machxo2-spi.c -- 2.7.4