From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Marijn Suijten <marijn.suijten@somainline.org>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] dt-bindings: clock: qcom: Add SM8750 GPU clocks
Date: Mon, 28 Jul 2025 14:15:28 +0200 [thread overview]
Message-ID: <f508e576-38d2-4040-82fa-4cba108d511a@oss.qualcomm.com> (raw)
In-Reply-To: <dda5b873-4721-4734-89f4-a0d9aeb5bdab@oss.qualcomm.com>
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
next prev parent reply other threads:[~2025-07-28 12:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 20:38 [PATCH v2 0/3] " Konrad Dybcio
2025-07-23 20:38 ` [PATCH v2 1/3] dt-bindings: clock: qcom: Add " Konrad Dybcio
2025-07-24 8:18 ` Krzysztof Kozlowski
2025-07-24 10:53 ` Konrad Dybcio
2025-07-24 14:42 ` Krzysztof Kozlowski
2025-07-25 9:23 ` Konrad Dybcio
2025-07-28 5:05 ` Krzysztof Kozlowski
2025-07-28 9:24 ` Konrad Dybcio
2025-07-25 9:30 ` Konrad Dybcio
2025-07-28 5:01 ` Krzysztof Kozlowski
2025-07-28 11:02 ` Konrad Dybcio
2025-07-28 12:15 ` Konrad Dybcio [this message]
2025-07-31 15:05 ` Krzysztof Kozlowski
2025-07-23 20:38 ` [PATCH v2 2/3] clk: qcom: Add a driver for " Konrad Dybcio
2025-07-26 10:26 ` kernel test robot
2025-07-23 20:38 ` [PATCH v2 3/3] arm64: dts: qcom: sm8750: Add GPU clock & IOMMU nodes Konrad Dybcio
2025-07-24 8:21 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f508e576-38d2-4040-82fa-4cba108d511a@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®