From patchwork Wed Jun 22 00:06:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Fedorenko X-Patchwork-Id: 12889959 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21E72C433EF for ; Wed, 22 Jun 2022 00:07:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231873AbiFVAHB (ORCPT ); Tue, 21 Jun 2022 20:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbiFVAHA (ORCPT ); Tue, 21 Jun 2022 20:07:00 -0400 Received: from novek.ru (unknown [213.148.174.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD3A14D37 for ; Tue, 21 Jun 2022 17:06:59 -0700 (PDT) Received: from nat1.ooonet.ru (gw.zelenaya.net [91.207.137.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by novek.ru (Postfix) with ESMTPSA id 0F227500084; Wed, 22 Jun 2022 03:05:26 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru 0F227500084 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1655856328; bh=+MmJR6FSY2vO3bJWiEblanx6sijFokKt7tA4B0hPP5s=; h=From:To:Cc:Subject:Date:From; b=VeXQh6t5rJU/cAwrRucOnejZaEnp/F9P8KDC2t7CgrAiR9jXpS5Tz0O+1j8Qfd4OB fynj6b/jftLCv/l1/PEH9h8fzOIP8/UoH4+j09AHwzdMsvLiLRjMJH6gtpkT2gUuUZ MiXxwma8u3hYDYhBI5xriUBRipHhTmkxbjx32OM0= From: Vadim Fedorenko To: Jakub Kicinski Cc: Vadim Fedorenko , Aya Levin , Arkadiusz Kubalewski , netdev@vger.kernel.org, linux-arm-kernel@vger.kernel.org Subject: [RFC PATCH 0/3] Create common DPLL/clock configuration API Date: Wed, 22 Jun 2022 03:06:48 +0300 Message-Id: <20220622000651.27299-1-vfedorenko@novek.ru> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-State: RFC From: Vadim Fedorenko Implement common API for clock/DPLL configuration and status reporting. The API utilises netlink interface as transport for commands and event notifications. This API aim to extend current pin configuration and make it flexible and easy to cover special configurations. Vadim Fedorenko (3): dpll: Add DPLL framework base functions dpll: add netlink events ptp_ocp: implement DPLL ops MAINTAINERS | 8 + drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/dpll/Kconfig | 7 + drivers/dpll/Makefile | 7 + drivers/dpll/dpll_core.c | 146 +++++++++ drivers/dpll/dpll_core.h | 40 +++ drivers/dpll/dpll_netlink.c | 583 ++++++++++++++++++++++++++++++++++++ drivers/dpll/dpll_netlink.h | 14 + drivers/ptp/Kconfig | 1 + drivers/ptp/ptp_ocp.c | 85 ++++++ include/linux/dpll.h | 24 ++ include/uapi/linux/dpll.h | 77 +++++ 13 files changed, 995 insertions(+) create mode 100644 drivers/dpll/Kconfig create mode 100644 drivers/dpll/Makefile create mode 100644 drivers/dpll/dpll_core.c create mode 100644 drivers/dpll/dpll_core.h create mode 100644 drivers/dpll/dpll_netlink.c create mode 100644 drivers/dpll/dpll_netlink.h create mode 100644 include/linux/dpll.h create mode 100644 include/uapi/linux/dpll.h