Thread (18 messages) 18 messages, 3 authors, 2025-10-10

Re: [PATCH v2 03/10] dt-bindings: soc: samsung: gs101-pmu: allow power domains as children

From: Rob Herring <robh@kernel.org>
Date: 2025-10-10 14:13:59
Also in: linux-devicetree, linux-pm, linux-samsung-soc, lkml

On Thu, Oct 09, 2025 at 04:25:05PM +0100, André Draszik wrote:
The power domains are a property of / implemented in the PMU. As such,
they should be modelled as child nodes of the PMU.

Signed-off-by: André Draszik <andre.draszik@linaro.org>

---
Note: Ideally, the newly added properties (ranges, etc.) should only be
'required' if "^power-domain@[0-9a-f]+$" exists as a patternProperty,
as they're needed only in that case. As-is, this patch now causes
warnings for existing DTs as they don't specify the new properties (and
they shouldn't need to). Only if DTs are updated to include
power-domains, such an update should also add the new properties.

I've not been able to come up with the correct schema syntax to achieve
that. dependencies, dependentRequired, and dependentSchemas don't seem
to support patterns. Similarly,
  - if:
      required:
        - ...
    then:
      required:
        - ...

doesn't allow patterns in the 'if' block (or I didn't get the syntax
right).
This is a known limitation in json-schema. Not sure if they've come up 
with a solution yet.

Rob
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help