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

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.