From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F192BC282C4 for ; Tue, 12 Feb 2019 04:30:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C5A6D21773 for ; Tue, 12 Feb 2019 04:30:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727247AbfBLEaC (ORCPT ); Mon, 11 Feb 2019 23:30:02 -0500 Received: from inva021.nxp.com ([92.121.34.21]:37702 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbfBLEaB (ORCPT ); Mon, 11 Feb 2019 23:30:01 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 801B5200206; Tue, 12 Feb 2019 05:29:59 +0100 (CET) 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 95729200029; Tue, 12 Feb 2019 05:29:55 +0100 (CET) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 832D9402B1; Tue, 12 Feb 2019 12:29:50 +0800 (SGT) From: Yangbo Lu To: netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: "David S . Miller" , Richard Cochran , Rob Herring , Claudiu Manoil , Yangbo Lu Subject: [v3, 0/9] Add ENETC PTP clock driver Date: Tue, 12 Feb 2019 12:23:55 +0800 Message-Id: <20190212042404.15575-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.14.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org There is same QorIQ 1588 timer IP block on the new ENETC Ethernet controller with eTSEC/DPAA Ethernet controllers. However it's different endianness (little-endian) and using PCI driver. To support ENETC PTP driver, ptp_qoriq driver needed to be reworked to make functions global for reusing, to add little- endian support, to add ENETC memory map support, and to add ENETC dependency for ptp_qoriq driver. In addition, although ENETC PTP driver is a PCI driver, the dts node still could be used. Currently the ls1028a dtsi which is the only platform by now using ENETC is not complete, so there is still dependency for ENETC PTP node upstreaming. This will be done in the near future. The hardware timestamping support for ENETC is done but needs to be reworked with new method in internal git tree, and will be sent out soon. Yangbo Lu (9): ptp_qoriq: make structure/function names more consistent ptp_qoriq: make ptp operations global ptp_qoriq: convert to use ptp_qoriq_init/free ptp_qoriq: add little enadian support dt-binding: ptp_qoriq: add little-endian support ptp_qoriq: fix register memory map ptp: add QorIQ PTP support for ENETC enetc: add PTP clock driver MAINTAINERS: add enetc_ptp driver into QorIQ PTP list .../devicetree/bindings/ptp/ptp-qoriq.txt | 3 + MAINTAINERS | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 2 +- drivers/net/ethernet/freescale/enetc/Kconfig | 12 + drivers/net/ethernet/freescale/enetc/Makefile | 3 + drivers/net/ethernet/freescale/enetc/enetc_hw.h | 5 +- drivers/net/ethernet/freescale/enetc/enetc_ptp.c | 144 +++++++ drivers/net/ethernet/freescale/gianfar_ethtool.c | 2 +- drivers/ptp/Kconfig | 2 +- drivers/ptp/ptp_qoriq.c | 437 +++++++++++--------- drivers/ptp/ptp_qoriq_debugfs.c | 48 ++-- include/linux/fsl/ptp_qoriq.h | 63 ++- 12 files changed, 466 insertions(+), 256 deletions(-) create mode 100644 drivers/net/ethernet/freescale/enetc/enetc_ptp.c