From patchwork Sat Jul 20 12:01:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Austen X-Patchwork-Id: 13737809 Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57EDE143C4E for ; Sat, 20 Jul 2024 12:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721476922; cv=none; b=HQYgRwUNamS1kvAV+E55Py9usVAI3MOASjNnU4l7IbojV9PpbFLlEX39eK1A1s6ekukoTMA1Hnfy03TKAOWgxtpx5sHP5zJuFb2BbxtnMayaUnIeQTMfGBzNOM3n6o0sq5joEFN6Z3hBRKmxhaNKv/SFWz9hxNtpv2FkB4Kp8Rs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721476922; c=relaxed/simple; bh=NXiWrMlglO+jV4HG3GXIVCq1Shf2uRUl+8u6GCWLBZY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PZyU0UcTlJGqjVMzNoiumDep0GjxNqqzHfo0WnQ3Z2lhFxYjBh9eAAhCM92nUF61LMidYg3wgB3hxp+SksdrjOxf40spMDIQh9AeByT3slDSvpkr7rSOSJUAGcLLD1kihmSuQ3K1pI0rJH9xOVRVa0ZPk7jfkPKu88k1kOmbYbY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=quc1Sl5e; arc=none smtp.client-ip=185.70.40.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="quc1Sl5e" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1721476912; x=1721736112; bh=76gEJnvO3xNi3cRiBp1SHitOr2BhJ+lM7n6PxJ9UohA=; 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=quc1Sl5ebiLBJhnTFiuIaLNXizPTm6wXMq8zg2u27VIyfIk4mmmzmoLS46ANxMlSg 1JxcFCjmU9r9lYFYIz8+Lzt4BvT0fLnPd/0tB+9GyomiRTzgX2hZKjun5NDjZiTLPw T732rTi0fFg7IBDoAhOzCSUrsvgpWt9pU+sAIzDm6MHlqWheQW2DVPxyULiOpzWlxu P4K8rTWeIxwbNp0Or5s7/Z5DzzJ72fzK0tSuPMg97/mnVWa6JtJA7eiT9HS3s+ilCG h63HtAwHxzK5Vwx/I2H/XyEiLphsB35peZpdhj+VH0W62OtYC8SLF91ATF1YsTCdWg iNtlvC4+IkN8Q== Date: Sat, 20 Jul 2024 12:01:48 +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 4/7] dt-bindings: clock: xilinx: add description of user monitor interrupt Message-ID: <20240720120048.36758-5-hpausten@protonmail.com> In-Reply-To: <20240720120048.36758-1-hpausten@protonmail.com> References: <20240720120048.36758-1-hpausten@protonmail.com> Feedback-ID: 53116287:user:proton X-Pm-Message-ID: 4eb3f6f89171b8375c8b180dfe39b4ed3a8f8191 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- .../bindings/clock/xlnx,clocking-wizard.yaml | 22 ++++++++++++++++++- 1 file changed, 21 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..4609bb56b06b5 100644 --- a/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml +++ b/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml @@ -62,17 +62,37 @@ required: - xlnx,speed-grade - xlnx,nr-outputs +allOf: + - if: + properties: + compatible: + enum: + - xlnx,clocking-wizard-v6.0 + - xlnx,versal-clk-wizard + then: + properties: + interrupts: + items: + - description: user clock monitor interrupt + + interrupt-names: + items: + - const: monitor + 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"; }; ...