Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3713860imu; Mon, 28 Jan 2019 09:29:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN4r5mEElaXjvqCkID+MlbdLp/jfUutmT5Of4Sq/m47uW5b+4kJJks24UIeDPdsT1wCqt+bV X-Received: by 2002:a17:902:6e0f:: with SMTP id u15mr22318307plk.175.1548696579451; Mon, 28 Jan 2019 09:29:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548696579; cv=none; d=google.com; s=arc-20160816; b=L4hv3rRFM3ROfWM0kvQdFM3jVQgbaddYYuK5OZJt23r9l7IffhO8Cyi7Iz6sdC5LNp X9l9fL8iVaK5KNZ6wCQem6tIFRnd8mGA+YkU91P/1YS06NHqCxwdLABBVqsc0IS1eDv6 T57y8/BZk35iqV8cA5+u3+ssupH+z3cjVRB6OPIMK8idoZutqL+a7AhBniMXHTIwItPQ qaIkHkzjA/MjWxHvCyri08j7rBVQS/ENe4wivtLL4wQUJju8CO2kuEVE8g76eycn8l5X qqJzucyMKn2NcZLtLVXe5E66ueGk18iRJxxxfdMItWRzrbRalZ5R6ZRZoLfx1dTYcKhW xsyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=9c94ZvxCSK0cROvZqsL0hv2uIWe3Ff/RtxslxEo6Lz4=; b=OG2AjEF9BTN6PWKi1lxk6MM97Ny/gjjJyQoMUdx5cy+qW92kY6M8T3mNs++vdgm9wp scoaNiyPxSORNg0Jscm2AUMWWcIl38f3pv+g2S0g0c90FbzauaXMwMhQp2+LJ6XDYo4o Bu0BlbT+pQtVFzYI5kpD1Gd0QrY2fS9BM3khD0vWQq+2FVOQT7xdHPyFuhaYPujE2tno Ky/F5eaq8GefX2ASLE/pLicSFaEFh9MBf6C1O6ISL0tFU9pTrZhses5q/XliALFR9+Mc J3jST1lfCy5ngxzVfqhYCQv9YWN/e/NEjR72av+8fjIvLH2wZkSCo+Fm7IeFWTQYk3XW UUDg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si33755071plt.68.2019.01.28.09.29.22; Mon, 28 Jan 2019 09:29:39 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730769AbfA1R2a (ORCPT + 99 others); Mon, 28 Jan 2019 12:28:30 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:45869 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730796AbfA1R21 (ORCPT ); Mon, 28 Jan 2019 12:28:27 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from lsun@mellanox.com) with ESMTPS (AES256-SHA encrypted); 28 Jan 2019 19:28:25 +0200 Received: from farm-0002.mtbu.labs.mlnx (farm-0002.mtbu.labs.mlnx [10.15.2.32]) by mtbu-labmailer.labs.mlnx (8.14.4/8.14.4) with ESMTP id x0SHSNJZ008163; Mon, 28 Jan 2019 12:28:23 -0500 Received: (from lsun@localhost) by farm-0002.mtbu.labs.mlnx (8.14.7/8.13.8/Submit) id x0SHSKQv009022; Mon, 28 Jan 2019 12:28:20 -0500 From: Liming Sun To: Rob Herring , Mark Rutland , Arnd Bergmann , David Woods , Andy Shevchenko , Darren Hart , Vadim Pasternak Cc: Liming Sun , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH v8 0/2] TmFifo platform driver for Mellanox BlueField SoC Date: Mon, 28 Jan 2019 12:28:05 -0500 Message-Id: <1548696487-8840-1-git-send-email-lsun@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series implements the device side platform driver support for the TmFifo on Mellanox BlueField SoC. TmFifo is part of the RShim component. It provides FIFOs to communicate with external host machine via USB or PCIe (SmartNic case). External host machine has driver to access the RShim component as well, which is not covered in this patch series. This patch series was submitted to drivers/soc in previous versions. This version (v8) re-submit it to drivers/platform according to the received comments / suggestions. Patch v8 1/2 has changes according to some comments from Vadim Pasternak during Mellanox internal review. Patch v8 2/2 was reviewed by Rob Herring before, but might need a second look since the location of the driver code is moved. Liming Sun (2): platform/mellanox: Add TmFifo driver for Mellanox BlueField Soc dt-bindings: soc: Add TmFifo binding for Mellanox BlueField SoC .../devicetree/bindings/soc/mellanox/tmfifo.txt | 23 + drivers/platform/mellanox/Kconfig | 13 +- drivers/platform/mellanox/Makefile | 1 + drivers/platform/mellanox/mlxbf-tmfifo-regs.h | 67 + drivers/platform/mellanox/mlxbf-tmfifo.c | 1289 ++++++++++++++++++++ 5 files changed, 1392 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/soc/mellanox/tmfifo.txt create mode 100644 drivers/platform/mellanox/mlxbf-tmfifo-regs.h create mode 100644 drivers/platform/mellanox/mlxbf-tmfifo.c -- 1.8.3.1