Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp90747pxh; Tue, 9 Nov 2021 21:50:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJynIEAarh/WZV7Iw0ADeqqYWf/o68k6Cj+ovNPctoW616P10SCgvz+kw/nVgBZSnZdvpp+e X-Received: by 2002:a17:906:3157:: with SMTP id e23mr16996042eje.359.1636523452110; Tue, 09 Nov 2021 21:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636523452; cv=none; d=google.com; s=arc-20160816; b=jmMNCkrInNSZ2f/hepA0cimsKU12uhLesgI7rjA0E0cr4bqzsWtTPCXneqUimbm5c9 yj61m9fm252lu2Ps81IdkICKU0TbtdsOGVSQ3x5nGtlUeEueW4tvoQdslAAgufnvM+FI Q7j+HtFUJmhfNhzoXc8tG13NzYTWR9OSd3ip1rXMzv5oOvBvqWqcjt0DwFcxdhTQ11dX SOZR13mMxIJ72Gil7l7AC0iBqu45hwQvoUV0RZ+mT5yBgEGxjEpRXWNhbYC1Q3jr74jg VDlP+ZEufn8UgalbxnwRcthhwVx3LVNbcRZQQp4+In6GIjDLosDVmSAxNwZvq3pTSJRM L5dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=jxGBXiBw/r4gN9rGq3NY29r0FQ8CQ1oI6i9b3FtyEjQ=; b=ZW73Km/bxAtdypZvg6gNXP4WLwKLoTeyry5A/HAMePkcYVKEC/SUErJVn6qRIsOQ+h AIUAFS4fbR7Tc/8hCHcP0+Hfyl66oM6kVgXz2Jc0jTspbhexv3ORGEHOpwt9HJ8Nbtvl hThyOsLqnQyyTsXwDKkCdAObKSmk67qbJ25/gHWmLRq70LfUfUF82lACH03mnJ6uw+5l So0QuUAEj4xMVOqjfl1oQnaMaFDcQqngRcf6gsmmjM2g/kgSx+AiirWGQMkG7jgYqQfs IldjpkO3iWmLyA5DXoTzm+6jgUrD6eswDi4AmEHa6a5u/UaXCSv836u+c8FeGfRfmOd7 KYWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ht11si38054684ejc.457.2021.11.09.21.50.28; Tue, 09 Nov 2021 21:50:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbhKJFvb (ORCPT + 99 others); Wed, 10 Nov 2021 00:51:31 -0500 Received: from inva020.nxp.com ([92.121.34.13]:37950 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbhKJFva (ORCPT ); Wed, 10 Nov 2021 00:51:30 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A19BF1A0E27; Wed, 10 Nov 2021 06:48:42 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6A8871A0E1F; Wed, 10 Nov 2021 06:48:42 +0100 (CET) Received: from lsv03186.swis.in-blr01.nxp.com (lsv03186.swis.in-blr01.nxp.com [92.120.146.182]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 3BF45183AC8B; Wed, 10 Nov 2021 13:48:41 +0800 (+08) From: Apeksha Gupta To: qiangqing.zhang@nxp.com, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-devel@linux.nxdi.nxp.com, LnxRevLi@nxp.com, sachin.saxena@nxp.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, Apeksha Gupta Subject: [PATCH 0/5] drivers/net: add NXP FEC-UIO driver Date: Wed, 10 Nov 2021 11:18:33 +0530 Message-Id: <20211110054838.27907-1-apeksha.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series introduce the fec-uio driver, supported for the inbuilt NIC found in the NXP i.MX 8M Mini SoC. Basic hardware initialization is performed in kernel via userspace input/output(UIO) to support FEC ethernet device detection in user space. Userspace PMD uses standard UIO interface to access kernel for PHY initialisation and for mapping the allocated memory of register & buffer descriptor with DPDK which gives access to non-cacheable memory for buffer descriptor. Module fec-uio.ko will get generated. imx8mm-evk-dpdk.dtb is required to support fec-uio driver. Apeksha Gupta (5): dt-bindings: add binding for fec-uio net: fec: fec-uio driver ARM64: defconfig: Add config for fec-uio MAINTAINERS: add new file arm64: dts: imx8mm-evk-dpdk: dts for fec-uio driver .../devicetree/bindings/net/fsl,fec-uio.yaml | 32 ++ MAINTAINERS | 6 + arch/arm64/boot/dts/freescale/Makefile | 1 + .../boot/dts/freescale/imx8mm-evk-dpdk.dts | 10 + arch/arm64/configs/defconfig | 1 + drivers/net/ethernet/freescale/Kconfig | 10 + drivers/net/ethernet/freescale/Makefile | 7 +- drivers/net/ethernet/freescale/fec_uio.c | 437 ++++++++++++++++++ 8 files changed, 501 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/fsl,fec-uio.yaml create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-evk-dpdk.dts create mode 100644 drivers/net/ethernet/freescale/fec_uio.c -- 2.17.1