From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8CFE255C1C4; Thu, 17 Sep 2026 13:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789653436; cv=none; b=P8NRe9771GgYO/ho2QXO9yiRTGcTbgmOnfO25kE1F7JdXxiKVP4H/rS4sZTnAWwVjeqqCEiJi1wyTA9HizsqeabCH8hrHLrudx4NZNkHiRl7ExPbGZhvwobUq/n339fDZLJynQlBCgvnbEeRCjy+QQ90u9/JGPghmTA0FhpdzDo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789653436; c=relaxed/simple; bh=+/ARVIPj4f56djx3Ezh4ZToCMNPoyd7Ue0tRG/g2D/Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ovatYijz+X+Lan2BgfkEj5TFFCSJRx1yDNq94tps5eF3NobXGcVgQsAPfZx7y3q5dWgaxU02ymIqmZ+Ma1e0xpBGOTufxlnbzsuPiDTI4kxcrILrgmOfJnG4iz3GQ5dD11BCg5e+UqkM4Hq4wP4Vy8yqvTwIjVgja1SYTnEjkMY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sCNUYYOU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sCNUYYOU" Received: by smtp.kernel.org (Postfix) with ESMTPS id 85EE9C2BCB9; Thu, 17 Sep 2026 13:57:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789653435; bh=+/ARVIPj4f56djx3Ezh4ZToCMNPoyd7Ue0tRG/g2D/Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=sCNUYYOU/oJqVwE7mitsmLHkSshKjnIwlrEx9+mpWNHRra3hDu1D19lCq4B658Y4Y NW4c0JbSSMLr7Z22Ht4/0IyYtlfPZf+br9KXGzp/LjcW8DatlVLeEn+6gNoSQlGEVP VCbk1eLFi6iF2ryBigzXbllf7ljSOKQ+koDsw6qzgmjO0F+6m00kKzdRs1IVTdCRap V9u37VxoVs2PFZZwWJBjmAF+lDtLxUJzYpMHzphHqE7K3Gi+egcqk8quCsjsVh3Ibf F2DIePqDzB13VDlC4mNpsspKEG62dRFc3ivBzA8v0fQ/3Yy6JueQsvaW5Qz+eu8s2m F8K9PvUSCcb3g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EB15C982D6; Thu, 17 Sep 2026 13:57:15 +0000 (UTC) From: Sarath Ganapathiraju via B4 Relay Date: Thu, 17 Sep 2026 19:27:14 +0530 Subject: [PATCH v8 1/2] dt-bindings: clock: qcom: Add LPASS VA CSR HeartBeat pulse clock Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260917-master-v8-1-823d2c5d090a@oss.qualcomm.com> References: <20260917-master-v8-0-823d2c5d090a@oss.qualcomm.com> In-Reply-To: <20260917-master-v8-0-823d2c5d090a@oss.qualcomm.com> To: andersson@kernel.org, abelvesa@kernel.org, sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, srinivas.kandagatla@oss.qualcomm.com, sarath.ganapathiraju@oss.qualcomm.com Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, prasad.kumpatla@oss.qualcomm.com X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789653433; l=2671; i=sarath.ganapathiraju@oss.qualcomm.com; s=default; h=from:subject:message-id; bh=EqcShn4lKqnUcEIX4DZ2sa+EOeN9w3AEP1mmSm22Vj0=; b=VKw2hZ78nx0j2JO6QW+kYYGhECDAl5STY63kC6Hw2t3N0TiujyUA5kClKMxPJX1TK5h+XN8PZ dUNtvbjIamhBVKEWQcImhCa6zTsv1Uw1e/J5s+ueDgA2oxlqq7DjNoU X-Developer-Key: i=sarath.ganapathiraju@oss.qualcomm.com; a=ed25519; pk=4p2FWGXM+F2sir13Lu5stw5aKX5trUymK/ttESvgxQg= X-Endpoint-Received: by B4 Relay for sarath.ganapathiraju@oss.qualcomm.com/default with auth_id=870 X-Original-From: Sarath Ganapathiraju Reply-To: sarath.ganapathiraju@oss.qualcomm.com From: Sarath Ganapathiraju Add a binding for the Qualcomm LPASS VA CSR rate generator node that exposes the lpass_heartbeat_pulse clock on Hawi. The HeartBeat Pulse, also known as RateGen Pulse, synchronizes the start of DMAs and Codec Interfaces for the audio usecase and can serve as a periodic wakeup source for the DSP. Require the LPASS LPR and audio vote clocks to access VA CSR register space safely. Signed-off-by: Sarath Ganapathiraju --- .../bindings/clock/qcom,hawi-lpass-va-csr.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,hawi-lpass-va-csr.yaml b/Documentation/devicetree/bindings/clock/qcom,hawi-lpass-va-csr.yaml new file mode 100644 index 000000000000..601da83add2b --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,hawi-lpass-va-csr.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,hawi-lpass-va-csr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm LPASS VA CSR heartbeat pulse clock provider + +maintainers: + - Srinivas Kandagatla + - Sarath Ganapathiraju + +description: + The Hawi LPASS (Low Power Audio Subsystem) VA CSR block contains a + rate generator that produces a periodic HeartBeat Pulse, also known + as the RateGen Pulse. This pulse synchronizes the start of DMAs and + Codec Interfaces for audio usecases and can serve as a periodic wakeup + source for the DSP. + +properties: + compatible: + enum: + - qcom,hawi-lpass-va-csr + + reg: + maxItems: 1 + description: Address and size of the VA CSR register block. + + clocks: + items: + - description: LPASS LPR (Low Power Resource) voting clock + - description: LPASS Audio voting clock + + clock-names: + items: + - const: lpr + - const: audio + + "#clock-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - "#clock-cells" + +additionalProperties: false + +examples: + - | + #include + + clock-controller@7ee0000 { + compatible = "qcom,hawi-lpass-va-csr"; + reg = <0x07ee0000 0xe000>; + clocks = <&q6prmcc LPASS_HW_LPR_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "lpr", "audio"; + #clock-cells = <0>; + }; -- 2.34.1