From patchwork Tue Sep 5 23:26:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kubalewski X-Patchwork-Id: 13375189 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59C22CCF9E2 for ; Tue, 5 Sep 2023 23:29:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=HxcCcZh5HBWv8issPzB4wJ8yodN8i9QiHeIoGZcMQes=; b=gpIRyjCzkTJrR4 gcUrSW3QKGaiFZ/220DpmeaZoNUrdBkaEdJAuDU+hzkLzzXU9jwtBi7YzOwpPqHfRL6qB4yQ1O4AK amwOxkmNRKLn5RG0kuPDI/qZAc07xWQy6555DC3jd5+eJJW6M4F6koHm+hPb304X9IQeksuQlMZE6 Bjzx54a2W+Dxk6IiGHaCDD6stZcSydV8rK94gtt/eDCFnMcoVOUzAByEt7ZyTKBlJTaAPQe1EeGkb oqoODU2gjmVfOowS+113WGFrL2nPJSn1Sv6/zJZTKqDl47+HUrgidhJ4PhYhK+7nTNNf4qFyIoGXQ +jGkWQIjPZPxtm1Gg16g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdfTc-006tYB-14; Tue, 05 Sep 2023 23:28:56 +0000 Received: from mgamail.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdfTZ-006tXJ-2y for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2023 23:28:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693956533; x=1725492533; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0wpZ4uEiyvX8GLZIB6P9f6saFvhcvQ+D5/9/Acf/xw4=; b=PU0vucXsv9eMj2purAmTLIcDxHron8UMn4KGopWQFfvv7N14oHoj7TT9 jRvWGm5/K4ayA8/l3v138cTYit19hiGjKET6Ii6tSOBCT1/yYfy2Px7bT ZPBquSL9U8KterjtYFiKartp741SYHz5mLTXQBtB2OL9K8/M5jyLsDmpi AdXPX0q2rV2LbJItyh2JAjvLtZd94R/2TRcsaLwTcyM6FcibefRdu+CNB v45NQOJNKO6ZAkFpnj19lc96/L+Eo4P6Uu5pqv2n8NEQZhH7kks3IMs8A Ym3Z08dsj43RHwlJSWFlLiSwYIN6BFc5iq9Odzh53ZCyvGp85wu5qi/tw A==; X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="379643889" X-IronPort-AV: E=Sophos;i="6.02,230,1688454000"; d="scan'208";a="379643889" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2023 16:28:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="744448396" X-IronPort-AV: E=Sophos;i="6.02,230,1688454000"; d="scan'208";a="744448396" Received: from amlin-018-114.igk.intel.com ([10.102.18.114]) by fmsmga007.fm.intel.com with ESMTP; 05 Sep 2023 16:28:47 -0700 From: Arkadiusz Kubalewski To: kuba@kernel.org, jiri@resnulli.us, jonathan.lemon@gmail.com, pabeni@redhat.com, vadim.fedorenko@linux.dev Cc: linux-arm-kernel@lists.infradead.org, poros@redhat.com, mschmidt@redhat.com, netdev@vger.kernel.org, linux-clk@vger.kernel.org, bvanassche@acm.org, intel-wired-lan@lists.osuosl.org, Arkadiusz Kubalewski Subject: [PATCH net-next 0/4] dpll: add phase offset and phase adjust Date: Wed, 6 Sep 2023 01:26:06 +0200 Message-Id: <20230905232610.1403647-1-arkadiusz.kubalewski@intel.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_162854_021440_FFB029C1 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This RFC is to start discussion over extending dpll interface with possibility to: - read a phase offset between signals on pin and dpll, - adjust a phase of pin's signal. The RFC is based on latest version of dpll interface submitted for net-next [1]. [1] https://lore.kernel.org/netdev/20230824213132.827338-1-vadim.fedorenko@linux.dev/ Arkadiusz Kubalewski (4): dpll: docs: add support for pin signal phase offset/adjust dpll: spec: add support for pin-dpll signal phase offset/adjust dpll: netlink/core: add support for pin-dpll signal phase offset/adjust ice: dpll: implement phase related callbacks Documentation/driver-api/dpll.rst | 53 ++++- Documentation/netlink/specs/dpll.yaml | 33 +++- drivers/dpll/dpll_netlink.c | 99 +++++++++- drivers/dpll/dpll_nl.c | 8 +- drivers/dpll/dpll_nl.h | 2 +- drivers/net/ethernet/intel/ice/ice_dpll.c | 224 +++++++++++++++++++++- drivers/net/ethernet/intel/ice/ice_dpll.h | 10 +- include/linux/dpll.h | 18 ++ include/uapi/linux/dpll.h | 8 +- 9 files changed, 443 insertions(+), 12 deletions(-)