Re: [PATCH] dt-bindings: cpufreq: qcom-cpufreq-nvmem: Simplify bindings
From: Rob Herring (Arm)
Date: Fri Nov 06 2026 - 16:17:03 EST
On Thu, 05 Nov 2026 20:46:07 +0100, Krzysztof Kozlowski wrote:
> This binding selects a few top-level compatible machines, but since
> commit 389de9c5a677 ("dt-bindings: cpufreq: qcom-cpufreq-nvmem: make cpr
> bindings optional") only qcom,qcs404 is present in "if:then:" clause
> which enforces specific OPP properties.
>
> For all other machines, this is a no-op, because there is no schema here
> enforcing a specific compatible for OPP nodes or any of OPP table
> properties: one can switch to standard OPP table (operating-points-v2)
> and this binding will not complain.
>
> OTOH, this binding has complicated "if:then:" blocks so is not easy to
> maintain and causes false positives when regular OPP table is
> encountered in matched machines.
>
> Drop all machines except QCS404 and move the subschema to top-level.
>
> Cc: Varadarajan Narayanan <varadarajan.narayanan@xxxxxxxxxxxxxxxx>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> ---
> .../bindings/cpufreq/qcom-cpufreq-nvmem.yaml | 78 ++++++-------------
> 1 file changed, 24 insertions(+), 54 deletions(-)
>
Acked-by: Rob Herring (Arm) <robh@xxxxxxxxxx>