🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8007

Re: [PATCH v2 01/12] dt-bindings: clock: qcom: Add bindings for PDM GP_MN clock divider

#8007
From: Krzysztof Kozlowski
Date: Tue, 27 Oct 2026 18:47
118 lines
11875 bytes
On Mon, Oct 26, 2026 at 04:59:27PM +0530, Taniya Das wrote:
> Add device tree bindings for the Qualcomm Peripheral Web's PDM GP_MN
> clock divider. The hardware generates a fractional output frequency
> from a fixed input clock (typically TCXO4) using the relation
> Fout = Fin * (M / N), with duty cycle controlled by a separate D
> register. The clock output is routed over a gpio controlled pin.
> 
> Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
> ---
>  .../devicetree/bindings/clock/qcom,clk-gp-mnd.yaml | 98 ++++++++++++++++++++++
>  1 file changed, 98 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/clock/qcom,clk-gp-mnd.yaml b/Documentation/devicetree/bindings/clock/qcom,clk-gp-mnd.yaml
> new file mode 100644
> index 0000000000000000000000000000000000000000..8141f392c5d70acfc42cf1ff4b1722e1eff23afa
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/qcom,clk-gp-mnd.yaml

Use fallback as filename, so qcom,sc7280-gp-mnd.yaml

> @@ -0,0 +1,98 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/qcom,clk-gp-mnd.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Qualcomm Peripheral Web's PDM GP_MN Clock Divider
> +
> +maintainers:
> +  - Taniya Das <taniya.das@oss.qualcomm.com>
> +
> +description: |
> +  The Peripheral Web's PDM GP_MN clock divider receives an input clock
> +  (TCXO4) with frequency Fin and generates an output clock with
> +  frequency Fout = Fin * (M / N) and a duty cycle controlled by D
> +  and routed over a gpio pin.
> +
> +  The divider is configured using three registers:
> +
> +  - GP_MN_CLK_MDIV: holds the M value.
> +  - GP_MN_CLK_NDIV: holds the ones complement of (N - M).
> +  - GP_MN_CLK_DUTY: holds the D value.
> +
> +  For every N input clock cycles the GP_MN produces M output clock
> +  cycles. D is the number of native clock cycles in which the GP_MN
> +  output is low, counted over 2^13 native clock cycles.
> +
> +  Hardware constraints:
> +
> +    M <= 511
> +    N <= 8191
> +    N > 2 * M
> +    M < D < (N - M)
> +    M and N must be coprime (no common divisor)
> +
> +properties:
> +  compatible:
> +    oneOf:
> +      - const: qcom,sc7280-gp-mnd
> +      - items:
> +          - enum:
> +              - qcom,sa8775p-gp-mnd
> +              - qcom,qcs8300-gp-mnd
> +              - qcom,qcs615-gp-mnd
> +          - const: qcom,sc7280-gp-mnd
> +
> +  reg:
> +    maxItems: 1
> +
> +  clocks:
> +    items:
> +      - description: PDM XO4 source clock
> +      - description: PDM AHB bus clock for register access
> +
> +  clock-names:
> +    items:
> +      - const: pdm_clk

pdm

> +      - const: ahb_clk

ahb

> +
> +  '#clock-cells':
> +    const: 0
> +
> +  assigned-clocks:
> +    maxItems: 1
> +    description: Parent clock phandle used to set the input frequency.
> +
> +  assigned-clock-rates:
> +    maxItems: 1
> +    description: |
> +      Rate for the parent clock in Hz.
> +      Supported rates: 19200000, 9600000, 6400000, 4800000.

Neither assigned-clocks nor assigned-clock-rates should be needed.
Parent clock is outside of scope of this binding.


> +
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - clock-names
> +  - '#clock-cells'
> +  - assigned-clocks
> +  - assigned-clock-rates

And these two should not be required, either.

