From patchwork Sat Aug 3 10:58:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Austen X-Patchwork-Id: 13752349 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 31D8DC3DA4A for ; Sat, 3 Aug 2024 11:01:39 +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=8SUDarAKq4d9hQZ9wreu4NLDZENLtufrGVGAJEsJUYQ=; b=BRHYOMmRpnugh/XCD1RXrg2dkq L1KyaQNl+Pm6rZ383jN582KZ+NmMT0Mg6bxFLftncI7I9NsJtcpEEY5P5JAawl/x7dQ+bWy2/58iI aCp7Ei2+Y+9vD6JSh2XGllJFoPh0DoVUfiJJb+2EbVdr9FCYxaEPIPLv6SD0r46cTJGLJz37y1aNs FH2whBpywkFqBUQqdXWZ+qB95J5YlPMsQW3e+iK4FSUmvxobNmQcqbSC6O/MBhIWsFH09HOsA790f PUxmgW/GywHwDac79rGPF3cmwazRyf6mjLXc+C7s+07ZVy+6S+MrUQd53Nt3cPEtZ16aHDegalKGN sI0PiNEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1saCVr-0000000BGBj-08TY; Sat, 03 Aug 2024 11:01:27 +0000 Received: from mail-40131.protonmail.ch ([185.70.40.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1saCSu-0000000BFBJ-0b1p for linux-arm-kernel@lists.infradead.org; Sat, 03 Aug 2024 10:58:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1722682702; x=1722941902; bh=8SUDarAKq4d9hQZ9wreu4NLDZENLtufrGVGAJEsJUYQ=; 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=CLLYDoMVIiQOnA2BcAvKjreA6fluldSGnx4JcXluGbKVKIYJciM0iRYgEeVh+d+ZR lsldEukuSq5UgFGJqSd0xbR4tKB4KGR4WbqcTdPheUFPP+0pmWymVeVZgAHZ7wad50 r0/ScEcKdcrq4sFcj2v2/9vtwUfvij9MQIfIvhaa+adqCwnGRZ/wtkZoDGXohY21SO 42qbpBAPCjOqXn2lwuOdlfg6wgBjt7RjvNhfUzod1YIAKwKBMkgmpouaE41/zn9k8g LA2EGPEQ96yPJA8bBq+8O5naLyVe65VLIgmuSzflxOqJQfMKSRTd3guh91MhT0O12h 0wztS3oNwGEFQ== Date: Sat, 03 Aug 2024 10:58:18 +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 Subject: [PATCH v2 5/9] dt-bindings: clock: xilinx: add description of user monitor interrupt Message-ID: <20240803105702.9621-6-hpausten@protonmail.com> In-Reply-To: <20240803105702.9621-1-hpausten@protonmail.com> References: <20240803105702.9621-1-hpausten@protonmail.com> Feedback-ID: 53116287:user:proton X-Pm-Message-ID: cc6f1df396aa2ef7de7db5590f55ebc7042936a5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240803_035824_390364_756F40F0 X-CRM114-Status: UNSURE ( 7.50 ) 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 --- v1 -> v2: Fix binding errors by moving interrupts up front, restrict later .../bindings/clock/xlnx,clocking-wizard.yaml | 25 ++++++++++++++++++- 1 file changed, 24 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..9e5078cef2962 100644 --- a/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml +++ b/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml @@ -39,6 +39,14 @@ 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 +70,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"; }; ...