Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3848245imm; Mon, 25 Jun 2018 05:43:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIvn+klO5JJHxQa/SCgIM9qKZlQWhds8D52ubup3axTJa4jT+RpLtQlE1l4ohNtI8QkRA9/ X-Received: by 2002:a65:6319:: with SMTP id g25-v6mr10815536pgv.437.1529930621874; Mon, 25 Jun 2018 05:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529930621; cv=none; d=google.com; s=arc-20160816; b=mCU+z9uPwabaWDVXzRTSd4GyRRiuhDFzwoUg9QkvrwSK+pgYkrOtUgfVM/p2YljAFu ItHOUE1KqI70eMLhZxVSrWGdXUrj7FMRcy1HNeb8/7ZLyhbnrGaLF8EBUr25Fm4O8uyM 3J1AGJncCU9frtRzLC2fG4LP1hszbF31Qwrdnrp5m+3bcm1+STSVDfScD3cSMEKASguy KIaUf13f/5YRh1z5j4Tt3LHrjl2nT+Hdb/vgj3GKgF2hvT5zuSUfKq4lr0TCPwBJCm5q v7ehZbU272tj3s0sh5NxU3mifFjCUdv1tMW0SCmLfDJscREwf25v6+2U/2k9ATqItvl1 j+IQ== 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 :arc-authentication-results; bh=nCFEKYoWbr29kYQW9BHNhZkDA1GeNmUund3GVR0UrH4=; b=QPYZQJRHQC1P3vWQuvko14gQPi3a3pFDmarwQwhdmPA94xbrnA8pCI78aPEdd5551O Zgt3kAuyYLpv63nQSO0/xa5p1qpUtufszzjQOfleSryeNYa5Yghc0gOXUk2uBuD9+cOT kClfaiM3I4kLn7w/xn/uHRWYayhHGrJeeCaYYD9bIEEfrqPS0XcYdXjQ4k5cQgSkumqz ffq9qjmSoT7VIDpm8AV5I0rFKjWD+SzEm4rvf8fXfaVU+QqMJDV48SyJy1JBdQS/O8gE qMWGttBl3JA5FCQNQKwLs4++20iPevV5UyIkxZoz9gOiMGj8sWii1MUYuYEu3gyLLJ83 S0uw== 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 t6-v6si14168764plo.508.2018.06.25.05.43.27; Mon, 25 Jun 2018 05:43:41 -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 S933677AbeFYMjM (ORCPT + 99 others); Mon, 25 Jun 2018 08:39:12 -0400 Received: from inva021.nxp.com ([92.121.34.21]:41974 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932246AbeFYMjK (ORCPT ); Mon, 25 Jun 2018 08:39:10 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 100BE20000A; Mon, 25 Jun 2018 14:39:09 +0200 (CEST) Received: from smtp.na-rdc02.nxp.com (inv1260.us-phx01.nxp.com [134.27.49.11]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D0587200079; Mon, 25 Jun 2018 14:39:08 +0200 (CEST) Received: from az84smr01.freescale.net (az84smr01.freescale.net [10.64.34.197]) by inv1260.na-rdc02.nxp.com (Postfix) with ESMTP id 4599840C72; Mon, 25 Jun 2018 05:39:08 -0700 (MST) Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w5PCd34L025070; Mon, 25 Jun 2018 05:39:04 -0700 From: Yangbo Lu To: netdev@vger.kernel.org, madalin.bucur@nxp.com, Richard Cochran , Rob Herring , Shawn Guo , "David S . Miller" Cc: devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yangbo Lu Subject: [v4, 00/10] Support DPAA PTP clock and timestamping Date: Mon, 25 Jun 2018 20:37:06 +0800 Message-Id: <20180625123716.28993-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.14.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 This patchset is to support DPAA FMAN PTP clock and HW timestamping. It had been verified on both ARM platform and PPC platform. - The patch #1 to patch #5 are to support DPAA FMAN 1588 timer in ptp_qoriq driver. - The patch #6 to patch #10 are to add HW timestamping support in DPAA ethernet driver. Yangbo Lu (10): fsl/fman: share the event interrupt ptp: support DPAA FMan 1588 timer in ptp_qoriq dt-binding: ptp_qoriq: add DPAA FMan support powerpc/mpc85xx: move ptp timer out of fman in dts arm64: dts: fsl: move ptp timer out of fman fsl/fman: add set_tstamp interface fsl/fman_port: support getting timestamp fsl/fman: define frame description command UPD dpaa_eth: add support for hardware timestamping dpaa_eth: add the get_ts_info interface for ethtool Documentation/devicetree/bindings/net/fsl-fman.txt | 25 +----- .../devicetree/bindings/ptp/ptp-qoriq.txt | 15 +++- arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi | 14 ++- arch/powerpc/boot/dts/fsl/qoriq-fman-0.dtsi | 14 ++- arch/powerpc/boot/dts/fsl/qoriq-fman-1.dtsi | 14 ++- arch/powerpc/boot/dts/fsl/qoriq-fman3-0.dtsi | 14 ++- arch/powerpc/boot/dts/fsl/qoriq-fman3-1.dtsi | 14 ++- arch/powerpc/boot/dts/fsl/qoriq-fman3l-0.dtsi | 14 ++- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 88 ++++++++++++++++- drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 + drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 39 ++++++++ drivers/net/ethernet/freescale/fman/fman.c | 3 +- drivers/net/ethernet/freescale/fman/fman.h | 1 + drivers/net/ethernet/freescale/fman/fman_dtsec.c | 27 +++++ drivers/net/ethernet/freescale/fman/fman_dtsec.h | 1 + drivers/net/ethernet/freescale/fman/fman_memac.c | 5 + drivers/net/ethernet/freescale/fman/fman_memac.h | 1 + drivers/net/ethernet/freescale/fman/fman_port.c | 12 +++ drivers/net/ethernet/freescale/fman/fman_port.h | 2 + drivers/net/ethernet/freescale/fman/fman_tgec.c | 21 ++++ drivers/net/ethernet/freescale/fman/fman_tgec.h | 1 + drivers/net/ethernet/freescale/fman/mac.c | 3 + drivers/net/ethernet/freescale/fman/mac.h | 1 + drivers/ptp/Kconfig | 2 +- drivers/ptp/ptp_qoriq.c | 104 ++++++++++++------- include/linux/fsl/ptp_qoriq.h | 38 ++++++-- 26 files changed, 361 insertions(+), 115 deletions(-)