Best regards,
Krzysztof
Technical Details
Message-ID: <20261027-inescapable-rough-viper-6cd56d@quoll>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352586-linux-kernel-netdev=dewy.ru
References: <20261026-b4-pdm_clk_gp_mnd_v2-v2-0-ff8e4bc8d567@oss.qualcomm.com> <20261026-b4-pdm_clk_gp_mnd_v2-v2-1-ff8e4bc8d567@oss.qualcomm.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352586-linux-kernel-netdev=dewy.ru
From: krzk@kernel.org (Krzysztof Kozlowski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2 01/12] dt-bindings: clock: qcom: Add bindings for PDM
 GP_MN clock divider
Date: Tue, 27 Oct 2026 19:47:39 +0100
Organization: Usenet Network
Message-ID: <20261027-inescapable-rough-viper-6cd56d@quoll>
References: <20261026-b4-pdm_clk_gp_mnd_v2-v2-0-ff8e4bc8d567@oss.qualcomm.com>
 <20261026-b4-pdm_clk_gp_mnd_v2-v2-1-ff8e4bc8d567@oss.qualcomm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="1608834"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:g2d8SflehCuJm1w3bOTZJJSfGE8= sha256:tfCj9M0iG90aT9fqmKX1EITTMIX1dXvnEMF/SNe6S98=
	sha1:B7tcs/WeVtInxtfW8g1tONVUCyw= sha256:x2Z80wmJrZO3ok6e7PtYi7CqiHQl8TE0ApqkW2b6lnM=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 97ED4125C11; Tue, 27 Oct 2026 21:49:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.3
