From: Rob Herring <robh@kernel.org>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: linux-renesas-soc@vger.kernel.org,
Support Opensource <support.opensource@diasemi.com>,
Lee Jones <lee@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Steve Twiss <stwiss.opensource@diasemi.com>,
devicetree@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property
Date: Wed, 1 Oct 2025 07:51:49 -0500 [thread overview]
Message-ID: <20251001125149.GA1122744-robh@kernel.org> (raw)
In-Reply-To: <20250929072306.5634-2-wsa+renesas@sang-engineering.com>
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
>
next prev parent reply other threads:[~2025-10-01 12:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-29 7:20 [PATCH] dt-bindings: mfd: dlg,da9063: allow 'interrupts-extended' property Wolfram Sang
2025-10-01 12:51 ` Rob Herring [this message]
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
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=20251001125149.GA1122744-robh@kernel.org \
--to=robh@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=stwiss.opensource@diasemi.com \
--cc=support.opensource@diasemi.com \
--cc=wsa+renesas@sang-engineering.com \
/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