From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752006AbdGXTt1 (ORCPT ); Mon, 24 Jul 2017 15:49:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:33132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdGXTtU (ORCPT ); Mon, 24 Jul 2017 15:49:20 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4BEA322B4B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=atull@kernel.org From: Alan Tull To: Moritz Fischer Cc: Alan Tull , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [RFC 0/5] Open source FPGA image header Date: Mon, 24 Jul 2017 14:49:10 -0500 Message-Id: <1500925755-5727-1-git-send-email-atull@kernel.org> 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 patch set adds open source FPGA image headers. This allows FPGA FPGA image specific information to be added to the images themselves. The header format is a simplified form of u-boot FIT images and can be expanded as real use cases are raised. As all the FPGA kernel frameworks are intended to be vendor agnostic, so also is the header. As libfdt's licensing is permissive, this header is also intended to be useful for OS's other than Linux. In February, there was a conversation on the linux-fpga mailing list where Moritz and Jason suggested headers, so with their permission I'll be happy to add 'Suggested-by'. An API function and a sysfs interface are added for applying FPGA images to regions. Patches 1-2 are documentation Patches 3-4 are small API changes and could be rolled into my "non-DT support for FPGA regions" patchset. Patch 5 is the bulk of it. todo: I've been working on scatter gather table support for this. It's not done yet, so I pulled it out for now. This patch applies on top of my "non-DT support for FPGA regions" v3 patchset. Alan Tull Alan Tull (5): doc: fpga: add document for the fdt FPGA header doc: fpga: add sysfs document for fpga region fpga: add dev to fpga_image_info fpga-region: new function fpga_region_free fpga-region support for fdt headers on fpga images Documentation/ABI/testing/sysfs-class-fpga-region | 7 + Documentation/fpga/fpga-header.txt | 103 +++++ drivers/fpga/Kconfig | 7 + drivers/fpga/fpga-mgr.c | 14 +- drivers/fpga/fpga-region.c | 460 ++++++++++++++++++++++ drivers/fpga/of-fpga-region.c | 16 +- include/linux/fpga/fpga-mgr.h | 13 +- include/linux/fpga/fpga-region.h | 3 + 8 files changed, 612 insertions(+), 11 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-class-fpga-region create mode 100644 Documentation/fpga/fpga-header.txt -- 2.7.4