X-Spam-Status: No, score=-2.3 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001,
	DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ACtIfYnK4qJm;
	Tue, 27 Oct 2026 21:49:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352586-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 0022A125C0D; Tue, 27 Oct 2026 21:49:23 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id B4E872AEE4; Tue, 27 Oct 2026 18:47:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793126874;
	b=GQhyb0s9ZyfMV6YvNxo2UUfSuwfKbJBsdLgXkiaFv09sxmJ+8z4DEzG0+PylEDmz2QLb
	 nMMiqOlL7qQWDrhn6Id4M2NmccNWxaAqONZl3PZCNEdyUajdrFrvOiq4TamSUCYH4D6MJ
	 rN2KEKh32YvNsZpYT7a4DvXPRl/hwfL7xCcVs+4hGR/vElOtMJDFwPiGn0aY4P1jR/woZ
	 IHBEOsAgNz4+ZYKIp689A1uiO39LzBQptWazQDyL6dPj+n+3Oe+cQqUtsh4yI96WeYRsB
	 oMCAqwc7Qo08epPmvAbiv911ShickNyOaXfHn5jHpTehgtx607ullHFza1lG00NwzEw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793126874;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=0qhzg2EwORmkMVCDp5YuggGXSTQZPJfFE6qUzVOGdyU=;
	b=eaH0z6dm2gRzp6gaBYYYadQf5NIGCTR6pLXa5/CJFyEtVVMZSdHSWjo9tGt+zygwNQ6i
	 7PLDt3okWSnh+53VHexvO0ArLKRNiOLIGZo9cBgJpuf38jQURNucqO/sduWp8lSC6j2jI
	 hWUNZJ9PXRxUQ3O5YjM6oYq+I2rMz+wNHd6p61XrGVEDS5ddZ4avV+D+hL8knoZQ254Zf
	 0Yd9UipM+AxWbCj5xvD1iA6AqpuvnI0kxmZRC2UxR+/jqakoQ0xDKDl/4pCFKOFaQYYnk
	 4+Pn9vLs8rI3fbG7PAOBcVuzcYASjxeTvg8Rp4Glygu9zkaaydQePTp5es2ubIQTxLQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ojAow+ie;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 18270606A31E;
	Tue, 27 Oct 2026 18:47:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ojAow+ie
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793126863;
	b=BMMRAmOGCF8J3jyuFJpIZ5QgWANKg4MWE+IZRTFUEnc3z4mHBX7YjZUbsQFQQwYYLkRU
	 XvjimbWZcgtle1tqLbPUJV6woq3dBoxMBSoW9s2H8cT4Ak+EeS0iiHYAAczvDLNvnThM2
	 GVKrAsTn+1vk8bfRYN/T87KFV3xjQawWSZ14UWfhXSRLQHAdGTfTmH5R5VuvicgEtwVXF
	 zt423x1ATdyAaxQOStPPdjUZ6HN65oxFCCGof12A5XyBe0ObdooGbgLpdwXIIRmiaFYcg
	 IOQY/fZGwsapy/qZgZWAwe9Z0f7+o5iyopfcNqaAdKevSu4ncGTuMyqdOR2rrnmUnig==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793126863;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=0qhzg2EwORmkMVCDp5YuggGXSTQZPJfFE6qUzVOGdyU=;
	b=XmtGhT7LnHBP2rdlW8VbUbbcYLgK9WbOHgESSGM8eZtgWHdsZer0/BUbzV6yOGvl5MMI
	 qI2ysTXAX3Z9WA13Bhx6XEj1FRd+JQEYe0gBq6OCxcuacEN+nzpTCnN98UwspMKMlnIVA
	 kIOH8Tgz3hSaNaY3wZ1r+euVFdNLS96GbYeTn2vqYdB5PeHpaTO2wTXjiOsW95EC1U9Oq
	 nEaYqDH5VdAt/uP3MACr4c5+jjWc9oaqwQ0TLBCnouB7u9zdzBelmhpA/MPNm0ew8f0ua
	 qOBUN0hqTu20Kp0OrO5jBxlYZK3AFBbIF6wI3qZaDx/nkGtVI+XWLut6SmW/nuIa+hg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ojAow+ie;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0662606A31A;
	Tue, 27 Oct 2026 18:47:42 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3B1B1F01825;
	Tue, 27 Oct 2026 18:47:41 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793126862;
	bh=0qhzg2EwORmkMVCDp5YuggGXSTQZPJfFE6qUzVOGdyU=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=ojAow+ieUh/EOpAg3bYdgQjiHFFB3Qxr6m6PsLche8O/YCbSm/53/GKM3HMZuaI9x
	 Em3yk3GzQTeL1WGR/FoQfwQ49+TUqHSpD4woTE5INztRADnwNu12e1FgTwmC6bkq1w
	 1tPtfE1L7nKhqK+cZlM6VPzVR+OeuQSVUTcDi26D38rDTHOauDmqo7JRU3UluWlo6I
	 XzZWMcCI0M8j8qtel1MSkuO44ewrsjn0bAG2z360ZthvoFVdSUKOLFaAcGmYE1x2Cl
	 tH40ofNtWkFz/3iRjGSXe5je0anY/dsvu1ib7saTEIvwT77nw74u32qGCdC0gsPPnY
	 PRebnwj+FHp3A==
X-Cc: Bjorn Andersson <andersson@kernel.org>, 
	Abel Vesa <abelvesa@kernel.org>, Stephen Boyd <sboyd@kernel.org>, 
	Brian Masney <bmasney+clk@redhat.com>, Jerome Brunet <jbrunet+clk@baylibre.com>, 
	Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, 
	Conor Dooley <conor+dt@kernel.org>, Bartosz Golaszewski <brgl@kernel.org>, 
	Linus Walleij <linusw@kernel.org>, Richard Cochran <richardcochran@gmail.com>, 
	Konrad Dybcio <konradybcio@kernel.org>, Ajit Pandey <ajit.pandey@oss.qualcomm.com>, 
	Imran Shaik <imran.shaik@oss.qualcomm.com>, Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>, 
	linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, 
	linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, netdev@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261026-b4-pdm_clk_gp_mnd_v2-v2-1-ff8e4bc8d567@oss.qualcomm.com>