All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property
@ 2025-09-29  7:20 Wolfram Sang
  2025-10-01 12:51 ` Rob Herring
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfram Sang @ 2025-09-29  7:20 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Wolfram Sang, Support Opensource, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Steve Twiss, devicetree

If nested, DT schema cannot extend required 'interrupts' to include
'interrupts-extended'. It needs to be added manually. Fixes:

arch/arm/boot/dts/renesas/r8a7791-koelsch.dtb: pmic@58 (dlg,da9063): 'interrupts' is a required property
	from schema $id: http://devicetree.org/schemas/mfd/dlg,da9063.yaml#

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

Copied this solution 1:1 from:
  Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml

 Documentation/devicetree/bindings/mfd/dlg,da9063.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml b/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
index 51612dc22748..4af5fcb856c7 100644
--- a/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
+++ b/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
@@ -110,10 +110,16 @@ allOf:
             "^buck[1-4]$": false
         thermal: false
       required:
-        - interrupts
         - interrupt-controller
         - '#interrupt-cells'
 
+      # oneOf is required, because dtschema's fixups.py doesn't handle this
+      # nesting here. Its special treatment to allow either interrupt property
+      # when only one is specified in the binding works at the top level only.
+      oneOf:
+        - required: [interrupts]
+        - required: [interrupts-extended]
+
   - if:
       properties:
         compatible:
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property
  2025-09-29  7:20 [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property Wolfram Sang
@ 2025-10-01 12:51 ` Rob Herring
  2025-10-01 13:08   ` Wolfram Sang
  2025-10-01 13:46   ` Rob Herring
  0 siblings, 2 replies; 6+ messages in thread
From: Rob Herring @ 2025-10-01 12:51 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Support Opensource, Lee Jones,
	Krzysztof Kozlowski, Conor Dooley, Steve Twiss, devicetree

On Mon, Sep 29, 2025 at 09:20:47AM +0200, Wolfram Sang wrote:
> If nested, DT schema cannot extend required 'interrupts' to include
> 'interrupts-extended'. It needs to be added manually. Fixes:
> 
> arch/arm/boot/dts/renesas/r8a7791-koelsch.dtb: pmic@58 (dlg,da9063): 'interrupts' is a required property
> 	from schema $id: http://devicetree.org/schemas/mfd/dlg,da9063.yaml#
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
> 
> Copied this solution 1:1 from:
>   Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml
> 
>  Documentation/devicetree/bindings/mfd/dlg,da9063.yaml | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml b/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
> index 51612dc22748..4af5fcb856c7 100644
> --- a/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
> +++ b/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
> @@ -110,10 +110,16 @@ allOf:
>              "^buck[1-4]$": false
>          thermal: false
>        required:
> -        - interrupts
>          - interrupt-controller
>          - '#interrupt-cells'
>  
> +      # oneOf is required, because dtschema's fixups.py doesn't handle this
> +      # nesting here. Its special treatment to allow either interrupt property
> +      # when only one is specified in the binding works at the top level only.

The solution is to fix dtschema. I'll take a look at it.

