Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754100AbbLJXpW (ORCPT ); Thu, 10 Dec 2015 18:45:22 -0500 Received: from mail-bl2on0097.outbound.protection.outlook.com ([65.55.169.97]:19183 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753279AbbLJXpS (ORCPT ); Thu, 10 Dec 2015 18:45:18 -0500 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; lwn.net; dkim=none (message not signed) header.d=none;lwn.net; dmarc=none action=none header.from=opensource.altera.com; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=atull@opensource.altera.com; From: To: Rob Herring CC: Moritz Fischer , Josh Cartwright , , , , Pawel Moll , Mark Rutland , "Ian Campbell" , Kumar Gala , Jonathan Corbet , , , , , , , Alan Tull Subject: [PATCH v14 0/7] fpga area and fpga bridge framework Date: Thu, 10 Dec 2015 17:37:02 -0600 Message-ID: <1449790629-5517-1-git-send-email-atull@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: SN1PR0501CA0035.namprd05.prod.outlook.com (25.163.126.173) To BLUPR03MB1507.namprd03.prod.outlook.com (25.163.81.25) X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1507;2:UlrZ/g4+6cPAt3k8jDX9BkuH7pm9yAk9L93FH6Q/01Z6m8hTt8DnsRl2dFeAniH5CQvxIsQAyKFa7JhYtYdlspDgiDUu6VM3gGxW/Y7beFVDcQsUdzpO5df4zLYwhVZRL9buc0rUAC3Zpk3oAf/YQQ==;3:YRf79c1NhewecaPBVa1wmuyz3H+ro8nQyoEhTecpapPpLWpznSY6qm4u6udobkch9VbGbgHPYJINK3VurmH4+K4VQoMDhQeI0YxIg0TxzbbrXVxcDfBsnWYc2LDvegi3;25:o+ooCEPJlRb30yVMyYAKpzjEkwKjBldWIha1fmnhJ8DUmx4rkjfc1FHQ3CNHQJctxOPTNvTXgzj6+v1fzPToqG3hO19oaYKMAfTOCnMQhvxIkHlGFuEWy3WZWfZgQgohgq/DRVLwAc0y4SUDSCf/o5XDvTUtB+DJQv1qzEjFqzLyq7gG4ARned4zBMWzDmzwGPOrcEYdahk4PKdFVpZzYr9IgVx5WBlwiA44WqNdJjvDy9pKZBqds1adtmjZI2diJBVqhf6BH3bw2B5gJFWPfQ==;20:RRGCW3S4+veeyY0Gj/NXuGxhIfMwNCpWakMy0ihUco1WjMCaBeya+CuaEx/pTu4nosX+ZFThJzAe0TFxZovaO8c0m3Lm9s3LnZ4FJLWus38cAmKy090ameO0FojCU7fx2Js7qSs0MXe+Qsf/jF8wrMxpXBmJPyHW+bwMRuieg3s= X-Microsoft-Antispam-Untrusted: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1507; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757)(204874498639787);UriScan:(80048183373757)(204874498639787); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001);SRVR:BLUPR03MB1507;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1507;BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001);SRVR:BY2PR03MB442;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB442; X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1507;4:kiNWzHVD+4+TFmLuE0vXwMgBs1GotBWCSoDXubWfMTkFzra5BfcsH6jfcHQId9lbSTxMMKzxEvUGVPluflsY89qLdGtRoFzhRRzbycWxTrsugwdV7agW/n/mFLevJCyEH0lSWhleEKKIpQZv9E0ejZtUd34em9Tk2Ku2l9qpmtI64yw81Da4i5+5jWMr0D1QrrOmjXKQiktmoSkjuYYwGKzjDa6QtySIX7iQdDZrwEB+BzFIhq7jQ2LRpofpLn5RcZxmAZPdWJRtJzXo0UHlclQWYfuOcdPLGBfuRJYQO5esnUNgZ9c5MqepbMUHR43Pp2N8Nyt+KHJn2iTJu6Eu7woQyS+kQdLTfWrj/aN/3IylWyIIt7Yl9cpS5zY8VVUYL3uCpaz/1Ep2A23Pwl1HzptC43eCk3TWUVpYNPtJ0HJEhioRrPvB7pRI1hCCzW5cWfNsogtoo+i8birI1dd+1A== X-Forefront-PRVS: 078693968A X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(6009001)(189002)(199003)(229853001)(105586002)(19580405001)(77096005)(19580395003)(3846002)(47776003)(5003940100001)(50466002)(189998001)(86152002)(5001960100002)(48376002)(69596002)(50226001)(107886002)(40100003)(122386002)(87976001)(50986999)(86362001)(92566002)(53416004)(81156007)(42186005)(97736004)(106356001)(66066001)(33646002)(101416001)(110136002)(586003)(6116002)(4001430100002)(5008740100001)(5004730100002)(1096002)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB1507;H:linuxheads99.altera.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1;BLUPR03MB1507;23:3Fx1Ej2u93D6XuflnzPilwhKXCJu4tQOKi456zxG5?= =?us-ascii?Q?0UEmrm7HncwiUbHFXbH5yl9qewjB5naxp9uDyCjQAOu0PFPWJ6l3WKBfFrhK?= =?us-ascii?Q?hG2868+stKKQ0+1jMf0ju4y5DlMqfkUsIfzUpcFZeGnPVmTiDAUd2qwTMVN/?= =?us-ascii?Q?Kc/Fh8sIfaB7zBIoe8+8u20Rxgxut3wvS2aZfxh3xrn0PKEJcQ1Am2av65e5?= =?us-ascii?Q?mf4TWhoxo46AdpuQsZzRwITnKfp59iwIuQu+jDyplYaZX5Tid4i9SDH/jC2E?= =?us-ascii?Q?eVK34Xg3fqldfOFcQm6Vv/7S2/NuTv8Gxwmgb8TRfsCt/ko8NHHRPcmYf5Yf?= =?us-ascii?Q?dIATmOvxR5HQQfYuHm86jvvWqxevLWO2uTtDcPcaf5j6T+cf+fXa/DaCISWZ?= =?us-ascii?Q?u9AaMo3DHM3f24mBgCqhuxzfQp2kJmoZQNLFCiDmIiWCn2e+rDQ7nlizcgF1?= =?us-ascii?Q?vtbrrMuBIlVUNmt55BQrLhJc7i9StgGTksuxPlWjGho3dywmW5jn0kg/pesV?= =?us-ascii?Q?MBS1PJzixPOAj2KXJftPZiij+tHmcY3p367lE99giOR+xNy8Iyk/kvf7NANu?= =?us-ascii?Q?yFt+gopidPK+8c6WeIK6qI0QzyB1V+6/tl2NteblLCJr4vWTcZJBcExtzN5W?= =?us-ascii?Q?3/N5YY4Puze1uP5z6Qn/8QXDKX6oL+lUs3mgsROHe19sD+yJ99Vk2Uf/Xj/0?= =?us-ascii?Q?IEGQNwbhx8g4euwbFz28pNbXmINKC8BlkURZZsNm4lXLzWxw1xBntqMPatPT?= =?us-ascii?Q?weyZNRtBqwJmWkkiIQZjglNKMID4ca3vYyYAlOzxiNStu5Cs9VJdQnzDzz21?= =?us-ascii?Q?ALAOxiqVxlj18sGwMVPD0O5OsJA4nXu7jEg4knmbb7t2wUwchvG29l5cBJ+Y?= =?us-ascii?Q?ufuvlmH4iH5uK41he95rSVTYoXpAF7gXz0K/FtBxp4MHzFuHBRVlQcH7Iw+o?= =?us-ascii?Q?TaYCGiZGLAC8NNQaim11RhJ5AkKuz6uymzjvHzIrtu1bNDY7jxR1fyUiD1v9?= =?us-ascii?Q?JsfnkLlFAG1LixuZWTbba6kKvQiiYV6PmxBXXpuLhK+Dioz8h9kxHx8DMCsy?= =?us-ascii?Q?i9JO1DCU4nFocoFCbPv96V1twBoPzhTjtn87eZo0oyezopOhA=3D=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1507;5:qq6AN40v/SWnTIKFDfFSO7f2SSy8hFXplGx1n0VnPITRZMj09AI18ZoGuVr0+48UYDbJEDi/GTfNwOBrCcLJZARcGSutkayUJZz0Ea9Dnuj/j+Se5vnAEjms88pU537HfAG23c0n0O/7QCXqy8pq2g==;24:Bo1+5jOj0xeuSObrfApGjT96fncp8WgIpZ4JLbXWQ2NsGHPUeOcQMS8lbyCgbIrK8aaZ4B98HUs5io5A4eAtD3gTuc8qz1O1NW6dv9Qxtys=;20:/VL2q5BbRbmmU7IrCJPxnPBw1qgVnOYK2aMjWNaIn+Lvor8fNuFC9rk0wDRCM1+aDreDstglkrSRJdnpapx2LzpncYoOFgermksFTeff+RXrvW6UqEp9J70f60c5nkW53vdSZoeE9DozDy9VgRi4vfXG9fBaDqr8dVtE7U/smqg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1507 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD043.protection.gbl X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD043;1:/0ysMiB0m+aW0w5LClJdKaJYtpR7U0xibuLm+b8sN8DJ6oZFzEef1mdQQa6KtSixnmRTeKHqC6k476mCT8ddotjwzshxxvlHc1C/nTdIKyLBDXUc9U0aG3imYe5pK7n6l+5iWlkfgGtNNbl8+o4+BjnGHub6tEY2AXwVR1Z00YZTUKfEfINKvvVA2dJ6G98tpGqx8Xwry6tqBGkXNmSkxyKmRv5YXNm932dqzpnN+6XxNZn9fIJ7QZcSsz81/pWtRPOUBrL+H94w3G98+gXQz5lZfkHAEW1NBZBCA897BFH9YpwecZ+beprGfIW4zYLyc9R7nfx4HitlIecvIrW0B36QfrVYR39gk1kzxbK0etWUW0HbOywV8Wx5Rnk5fUBpKvOQoTAvMS+2NYs670fz5iTOf7UWaKkkXyHq+gY7Ap9w5pOQML/ssaZh73Uu3d/O X-Forefront-Antispam-Report: CIP:66.35.236.236;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(1220700001)(40100003)(87936001)(48376002)(66066001)(5004730100002)(85426001)(106466001)(105606002)(19580405001)(19580395003)(47776003)(189998001)(586003)(77096005)(1096002)(6116002)(6806005)(122386002)(53416004)(5008740100001)(16796002)(86152002)(92566002)(86362001)(33646002)(50986999)(97736004)(229853001)(5001960100002)(110136002)(6070500001)(5003940100001)(50226001)(81156007)(50466002)(3846002)(4001430100002)(107886002)(7099028)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR03MB442;H:sj-itexedge04.altera.priv.altera.com;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB442;2:I71K0wYF/PThlXo2Lvdg9jpsYHHHZnWb9fU9dJw257GXrVOgzF49pX7GObQrnqh7wB8OynAvuFLG0rEN0wh4Hh8lXp36kamTA4NRpHtJRf7lAm9wkJTM8ugt7mrOXfZsaIHJgAIIla6XvW6fw+YbAA==;3:XSp8ckJSXhVrIzlMGcONiWHb8rgDEBlUTYjnHs2ijRhU6bNfiWC+QuoKd6z6ek3y8XMYeYz4BNT4LTvrC1vjB/LrlcKfOCko4ozCL1hd2FtMgFeTo23iA0EDezDWwVihN/KiBU1cOFqnQ9GSmR4Vz0ngPzoIMZ+oFhbjnli9MT1v5uc9FFIhhFf6JfSsFRdRSjDqyVUVzRYFIyDwH5Sn5WNUo6nAwuDMVOXnSUNAvcU=;25:T177dFtN1LVL9UP61+eu1xeHMDIANxYcp6PMADviGSjTW0kHUMmU6YG19BNu1JmyjG01oHKyWfr3ZG8eggYpILpXJp5jbX4iq5JCl/6CXapTMcbxTNgjw3lnV+JADQ8STMAcDmWgTXSK0fw1Xo81qRFRSREFvf01dURlubNV4UApvfEkMprpXKbsUcnNjgQx+8oq1QMOGXZypRLFsIALf5z3uzVfbDDmx0u59Qo8bW3V26wmino3p+oiOKxOXVcE+AeyMp6IvIB0eov1Qa0Acw==;20:Yuv0ELnL9rEskeuQH1mLis0RgMy9ONxrZ7MIsRX6xl5yz+ufCywIKesAXbT3sT+rhiGmZyYnGrYxt54oJUvy1UJHulTp6tkgCo8cakYD4qdxWgm2VMKKRXKqhDrf1ufbLG2aRw7g3gencNryPgN+yxs9hgmH71/Zr/JzepFyq1c= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB442; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB442;4:NPMHbRJ1hI4rAynOCFx8AzaR2mbJDtudZYYXzLdLF+wAtb5Dl79izd0TAKZLjvIryF7R7/MC+ZWpEPKX3PlNxRlmihwtHfliD/r3iw/xPugMUdklPRzQWNkTMTSNPtb9z/9XNBJGEGWkQP6jSvkho2hfjxrRpdNm/89trdSHFkuXADp+eoZ9eFcGPt8qHqMI2q/mP7cE9fq2wPDjkYDlf/rhftVjczACkvncpUiJjDMBBMOrmpVTDWxdEE4iM6A3O41umy/dCdHNJw7GJeq2FUis8xJYraNZqk4WVJKTgFxxQ+rBaufpwQ1SpQsqaWZffMzdVEOtzVWNL7z5aPgkd901TQseAgKB8yo2O3lIdMWUYvABG0BRcEki6mfGsgEQL1AgZrIz3vZ9mBqs0dyTb8/sNvRLj3uzUpoykJnSbkG1e1vdTzkGnIogSXKfQ5z7PzJU1so49Ce7XQvg/bovoA== X-Forefront-PRVS: 078693968A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR03MB442;23:JJnKbQ7S1/tph8od/l/owHoVbuByH81j89mGjFBqGN?= =?us-ascii?Q?r2ZUWGxVNL75oPUObzxPaB8YNkCz+No7+Gqug+cErBD1mpzUbkNclmhkgX1a?= =?us-ascii?Q?yjSsEJN7r1sx6RefZokpN6TfXpzLAq8UIzSA/kd4pGK0EH4X1YpSe0VjDj6o?= =?us-ascii?Q?jJxQmKHx+dHTU4muiopZJjy286l7eOlqlcrVDod83ja/o2gTYQkgX32nH5Sd?= =?us-ascii?Q?bA96qx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ascii?Q?duSbbyoYEDwc1DTN97DBh8OYG5RV9S3/e/PqH3doFLFv+iZW9tfrc9Ofh6qB?= =?us-ascii?Q?P2t69JXyxLiumKkjNwd1Fx9FWQoVKbVBwjn0v6OVnjULp4J5+abipe6pdzq+?= =?us-ascii?Q?0tDlYS1DFaGodSpRQ=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB442;5:KdpkXPHFtH0Qs54mr7+6OzaYfUWTGVSCIH78mBcxDZms7eOqmDYdNYIbNz+KP9yxj+vr/NdzZBhi4/rRFEEo5zW26HQNzY35hx5eLhv6fH0ePdMA0lG6tiGnWFylB4ka8kZFjG+lBowz1lpFlWTfrw==;24:fpmMmjH288C2OrA5w2OUxJYF9sER+SpMJOCsBCK5qUvr1wXYuTJaVssacl273R2iWmEbm4wL42CLEAuijjSF0iEa7Tym5vVnEcgNHMZuaxA=;20:z1FZ6FxSxYHrq/AnASjSDzjQPjiyhgv6fEAJD0Xfw7pqnbFZg3SRGOG0wX2/Sg3QlKQ6Sbk4vnrxLOGJe8tnagoIcA0DeJDpxmjBZ8cfThZKeyWdtNHT+NvVReR8YoPIhG3Q5qPLWvSeFKZswxVe0aZUpFnbvEuMbpVCWdu3nho= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2015 23:45:14.3986 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.236];Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB442 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2433 Lines: 50 From: Alan Tull For v14 I'm dropping the concept of "simple-fpga-bus" for "fpga-area" with reworked bindings. An FPGA Area describes a section of an FPGA including the FPGA image needed to program it and the hardware contained once it is programmed. The intent is to support Device Tree controlled programming of FPGA's. Alan Tull (7): fpga: add usage documentation for fpga area fpga: add bindings document for fpga area add sysfs document for fpga bridge class ARM: socfpga: add bindings document for fpga bridge drivers fpga: add fpga bridge framework fpga: fpga-area: support device tree control for FPGA programming ARM: socfpga: fpga bridge driver support Documentation/ABI/testing/sysfs-class-fpga-bridge | 11 + .../bindings/fpga/altera-fpga2sdram-bridge.txt | 15 + .../bindings/fpga/altera-hps2fpga-bridge.txt | 43 +++ .../devicetree/bindings/fpga/fpga-area.txt | 70 ++++ Documentation/fpga/fpga-area.txt | 299 +++++++++++++++ drivers/fpga/Kconfig | 21 ++ drivers/fpga/Makefile | 7 + drivers/fpga/altera-fpga2sdram.c | 174 +++++++++ drivers/fpga/altera-hps2fpga.c | 213 +++++++++++ drivers/fpga/fpga-area.c | 313 ++++++++++++++++ drivers/fpga/fpga-bridge.c | 388 ++++++++++++++++++++ include/linux/fpga/fpga-bridge.h | 56 +++ 12 files changed, 1610 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-fpga-bridge create mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt create mode 100644 Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt create mode 100644 Documentation/devicetree/bindings/fpga/fpga-area.txt create mode 100644 Documentation/fpga/fpga-area.txt create mode 100644 drivers/fpga/altera-fpga2sdram.c create mode 100644 drivers/fpga/altera-hps2fpga.c create mode 100644 drivers/fpga/fpga-area.c create mode 100644 drivers/fpga/fpga-bridge.c create mode 100644 include/linux/fpga/fpga-bridge.h -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/