Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp803704ybi; Fri, 14 Jun 2019 03:41:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqztNVasdXF9DehyGyWnHopDEO6rIBwWGU4JC7WqmWLrg6LJL/q5VHCcwg/H4KoYuCSNouJ0 X-Received: by 2002:a65:40cb:: with SMTP id u11mr12427815pgp.333.1560508894010; Fri, 14 Jun 2019 03:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560508893; cv=none; d=google.com; s=arc-20160816; b=QKcNBi5HqxHzE6NPIaMmCw6wEr+yU3WHNgnDl4IyQ4l5R/7ljdWWF0d1g91XMwXJme xYWKrfOJe7mLDESgCUHULVfXvtXljFQ6Ha2SL0DJx36ea9HE7Hgp/x6W270DAkoJ6hsl NwjcEONHkVGpyqhEhM295D9eve01bSTES3zpLkDffPkYqPJrCZCVNJZYjLRcCeTS3JdR cqJ7yghLSjXwXI5O265gvI2PMWyM7vu7KS+UBwDcuElH7VJz0u5rK57uCjAyRia9nzqY oUznLjruLQyzYMKTYiW7oVpwWTuz96Dyt+MpaB6fKhBqEWPP1n2Ps89TV6NBHr2z8ZGo Nuwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=exhvAwusUnN6NwPansLDCUolmcy5m8OedMc16C539dM=; b=cnCJjCuNT+TV8ZV4J7qHaPA7HCDlrRHpV6FCmkyH+k17JO7grgNJeQLhAIRZGRkZJH Elgg6MH70FXOtcgnJgnPW0UhEXiBMPVeAl5PVVSWi9Lq2qY2djTIyeBQobVO7P5mZBCh Ke6HPjdjjTMWdi9qnlMb3g0zU9kqiK82QJNFNDgVaTWL1OUEDKhGdiGUPkwNlfHQEpHJ f1RjrUwOSeJTFf4kmXBBnqXXFH74eXvwH9t9Dgd5LhAOpMSMP7POuAqtCT2AzxV03sLd S42WR0RDnfbJroZ7m0S20jhlQMnSl89EWpY9e2kzeFKd25ky7Y4C9CwNJix9AGBmXrwJ GiXg== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e29si2203149pgb.428.2019.06.14.03.41.17; Fri, 14 Jun 2019 03:41:33 -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; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727237AbfFNKjM (ORCPT + 99 others); Fri, 14 Jun 2019 06:39:12 -0400 Received: from inva021.nxp.com ([92.121.34.21]:35992 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbfFNKjM (ORCPT ); Fri, 14 Jun 2019 06:39:12 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 31CED200E7D; Fri, 14 Jun 2019 12:39:10 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A81A12003DA; Fri, 14 Jun 2019 12:39:05 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 386C7402CA; Fri, 14 Jun 2019 18:39:00 +0800 (SGT) From: Yangbo Lu To: netdev@vger.kernel.org, "David S . Miller" , Richard Cochran , Rob Herring , Shawn Guo , Andrew Lunn Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Yangbo Lu Subject: [v2, 0/6] Reuse ptp_qoriq driver for dpaa2-ptp Date: Fri, 14 Jun 2019 18:40:49 +0800 Message-Id: <20190614104055.43998-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Although dpaa2-ptp.c driver is a fsl_mc_driver which is using MC APIs for register accessing, it's same IP block with eTSEC/DPAA/ENETC 1588 timer. This patch-set is to convert to reuse ptp_qoriq driver by using register ioremap and dropping related MC APIs. However the interrupts could only be handled by MC which fires MSIs to ARM cores. So the interrupt enabling and handling still rely on MC APIs. MC APIs for interrupt and PPS event support are also added by this patch-set. --- Changes for v2: - Allowed to compile with COMPILE_TEST. Yangbo Lu (6): ptp: add QorIQ PTP support for DPAA2 dpaa2-ptp: reuse ptp_qoriq driver dt-binding: ptp_qoriq: support DPAA2 PTP compatible arm64: dts: fsl: add ptp timer node for dpaa2 platforms dpaa2-ptp: add interrupt support MAINTAINERS: maintain DPAA2 PTP driver in QorIQ PTP entry .../devicetree/bindings/ptp/ptp-qoriq.txt | 3 +- MAINTAINERS | 9 +- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 8 + arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 8 + arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 8 + drivers/net/ethernet/freescale/dpaa2/Kconfig | 3 +- drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c | 242 +++++++++++---------- drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h | 48 +++- drivers/net/ethernet/freescale/dpaa2/dprtc.c | 191 ++++++++++++---- drivers/net/ethernet/freescale/dpaa2/dprtc.h | 62 ++++-- drivers/ptp/Kconfig | 2 +- 11 files changed, 386 insertions(+), 198 deletions(-) -- 2.7.4