From patchwork Mon Aug 26 12:38:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Austen X-Patchwork-Id: 13777890 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 D4D82C5321E for ; Mon, 26 Aug 2024 12:43:41 +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:References:In-Reply-To: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:List-Owner; bh=4hazs+UIzo4IgYzzXr9eJWZwi9I7AZWl/ecj0zSGZSw=; b=daeeF/6nooQkM+9WJmBBKNc/WK mBNivjM53nzqJvdGvwXpC6jUwrhdIR3+sXRuME+jjyuhnnuFB6tWiA8RaM72lmFs4QWM+3fFAbSyr Kzu2prn+Ulc2zUGGdouqc8EQ7lLdPFVzdp64WAlqXCe6z1hfpqhnbqABfcGCk+OaleHjk1WHjlkZb oaujNglDHfYMDjo5AdGEMpxEvjXEHDCk0Bs1E+CRSVDvqxnU8LNBXp84O+JPC5kyLqD1jW7RT+xpA w0xZHerxHKgTuwLpMpBaLYQFRgfA0rvakN9kmHKzVrsmwziXHoFvOZWT0uxNA6b3j9jzalZE8PWBW IVIb1mmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siZ4F-00000007MAn-0Uas; Mon, 26 Aug 2024 12:43:31 +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 1siYzU-00000007Krp-0EJf for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 12:38:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1724675913; x=1724935113; bh=4hazs+UIzo4IgYzzXr9eJWZwi9I7AZWl/ecj0zSGZSw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=B4Aoy6r1KdMMVkvXVXauQvAUrXot8cBURn5N3FRyS2JOY8H0IJqpFsj2G0C7+HhFi EkpeKfal4NS5+ppblAwy2pVLaYNEAgZbk/t7ZI38UY9ZIdhByRk+O50rfyrSv2AHjP y/CLjx2dW8VB9L43p2/EppmU8tD6A8KTnjqRUp8LTohwXNLrT5JoEUnyF3PMDOzM1X RGAnFsTR0LeWf9/EVBeBJ2xugOW3NfkB9UpADgNN1lhxFQGX5Hyi1eMuU6PniGVTA8 zMPYF775YQKUH3u7KzxFlLU6BJYyHB1mrTQwsSzle8CaIbFPo1YmI70iyFx4SslvCT SNPQqJtxgSceg== Date: Mon, 26 Aug 2024 12:38:28 +0000 To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek , Greg Kroah-Hartman From: Harry Austen Cc: Shubhrajyoti Datta , Dave Ertman , Ira Weiny , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Harry Austen , Krzysztof Kozlowski Subject: [PATCH v3 5/9] dt-bindings: clock: xilinx: add description of user monitor interrupt Message-ID: <20240826123602.1872-6-hpausten@protonmail.com> In-Reply-To: <20240826123602.1872-1-hpausten@protonmail.com> References: <20240826123602.1872-1-hpausten@protonmail.com> Feedback-ID: 53116287:user:proton X-Pm-Message-ID: 47cc1d64e01b33782b1046a6e0ff752f94bb98a6 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_053836_264037_53908E5C X-CRM114-Status: UNSURE ( 7.53 ) 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 Xilinx clocking wizard IP core outputs this interrupt signal to indicate when one of the four optional user clock inputs is either stopped, overruns, underruns or glitches. This functionality was only added from version 6.0 onwards, so restrict it to particular compatible strings. Signed-off-by: Harry Austen Reviewed-by: Krzysztof Kozlowski --- .../bindings/clock/xlnx,clocking-wizard.yaml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml b/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml index 9d5324dc1027a..2b9903f05ef34 100644 --- a/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml +++ b/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml @@ -39,6 +39,13 @@ properties: - const: clk_in1 - const: s_axi_aclk + interrupts: + items: + - description: user clock monitor interrupt + + interrupt-names: + items: + - const: monitor xlnx,speed-grade: $ref: /schemas/types.yaml#/definitions/uint32 @@ -62,17 +69,32 @@ required: - xlnx,speed-grade - xlnx,nr-outputs +allOf: + - if: + properties: + compatible: + enum: + - xlnx,clocking-wizard + - xlnx,clocking-wizard-v5.2 + then: + properties: + interrupts: false + interrupt-names: false + additionalProperties: false examples: - | + #include clock-controller@b0000000 { - compatible = "xlnx,clocking-wizard"; + compatible = "xlnx,clocking-wizard-v6.0"; reg = <0xb0000000 0x10000>; #clock-cells = <1>; xlnx,speed-grade = <1>; xlnx,nr-outputs = <6>; clock-names = "clk_in1", "s_axi_aclk"; clocks = <&clkc 15>, <&clkc 15>; + interrupts-extended = <&intc 52 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "monitor"; }; ...