From patchwork Thu Jan 17 01:49:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 10767451 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 55B8113B4 for ; Thu, 17 Jan 2019 01:55:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36F142AFAE for ; Thu, 17 Jan 2019 01:55:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AE102B3AB; Thu, 17 Jan 2019 01:55:15 +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 182092AFAE for ; Thu, 17 Jan 2019 01:55:13 +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=MDEvuqdsS+goWbFMJ/7u0DO3Cjcl9KHsV9smFmB7C44=; b=Zns WP8qSsuXzZ30IDRPdGh+6Nu37Fc0q4MIXqET6kVtosl+flQJztkjbbjowOiPl3psDfuf3DqB0rXl0 zlPPmfsG2hHYUf5OAaI3ZzoTW1ze66U5GwdX4hJ54DpacWUqrytwf1+siFijRP56Pv1IKEAvBNHxd xIoCGWjK6CAX/DahGcUp1D5tfLX481JU059lmTLMNI07D8NsP99dVLurc9aC9UCgMTM/uB3MVhqZx t23fdqS1nNa8DVlaZcNq0JhLKjZM2D0ZgEG81THHD3DpsXYoQAImsmBmP4Xj2r5YvQzsC410hblH/ /u+nqH3f2JS3KQQTuOZf75rH/ZXVZMQ==; 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 1gjwtj-0006cy-Hw; Thu, 17 Jan 2019 01:55:11 +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 1gjwtf-0005c9-Bx for linux-arm-kernel@lists.infradead.org; Thu, 17 Jan 2019 01:55:08 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 17254200211; Thu, 17 Jan 2019 02:55:03 +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 31FEF2001EA; Thu, 17 Jan 2019 02:54:59 +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 09E9D402E3; Thu, 17 Jan 2019 09:54:53 +0800 (SGT) From: Yangbo Lu To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [v2, 0/5] External trigger stamp fifo support for ptp_qoriq Date: Thu, 17 Jan 2019 09:49:31 +0800 Message-Id: <20190117014936.48117-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-20190116_175507_557298_62858BC9 X-CRM114-Status: UNSURE ( 5.17 ) 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 uses it. The work will be done for some QorIQ platforms dts in the near future. Yangbo Lu (5): 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_qoriq: add fiper pulse loopback support .../devicetree/bindings/ptp/ptp-qoriq.txt | 1 + arch/arm/boot/dts/ls1021a.dtsi | 1 + drivers/ptp/Kconfig | 18 +++ drivers/ptp/ptp_qoriq.c | 133 +++++++++++++------- include/linux/fsl/ptp_qoriq.h | 3 + 5 files changed, 112 insertions(+), 44 deletions(-)