From patchwork Sat Jul 20 12:01:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Austen X-Patchwork-Id: 13737810 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 827A6C3DA49 for ; Sat, 20 Jul 2024 12:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:Cc:From:To:Date: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=Ulfjm2ICHJErTUPJBS83uOvGY0WbQepmua4xjo1vleg=; b=SmkU9A2/S1JJ4rQ3JjSNIGLTp5 jHy0+mk3EUNdAQnQaxAhW38Hpr1hGK/LiAigAx4nA636dTQza/ZQrONctmdJpkts8krlKkMqwj4HI blI/8C3ese95irhu3h1kjSHjSzWMxDJ5PnahNeEC8HlaLHriseyNfWE/Ox9SE+KUpa9Jy5sZPxfHd b5Xf/v8x7Au5Dli20pzP3srnhr7Y2Jd4nLWQCzRKo3TpU/AaKDMV6NatpAargfM883mWSgKAksYJ2 M7rnJwTsta4Wu1gvbBJtuQYSVaff9SANvbDnJ9J6J+R1OZpo4PzNi+hsqX8ytsjqVzCr/bKEV8wWP Vskwpe0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sV8ml-000000052qN-4C4Q; Sat, 20 Jul 2024 12:02:00 +0000 Received: from mail-4316.protonmail.ch ([185.70.43.16]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sV8mP-000000052k9-0aN9 for linux-arm-kernel@lists.infradead.org; Sat, 20 Jul 2024 12:01:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1721476889; x=1721736089; bh=Ulfjm2ICHJErTUPJBS83uOvGY0WbQepmua4xjo1vleg=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=P/K+5vIqWwOzwwXwYwUwwfOlMOiNBFuPbFh0hf3siSpEIDisqge6OL3MN8VYb59MF xBJBOrgZcERyXR/ADlf0peUTCMpiwwddp43xNjdBF3aO6ArRck6Mc0wF3VSIVRSB7I pELJx1eTuhySTpEwWdAtYLPXy9nf9wRStSS0GkSVc2IrGx8KMM2brHVrUjK/I3nykh RoCSMEw5Of10ylu2485xEXyWbLVobbYQf49K6oikP4HPUDOX/fIJa+qGK7fhVb7NVP 9I+1uRcu4b/LpD9QhUt5rqTmJSpCBfmZQs8WVgUY7m0qhynrGF7EDBtVi1E9VfOmJ4 C7vlKwSQ66GzQ== Date: Sat, 20 Jul 2024 12:01:23 +0000 To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek From: Harry Austen Cc: Shubhrajyoti Datta , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Harry Austen Subject: [PATCH 0/7] clk: clocking-wizard: add user clock monitor support Message-ID: <20240720120048.36758-1-hpausten@protonmail.com> Feedback-ID: 53116287:user:proton X-Pm-Message-ID: eb94335087a5eda15217fc444c8fe79811588381 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240720_050137_346502_0FCB45CC X-CRM114-Status: UNSURE ( 7.42 ) 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 Improve utilised clk/notifier APIs, making use of device managed versions of functions, make dynamic reconfiguration support optional (because it is in hardware) and add support for the clock monitor functionailty added in version 6.0 of the Xilinx clocking wizard IP core. The combined addition of all of these patches allows, for example, to use the clocking wizard solely for its user clock monitoring logic, keeping dynamic reconfiguration support disabled. This is currently untested on hardware, so any help testing this would be much appreciated! Harry Austen (7): clk: clocking-wizard: simplify probe/remove with devres helpers clk: clocking-wizard: use newer clk_hw API clk: clocking-wizard: move clock registration to separate function dt-bindings: clock: xilinx: add description of user monitor interrupt clk: clocking-wizard: add user clock monitor support dt-bindings: clock: xilinx: describe whether dynamic reconfig is enabled clk: clocking-wizard: move dynamic reconfig setup behind flag .../bindings/clock/xlnx,clocking-wizard.yaml | 29 +- drivers/clk/xilinx/Kconfig | 1 + drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 346 +++++++++--------- 3 files changed, 212 insertions(+), 164 deletions(-)