Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Taniya Das
Thu, 15 Oct 2026 07:15
Re: [PATCH 1/5] dt-bindings: clock: qcom: Add bindings for PDM GP_MN clock divider
Author: Taniya Das
Date: Thu, 15 Oct 2026 07:15
Date: Thu, 15 Oct 2026 07:15
80 lines
13951 bytes
13951 bytes
On 6/9/2026 6:55 PM, Konrad Dybcio wrote:
> On 6/2/26 5:21 PM, 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>
>> ---
>
> [...]
>> + clock-output-names:
>> + maxItems: 1
>
> This should be deferred to the driver
Sure.
>
>> +
>> + pinctrl-0:
>> + description: Pin configuration for the GP_MN output in the active state.
>> +
>> + pinctrl-names:
>> + items:
>> + - const: active
>
> I think these 2 are always allowed/defined
Sure, will remove them.
>> +
>> + 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.
>
> Likewise, we could simply set_rate on the GCC clock which is the
> parent of this one, via something like CLK_SET_RATE_PARENT
The GCC clock could be either at 19.2MHz, 9.6MHz, 6.4MHz, or
4.8MHz(consumer/customer use case dependent) and the output clock at
GP_MND can be a range of frequencies(which are not fixed).
assigned-clock-rates
|
v
bi_tcxo (19.2 MHz)
|
v
CDIV (1, 2, 3, 4)
|
|
v
gcc_pdm_xo4_clk (CBC)
|
+----> 19.2 MHz
+----> 9.6 MHz
+----> 6.4 MHz
+----> 4.8 MHz
|
v
PDM GP_MND (Variable frequency range)
I missed one patch where I didn't add the CLK_SET_RATE_PARENT on the
gcc_pdm_xo4_clk and CDIV(additional) modelling.
--
Thanks,
Taniya Das
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads