Thread (4 messages) 4 messages, 3 authors, 2025-06-30

Re: [PATCH v2] dt-bindings: interrupt-controller: Convert fsl,mpic-msi to YAML

From: J. Neuschäfer <hidden>
Date: 2025-06-29 01:47:56
Also in: linux-devicetree, lkml

On Wed, Jun 25, 2025 at 03:12:32PM -0500, Rob Herring wrote:
On Wed, Jun 11, 2025 at 11:42:09AM +0200, J. Neuschäfer wrote:
quoted
As part of a larger effort to bring various PowerPC-related bindings
into the YAML world, this patch converts msi-pic.txt to YAML and moves
it into the bindings/interrupt-controller/ directory. The conversion may
necessarily be a bit hard to read because the binding is quite verbose.

Signed-off-by: J. Neuschäfer <redacted>
---
[...]
quoted
+  interrupts:
+    minItems: 1
+    maxItems: 16
[...]
quoted
+required:
+  - compatible
+  - reg
+  - interrupts
+
+anyOf:
allOf
AFAIUI, at the current moment it doesn't make a difference because there
is only one item under the anyOf/allOf, but for robustness allOf looks
better.
quoted
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - fsl,mpic-msi-v4.3
+              - fsl,vmpic-msi-v4.3
+    then:
+      properties:
+        interrupts:
+          maxItems: 16
Don't you mean 'minItems: 16'? Otherwise, this schema has no effect.
Indeed.
I can fix these up when applying.
Please do. Thank you!

J. Neuschäfer
quoted
+          description:
+            Version 4.3 implies that there are 16 shared interrupts, and they
+            are configured through MSIIR1.
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help