From patchwork Mon Jan 21 10:41:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 10773551 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E34D113B4 for ; Mon, 21 Jan 2019 10:47:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D209C29E32 for ; Mon, 21 Jan 2019 10:47:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5DCA29E35; Mon, 21 Jan 2019 10:47:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5EF5829E32 for ; Mon, 21 Jan 2019 10:47:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=WsPTfxP+5npRxO9rU8zSh63aU3+G1mlBmHpmOJmuO40=; b=XkY 6J6ePChc39OU1OWEmwBh8NZU9BFD+VwJJy89DVilkwNUKRlDxNbcY7tDLLhSmLDCXBAy76aUMSByu jTHBy/IDCY6NY3LYScp5LsoTTU28S+QzP7YLXARPg0F+cZE390rNekEotvnp1yfjs0vqk8I94aXDm wGUBCe0KaS1F4wKSeDOyt4nJs5+AHYnzNV88pPy/h5C1K8XCXCaNMFnvTC2Q1XwZdnegy9h9THgpp 29tNE/nUYy86N3fsotb3jr4jEmTI0NMDrqCRC42DBapFz6x6O039FcCGriBu2BmjxDdcgnGohohkV 2xYCsA0pS7Cp+u1KovFRcITh3a15ftQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1glX6z-00016R-NV; Mon, 21 Jan 2019 10:47:25 +0000 Received: from inva021.nxp.com ([92.121.34.21]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1glX6w-000158-Hb for linux-arm-kernel@lists.infradead.org; Mon, 21 Jan 2019 10:47:24 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1B6C1200030; Mon, 21 Jan 2019 11:47:19 +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 33CC2200184; Mon, 21 Jan 2019 11:47:15 +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 1FFCB402C7; Mon, 21 Jan 2019 18:47:10 +0800 (SGT) From: Yangbo Lu To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [v3, 0/6] External trigger stamp fifo support for ptp_qoriq Date: Mon, 21 Jan 2019 18:41:37 +0800 Message-Id: <20190121104143.46782-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.14.1 X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190121_024722_725567_0ECC82BA X-CRM114-Status: UNSURE ( 6.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Cochran , Rob Herring , Shawn Guo , "David S . Miller" , Yangbo Lu MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch-set is to add external trigger stamp fifo support by a new binding "fsl,extts-fifo", and to add fiper pulse loopback support which is very useful for validating trigger without external hardware. Also fixed issues in interrupt enabling/handling. "fsl,extts-fifo" is required to be added into 1588 timer dts node whose hardware supports it. The work will be done for some QorIQ platforms dts in the near future. Yangbo Lu (6): ptp_qoriq: fix interrupt enabling and handling ptp_qoriq: support external trigger stamp FIFO dt-binding: ptp_qoriq: document "fsl,extts-fifo" property ARM: dts: ls1021a: add 1588 external trigger stamp fifo support ptp: add debugfs support for ptp_qoriq MAINTAINERS: add drivers/ptp/ptp_qoriq_debugfs.c into QorIQ PTP list .../devicetree/bindings/ptp/ptp-qoriq.txt | 2 + MAINTAINERS | 1 + arch/arm/boot/dts/ls1021a.dtsi | 1 + drivers/ptp/Kconfig | 2 +- drivers/ptp/Makefile | 4 +- drivers/ptp/ptp_qoriq.c | 129 +++++++++++++------- drivers/ptp/ptp_qoriq_debugfs.c | 101 +++++++++++++++ include/linux/fsl/ptp_qoriq.h | 15 +++ 8 files changed, 210 insertions(+), 45 deletions(-) create mode 100644 drivers/ptp/ptp_qoriq_debugfs.c