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

Zhen Lei
2020-12-04T09:41:33Z

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 <thunder.leizhen@huawei.com>
---
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