> +      oneOf:
> +        - required: [interrupts]
> +        - required: [interrupts-extended]
> +
>    - if:
>        properties:
>          compatible:
> -- 
> 2.47.2
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property
  2025-10-01 12:51 ` Rob Herring
@ 2025-10-01 13:08   ` Wolfram Sang
  2025-10-01 13:46   ` Rob Herring
  1 sibling, 0 replies; 6+ messages in thread
From: Wolfram Sang @ 2025-10-01 13:08 UTC (permalink / raw)
  To: Rob Herring
  Cc: linux-renesas-soc, Support Opensource, Lee Jones,
	Krzysztof Kozlowski, Conor Dooley, Steve Twiss, devicetree

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]


> > +      # oneOf is required, because dtschema's fixups.py doesn't handle this
> > +      # nesting here. Its special treatment to allow either interrupt property
> > +      # when only one is specified in the binding works at the top level only.
> 
> The solution is to fix dtschema. I'll take a look at it.

Thank you!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property
  2025-10-01 12:51 ` Rob Herring
  2025-10-01 13:08   ` Wolfram Sang
@ 2025-10-01 13:46   ` Rob Herring
  2025-10-01 18:01     ` Wolfram Sang
  1 sibling, 1 reply; 6+ messages in thread
From: Rob Herring @ 2025-10-01 13:46 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Support Opensource, Lee Jones,
	Krzysztof Kozlowski, Conor Dooley, Steve Twiss, devicetree

On Wed, Oct 1, 2025 at 7:51 AM Rob Herring <robh@kernel.org> wrote:
>
> On Mon, Sep 29, 2025 at 09:20:47AM +0200, Wolfram Sang wrote:
> > If nested, DT schema cannot extend required 'interrupts' to include
> > 'interrupts-extended'. It needs to be added manually. Fixes:
> >
> > arch/arm/boot/dts/renesas/r8a7791-koelsch.dtb: pmic@58 (dlg,da9063): 'interrupts' is a required property
> >       from schema $id: http://devicetree.org/schemas/mfd/dlg,da9063.yaml#
> >
> > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> > ---
> >
> > Copied this solution 1:1 from:
> >   Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml
> >
> >  Documentation/devicetree/bindings/mfd/dlg,da9063.yaml | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml b/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
> > index 51612dc22748..4af5fcb856c7 100644
> > --- a/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
> > +++ b/Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
> > @@ -110,10 +110,16 @@ allOf:
> >              "^buck[1-4]$": false
> >          thermal: false
> >        required:
> > -        - interrupts
> >          - interrupt-controller
> >          - '#interrupt-cells'
> >
> > +      # oneOf is required, because dtschema's fixups.py doesn't handle this
> > +      # nesting here. Its special treatment to allow either interrupt property
> > +      # when only one is specified in the binding works at the top level only.
>
> The solution is to fix dtschema. I'll take a look at it.

Now fixed in 'main' branch. There's a handful of other cases fixed
too. Had nothing to do with nesting as most cases were ones where
'interrupts' was only defined in a referenced schema, but then
required in the outer schema.

Rob

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property
  2025-10-01 13:46   ` Rob Herring
@ 2025-10-01 18:01     ` Wolfram Sang
  2025-10-01 18:14       ` Rob Herring
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfram Sang @ 2025-10-01 18:01 UTC (permalink / raw)
  To: Rob Herring
  Cc: linux-renesas-soc, Support Opensource, Lee Jones,
	Krzysztof Kozlowski, Conor Dooley, Steve Twiss, devicetree

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

Hi Rob,

> Now fixed in 'main' branch. There's a handful of other cases fixed

Confirmed. Thank you a lot for this!

Did you already clean up the reference I got this from
(mfd/samsung,s2mps11.yaml) or shall I?

All the best,

   Wolfram


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property
  2025-10-01 18:01     ` Wolfram Sang
@ 2025-10-01 18:14       ` Rob Herring
  0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2025-10-01 18:14 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Support Opensource, Lee Jones,
	Krzysztof Kozlowski, Conor Dooley, Steve Twiss, devicetree

On Wed, Oct 1, 2025 at 1:01 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
>
> Hi Rob,
>
> > Now fixed in 'main' branch. There's a handful of other cases fixed
>
> Confirmed. Thank you a lot for this!
>
> Did you already clean up the reference I got this from
> (mfd/samsung,s2mps11.yaml) or shall I?

Probably should wait a bit on that until I make a release. That will
probably be in the next few weeks.

Rob

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-01 18:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-29  7:20 [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property Wolfram Sang
2025-10-01 12:51 ` Rob Herring
2025-10-01 13:08   ` Wolfram Sang
2025-10-01 13:46   ` Rob Herring
2025-10-01 18:01     ` Wolfram Sang
2025-10-01 18:14       ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.