Thread (17 messages) 17 messages, 5 authors, 2020-12-19
STALE2037d

[PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties'

From: Zhen Lei <hidden>
Date: 2020-12-04 09:40:41
Also in: linux-arm-kernel, linux-media, linux-mediatek, linux-serial, lkml
Subsystem: coda v4l2 mem2mem driver, media input infrastructure (v4l/dvb), open firmware and flattened device tree bindings, the rest · Maintainers: Philipp Zabel, Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

When I do dt_binding_check for any YAML file, below wanring is always
reported:

xxx/media/coda.yaml: 'additionalProperties' is a required property
xxx/media/coda.yaml: ignoring, error in schema:
warning: no schema found in file: xxx/media/coda.yaml

There are three properties defined in allOf, they should be explicitly
declared. Otherwise, "additionalProperties: false" will prohibit them.

Signed-off-by: Zhen Lei <redacted>
---
 Documentation/devicetree/bindings/media/coda.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/coda.yaml b/Documentation/devicetree/bindings/media/coda.yaml
index 7bac0057faf7319..199b0826cd01cb6 100644
--- a/Documentation/devicetree/bindings/media/coda.yaml
+++ b/Documentation/devicetree/bindings/media/coda.yaml
@@ -52,6 +52,10 @@ properties:
     description: phandle pointing to the SRAM device node
     maxItems: 1
 
+  interrupts: true
+  interrupt-names: true
+  power-domains: true
+
 required:
   - compatible
   - reg
@@ -96,6 +100,8 @@ allOf:
           description: phandle pointing to the PU power domain
           maxItems: 1
 
+additionalProperties: false
+
 examples:
   - |
     vpu: video-codec@63ff4000 {
-- 
1.8.3

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