Re: [PATCH v2 1/3] dt-bindings: clock: qcom: Add SM8750 GPU clocks

From: Konrad Dybcio
Date: Mon Jul 28 2025 - 08:15:45 EST


On 7/28/25 1:02 PM, Konrad Dybcio wrote:
> On 7/28/25 7:01 AM, Krzysztof Kozlowski wrote:
>> On 25/07/2025 11:30, Konrad Dybcio wrote:
>>>>>
>>>>> @@ -40,6 +42,9 @@ properties:
>>>>> - description: GPLL0 main branch source
>>>>> - description: GPLL0 div branch source
>>>>>
>>>>> + power-domains:
>>>>> + maxItems: 1
>>>>
>>>> This should be a different binding or you need to restrict other
>>>> variants here.
>>>
>>> Actually looks like this is the same case as the recent videocc changes
>>> (15 year old technical debt catching up to us..)
>>>
>>> I'll send a mass-fixup for this.
>>>
>>> Some platforms require 2 and some require 3 entries here. Do I have to
>>> restrict them very specifically, or can I do:
>>>
>>> power-domains:
>>> description:
>>> Power domains required for the clock controller to operate
>>> minItems: 2
>>> items:
>>> - description: CX power domain
>>> - description: MX power domain
>>> - description: MXC power domain
>>>
>>> ?
>>
>> This is correct and should be in top level, but you still need to
>> restrict them per each variant (minItems: 3 or maxItems: 2).
>
> So I was happy about how simple it was, until I realized we also need
> to poke the VDD_GFX domain. It does however not necessarily exist on
> all platforms and I don't want the binding to become a spaghetti of ifs..
>
> CX & MX is present on all(?) platforms
> GFX & MXC's (any combination of those, unfortunately) presence varies
>
> Is there anything better I can do than creating a separate case for:
>
> * CX_MX
> * CX_MX_GFX
> * CX_MX_MXC
> * CX_MX_GFX_MXC

Doesn't seem like it, turned out this wasn't as terrible a mess as
I had imagined..

Konrad