From mboxrd@z Thu Jan 1 00:00:00 1970 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 346BFC433FE for ; Tue, 29 Nov 2022 21:39:28 +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=UbyS0dAyXZa8IAh6QdqCKEx1WIFf4sewWrFRvWB4WC4=; b=Qh/W2pPB/mwCuR Onuo5WKSfPGYopUIy8/GvRWYZ+Um7JruT4Fg2zgc+qJAP7qnhe41CLKYtnUZjsO0vrOQfqVxkPtjV ufFOVN5HWMpaOd173BThntkPVcW6kp/6cGNs8v4hoWmuKqNIAcqr3a5uz932f/az3cguY8lrH32Iz Rcsnvp4dI7NDk7J+lDPMkxvaaeFchxUY0PvpB9XeonT12+jZrk/gnIHWOsjbDBue5DJ1JXkibzYLX NdgPtVVu2yXA73tGqBpmObESy34POmyFQ+mytLg9x+1Qtfkhvixk6FT/LhUFj4fpXThuXPqvhNBim i7dfWz0HFV+GIS6wbKyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p08J4-00BPzD-4n; Tue, 29 Nov 2022 21:38:22 +0000 Received: from [213.148.174.62] (helo=novek.ru) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p08Iz-00BPuf-Ds for linux-arm-kernel@lists.infradead.org; Tue, 29 Nov 2022 21:38:21 +0000 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 046FE5005E1; Wed, 30 Nov 2022 00:33:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru 046FE5005E1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1669757624; bh=263HAE4gThgLqxBgosD91fhw+CqsFKmvqW1+zdyZEB8=; h=From:To:Cc:Subject:Date:From; b=gmJLHISmuSGTpXgxJnzbXJWYIzMv32fM7PZU2jgwAtdM9OdAfAvVuCdHBTDs8TufS mgUQxuKc3FTGegWRYrk4sRqw7TUrFuqLUTL4CMwKOmvMPG5KH3mojDl/pXCVJCuTOE I1EJh5MqIoHgH5/lpuLlNBuobo9yTlymsNwc2uD0= From: Vadim Fedorenko To: Jakub Kicinski , Jiri Pirko , Arkadiusz Kubalewski , Jonathan Lemon , Paolo Abeni Cc: netdev@vger.kernel.org, Vadim Fedorenko , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [RFC PATCH v4 0/4] Create common DPLL/clock configuration API Date: Wed, 30 Nov 2022 00:37:20 +0300 Message-Id: <20221129213724.10119-1-vfedorenko@novek.ru> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221129_133819_626369_796076D9 X-CRM114-Status: GOOD ( 11.77 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. v3 -> v4: * redesign framework to make pins dynamically allocated (Arkadiusz) * implement shared pins (Arkadiusz) v2 -> v3: * implement source select mode (Arkadiusz) * add documentation * implementation improvements (Jakub) v1 -> v2: * implement returning supported input/output types * ptp_ocp: follow suggestions from Jonathan * add linux-clk mailing list v0 -> v1: * fix code style and errors * add linux-arm mailing list Arkadiusz Kubalewski (1): dpll: add dpll_attr/dpll_pin_attr helper classes Vadim Fedorenko (3): dpll: Add DPLL framework base functions dpll: documentation on DPLL subsystem interface ptp_ocp: implement DPLL ops Documentation/networking/dpll.rst | 271 ++++++++ Documentation/networking/index.rst | 1 + MAINTAINERS | 8 + drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/dpll/Kconfig | 7 + drivers/dpll/Makefile | 11 + drivers/dpll/dpll_attr.c | 278 +++++++++ drivers/dpll/dpll_core.c | 760 +++++++++++++++++++++++ drivers/dpll/dpll_core.h | 176 ++++++ drivers/dpll/dpll_netlink.c | 963 +++++++++++++++++++++++++++++ drivers/dpll/dpll_netlink.h | 24 + drivers/dpll/dpll_pin_attr.c | 456 ++++++++++++++ drivers/ptp/Kconfig | 1 + drivers/ptp/ptp_ocp.c | 123 ++-- include/linux/dpll.h | 261 ++++++++ include/linux/dpll_attr.h | 433 +++++++++++++ include/uapi/linux/dpll.h | 263 ++++++++ 18 files changed, 4002 insertions(+), 37 deletions(-) create mode 100644 Documentation/networking/dpll.rst create mode 100644 drivers/dpll/Kconfig create mode 100644 drivers/dpll/Makefile create mode 100644 drivers/dpll/dpll_attr.c 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 drivers/dpll/dpll_pin_attr.c create mode 100644 include/linux/dpll.h create mode 100644 include/linux/dpll_attr.h create mode 100644 include/uapi/linux/dpll.h -- 2.27.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 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 5FEF9C4321E for ; Tue, 29 Nov 2022 21:46:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236555AbiK2VqS (ORCPT ); Tue, 29 Nov 2022 16:46:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235700AbiK2VqQ (ORCPT ); Tue, 29 Nov 2022 16:46:16 -0500 Received: from novek.ru (unknown [213.148.174.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 863616B3A6; Tue, 29 Nov 2022 13:46:14 -0800 (PST) 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 046FE5005E1; Wed, 30 Nov 2022 00:33:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru 046FE5005E1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1669757624; bh=263HAE4gThgLqxBgosD91fhw+CqsFKmvqW1+zdyZEB8=; h=From:To:Cc:Subject:Date:From; b=gmJLHISmuSGTpXgxJnzbXJWYIzMv32fM7PZU2jgwAtdM9OdAfAvVuCdHBTDs8TufS mgUQxuKc3FTGegWRYrk4sRqw7TUrFuqLUTL4CMwKOmvMPG5KH3mojDl/pXCVJCuTOE I1EJh5MqIoHgH5/lpuLlNBuobo9yTlymsNwc2uD0= From: Vadim Fedorenko To: Jakub Kicinski , Jiri Pirko , Arkadiusz Kubalewski , Jonathan Lemon , Paolo Abeni Cc: netdev@vger.kernel.org, Vadim Fedorenko , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [RFC PATCH v4 0/4] Create common DPLL/clock configuration API Date: Wed, 30 Nov 2022 00:37:20 +0300 Message-Id: <20221129213724.10119-1-vfedorenko@novek.ru> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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. v3 -> v4: * redesign framework to make pins dynamically allocated (Arkadiusz) * implement shared pins (Arkadiusz) v2 -> v3: * implement source select mode (Arkadiusz) * add documentation * implementation improvements (Jakub) v1 -> v2: * implement returning supported input/output types * ptp_ocp: follow suggestions from Jonathan * add linux-clk mailing list v0 -> v1: * fix code style and errors * add linux-arm mailing list Arkadiusz Kubalewski (1): dpll: add dpll_attr/dpll_pin_attr helper classes Vadim Fedorenko (3): dpll: Add DPLL framework base functions dpll: documentation on DPLL subsystem interface ptp_ocp: implement DPLL ops Documentation/networking/dpll.rst | 271 ++++++++ Documentation/networking/index.rst | 1 + MAINTAINERS | 8 + drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/dpll/Kconfig | 7 + drivers/dpll/Makefile | 11 + drivers/dpll/dpll_attr.c | 278 +++++++++ drivers/dpll/dpll_core.c | 760 +++++++++++++++++++++++ drivers/dpll/dpll_core.h | 176 ++++++ drivers/dpll/dpll_netlink.c | 963 +++++++++++++++++++++++++++++ drivers/dpll/dpll_netlink.h | 24 + drivers/dpll/dpll_pin_attr.c | 456 ++++++++++++++ drivers/ptp/Kconfig | 1 + drivers/ptp/ptp_ocp.c | 123 ++-- include/linux/dpll.h | 261 ++++++++ include/linux/dpll_attr.h | 433 +++++++++++++ include/uapi/linux/dpll.h | 263 ++++++++ 18 files changed, 4002 insertions(+), 37 deletions(-) create mode 100644 Documentation/networking/dpll.rst create mode 100644 drivers/dpll/Kconfig create mode 100644 drivers/dpll/Makefile create mode 100644 drivers/dpll/dpll_attr.c 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 drivers/dpll/dpll_pin_attr.c create mode 100644 include/linux/dpll.h create mode 100644 include/linux/dpll_attr.h create mode 100644 include/uapi/linux/dpll.h -- 2.27.0