Re: [PATCH 1/5] dt-bindings: clock: qcom: Add bindings for PDM GP_MN clock divider
From: Konrad Dybcio
Date: Tue Oct 20 2026 - 03:36:25 EST
On 10/15/26 9:15 AM, Taniya Das wrote:
>
>
> On 6/9/2026 6:54 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@xxxxxxxxxxxxxxxx>
>>> ---
>>
>> [...]
>>
>>> + #include <dt-bindings/clock/qcom,gcc-sdm845.h>
>>> + gp_mn: clock-controller@88d3000 {
>>> + compatible = "qcom,clk-gp-mnd";
>>
>> The compatible must be SoC-specific, looking at the table, we could
>> use these example socs for the versions of this block:
>>
>> 8960 (v1.0.0)
>> 8974 (v1.1.1)
>> 8994 (v2.1.0)
>> 8996 (v2.2.0)
>>
>
> Apologies for the late response.
> The GP_MND block does not have any functional differences across the
> supported SoCs. To reflect this, the DT binding will use a SoC-specific
> compatible followed by a generic fallback compatible that represents the
> common GP_MND implementation.
>
> compatible = "qcom,sc7280-gp-mnd",
> "qcom,gp-mnd";
I think the dt maintainers may be a little grumpy about the non-SoC-bound
fallback
>
>>> + reg = <0x88d3000 0xc>;
>>
>> Let's map the entire 0x4000 that this block spans
>>
>
> This region support 2 or 3 different blocks of HW and they have
> different functionalities and for which I am going to add the driver
> support. What I can do is map 0x88d3000 size - 0x1000. Please let me
> know your comments.
Sounds good
Konrad