Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1923197imm; Thu, 7 Jun 2018 02:28:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKSxwp7/HCRnmjxPL1lqDzdZiiq1kvnWZ+OXBtIfyUjrewpaXLTgD8neJZNSMf4W7bLkHSt X-Received: by 2002:a17:902:6b8b:: with SMTP id p11-v6mr1224059plk.212.1528363738304; Thu, 07 Jun 2018 02:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528363738; cv=none; d=google.com; s=arc-20160816; b=orTy0HeSf0rqZy5yiKuDU4uey4xnacW1ymJ8q6aOnc1ZvRZOW5ihrSW3ASMBpUv4D6 I5awqvPHuvv71wQtubJ/JDDacxaSbsZx82MSblVwRux3xWPK+4hXEiwVrNLSR82GmaYJ USd1/6TxZOG9Qsov72MnNjm6c6rbXrcKkaRWBQ4OnuW9Q8XeOn/KCJxtmNqGn25/V4+o oUY1KAA3oS1Mo2b6NeHgSR/hDsFHwtsUsXgUsEvdUTEZtvhY4kGQiABM68RBgBxgjyGM eH9BAQkrRzUcmb4ocXhZaIfo03P12Z2Nx3Pi/DydTNk5Q+lTSk0EXPavXLLNnfSnuWWn s2cg== 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=SMkYAfh0B/29ywmfnQCGqW0+gvzY86p2OEcnDRrRkDcm0IQ9E7lTgNlbhyVba86Ny7 VIiym88u+KF9C06dpn6LOiiWlGHjUFCRsBFLSTwTSt3H4l8iYV1rRmNSsFXSUWZqAx7d VTb7daJ8d2CjqjytLCAkGuatfJyP1iRwY+vfVxWr/15mzdG0iVmKrXtN++T+sK0oSVKM +1l06wAsHbN5SwygtjjVXUSsE6/T1qQVIN8f1Ak84qb8mOSB7QJWwi9OpLsZKlRElDD9 oYuYejbYevgGsGgTefYHNO/n7BG/TmslLgWAShM95wKXaXpUqIa+wZhnePU4nWqbE5j6 /0hw== 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 o5-v6si16756751pgd.653.2018.06.07.02.28.44; Thu, 07 Jun 2018 02:28:58 -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 S932865AbeFGJWh (ORCPT + 99 others); Thu, 7 Jun 2018 05:22:37 -0400 Received: from inva020.nxp.com ([92.121.34.13]:46073 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932377AbeFGJW0 (ORCPT ); Thu, 7 Jun 2018 05:22:26 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6085F1A02D8; Thu, 7 Jun 2018 11:22:24 +0200 (CEST) Received: from smtp.na-rdc02.nxp.com (inv1260.us-phx01.nxp.com [134.27.49.11]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 1FE301A02CE; Thu, 7 Jun 2018 11:22:24 +0200 (CEST) Received: from az84smr01.freescale.net (az84smr01.freescale.net [10.64.34.197]) by inv1260.na-rdc02.nxp.com (Postfix) with ESMTP id 8A02640A70; Thu, 7 Jun 2018 02:22:23 -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 w579MJ4g020959; Thu, 7 Jun 2018 02:22:20 -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: [v3, 00/10] Support DPAA PTP clock and timestamping Date: Thu, 7 Jun 2018 17:20:40 +0800 Message-Id: <20180607092050.46128-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(-)