Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp80436lqj; Wed, 10 Apr 2024 04:52:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrXTqdUcX8J0cFEF/6GN+VfcfE1BoNMQVlfcdI1W5KrtVHBx29OSRnHLxuWHzu3HtsjtCeh5EkvxAVm6p3fXYviKyqh+6TND9Oc40xwQ== X-Google-Smtp-Source: AGHT+IHwA/hJJXRpIhmVUUaNpj+D7X0Kv1Wr+euCL7pq/SlYzkb9DgugQ7aJe2G/nFX0trOyeVk5 X-Received: by 2002:a50:9b1b:0:b0:56e:2e41:3c39 with SMTP id o27-20020a509b1b000000b0056e2e413c39mr1585269edi.19.1712749955385; Wed, 10 Apr 2024 04:52:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712749955; cv=pass; d=google.com; s=arc-20160816; b=yjlQN+xUnAJSp+VIl52OkJciDxf5iTiRAXC+uAe6z7ClpMeSQbr/ms9WdA3FyunpSD 6UpWjk3JaxYXEUYbJ23B6gznpCvrzhrm0z0dc580WQaoQ7jtjP47909VjoEWZRPnjKtw cr48ImSKUJR+ZYGeRte/QtlnD2qTrZlpqirYOJj6oJvyvpY+8xOmjAp1j70F+XzIBYSo M2xEq5Zs9gfNnzehTHHO6TlMIYg2ipfZMhi5sVF7wCRhSX4EIju8T53m93q8tEfYZCh4 2W+ka3OukiCD8QGypWbKm//iJHArPVzHCK0VERJtaxAQ3TRVEfObdwskgg+TaxmxZFHG obag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bHwDIT4x5Zr5RPYBh5Eke+JGXjuNwsZSdAJOjmTEn1M=; fh=9Ba0DaKzo2I1dMve9dlPa9QXf3otfKRHKeoWQOhs61U=; b=Q8hwoYus9R3rA59aE1N3iQ4mnFKZ3gGoU5m7uZ/ivyR0zLMKcc5mL/QoChkTEE0/N6 m8qm09zQUlJsf+suGtUUkVWi69E8i/IDn2ZJ8uaAwFJe+fPc5cPV/BtKn2QEQ2/WX9Q9 EaNf/8NGCyscnTIpTqn5pylZGuCm2JVT9ly1kU1J2xtCI1PJsPvnTWcFA0SZPTCm2vCX 8r32QR+cSuCNRK9kdRWY/h3EA8TyjTvbAdH/GGSS1TXQYrE24fQ3QfLSr5qD21YWcwHD 8tWw/ic0oggmzJrROD3LEPnyxXtGIqf4/jtn3ZoBS+JdkLBqkwgQKa6nJlClWoiyabL9 LBAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TbtFC4vs; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-138446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 2-20020a508e42000000b0056beaae3d0dsi5510581edx.547.2024.04.10.04.52.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TbtFC4vs; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-138446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 21E511F22F12 for ; Wed, 10 Apr 2024 11:52:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5086D15F3FC; Wed, 10 Apr 2024 11:49:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TbtFC4vs" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED77115F3F7; Wed, 10 Apr 2024 11:49:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712749785; cv=none; b=mDvblD3CIrun9A3lepq+qnauJNdiuhnoaS0dvG7FyaQHPyBRjUsmM7Dgpd/2DKnw0rDhYHDjYLHijJNYvvT8wD8HbjkmLof0Sbq14oZH+Z4/v4KJjdPKLhBfnC8A4DQ01YIAahMhgTgPWZi4cbz5Z9o8n7yLmGdcoXKgZ/r8BKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712749785; c=relaxed/simple; bh=9iwioP7RAGt6CZjyiP2VZXazdAn5HXvP+jiooI94v+E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YB7McNbquELV+yfATXOTo9mGT2hdmjtHRTgKjtRaM4cDAD7ANaw4/ECxn8t4f02snlzE/sKAaC0sG/gGAYGnG3m60+cDzHHOy0khjorXyRJJ0C+jHK6n3Glv0c7WRk/UtXydN1LkTUjcfzpuLnjjny0OTCV2T8cHddh3yqaYaeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TbtFC4vs; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712749784; x=1744285784; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9iwioP7RAGt6CZjyiP2VZXazdAn5HXvP+jiooI94v+E=; b=TbtFC4vs6Q3l444l9Gsw45ZgKxk6UgyXVWAwwNl5jXmyKy1rii5T6ViA HvVSy6DnVBBtR0qdxU+RoJeLbQiiWian5KAc6+UrBZ+3ThBm1BQ4i33f5 +gdhhv0dZM+2hvXqM01qarz8dpXjVSPfpyrZdyUu4o5xbxaXaHUct7GB3 h8ISb7nGAOxSkiMZ/DqLH5seHGICL1uVHQbeH/RZ9rVTMqb92koAzy5BA nJoiu8zPIu51vkSJOigLVZS8v57FzMMCY5YZc0CqJENGKzNWzo2UpUIvN IxRRYvy04KIztAamYolEKHcaLLBerVAvv4dLqItKYcd9CNZ+9Kt4dKOf5 g==; X-CSE-ConnectionGUID: dHihnkD2RHaKZ08DOzMWcg== X-CSE-MsgGUID: MvxUYidsQ8ej3RwWC3j3Ng== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="11944228" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="11944228" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 04:49:43 -0700 X-CSE-ConnectionGUID: ZMxXGvjpTKqYYBzVgaXFdQ== X-CSE-MsgGUID: wruXKCixRWOi5eIjY0pPUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="43769356" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa002.fm.intel.com with ESMTP; 10 Apr 2024 04:49:36 -0700 From: lakshmi.sowjanya.d@intel.com To: tglx@linutronix.de, jstultz@google.com, giometti@enneenne.com, corbet@lwn.net, linux-kernel@vger.kernel.org Cc: x86@kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, intel-wired-lan@lists.osuosl.org, andriy.shevchenko@linux.intel.com, eddie.dong@intel.com, christopher.s.hall@intel.com, jesse.brandeburg@intel.com, davem@davemloft.net, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, perex@perex.cz, linux-sound@vger.kernel.org, anthony.l.nguyen@intel.com, peter.hilber@opensynergy.com, pandith.n@intel.com, subramanian.mohan@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v6 10/11] Documentation: driver-api: pps: Add Intel Timed I/O PPS generator Date: Wed, 10 Apr 2024 17:18:27 +0530 Message-Id: <20240410114828.25581-11-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240410114828.25581-1-lakshmi.sowjanya.d@intel.com> References: <20240410114828.25581-1-lakshmi.sowjanya.d@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Lakshmi Sowjanya D Add Intel Timed I/O PPS usage instructions. Co-developed-by: Pandith N Signed-off-by: Pandith N Signed-off-by: Lakshmi Sowjanya D Reviewed-by: Andy Shevchenko Acked-by: Rodolfo Giometti --- Documentation/driver-api/pps.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/driver-api/pps.rst b/Documentation/driver-api/pps.rst index 78dded03e5d8..52a6d5faf885 100644 --- a/Documentation/driver-api/pps.rst +++ b/Documentation/driver-api/pps.rst @@ -246,3 +246,25 @@ delay between assert and clear edge as small as possible to reduce system latencies. But if it is too small slave won't be able to capture clear edge transition. The default of 30us should be good enough in most situations. The delay can be selected using 'delay' pps_gen_parport module parameter. + + +Intel Timed I/O PPS signal generator +------------------------------------ + +Intel Timed I/O is a high precision device, present on 2019 and newer Intel +CPUs, that can generate PPS signals. + +Timed I/O and system time are both driven by same hardware clock. The signal +is generated with a precision of ~20 nanoseconds. The generated PPS signal +is used to synchronize an external device with system clock. For example, +share your clock with a device that receives PPS signal, generated by +Timed I/O device. There are dedicated Timed I/O pins to deliver the PPS signal +to an external device. + +Usage of Intel Timed I/O as PPS generator: + +Start generating PPS signal:: + $echo 1 > /sys/devices/platform/INTCxxxx\:00/enable + +Stop generating PPS signal:: + $echo 0 > /sys/devices/platform/INTCxxxx\:00/enable -- 2.35.3