From: Zhen Lei <thunder.leizhen@huawei.com>
To: Philipp Zabel <p.zabel@pengutronix.de>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Karol Gugala <kgugala@antmicro.com>,
Mateusz Holenko <mholenko@antmicro.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
Pawel Czarnecki <pczarnecki@internships.antmicro.com>,
Stafford Horne <shorne@gmail.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Lee Jones <lee.jones@linaro.org>,
linux-media <linux-media@vger.kernel.org>,
linux-serial <linux-serial@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-mediatek <linux-mediatek@lists.infradead.org>,
devicetree <devicetree@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Cc: Zhen Lei <thunder.leizhen@huawei.com>
Subject: [PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties'
Date: Fri, 4 Dec 2020 17:38:09 +0800 [thread overview]
Message-ID: <20201204093813.1275-2-thunder.leizhen@huawei.com> (raw)
In-Reply-To: <20201204093813.1275-1-thunder.leizhen@huawei.com>
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
next prev parent reply other threads:[~2020-12-04 9:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-04 9:38 [PATCH 0/5] fix dt_binding_check warnings Zhen Lei
2020-12-04 9:38 ` Zhen Lei [this message]
2020-12-04 10:56 ` [PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties' Philipp Zabel
2020-12-06 5:32 ` Leizhen (ThunderTown)
2020-12-04 9:38 ` [PATCH 2/5] dt-bindings: serial: " Zhen Lei
2020-12-07 22:58 ` Rob Herring
2020-12-18 21:16 ` Rob Herring
2020-12-04 9:38 ` [PATCH 3/5] dt-bindings: soc: " Zhen Lei
2020-12-07 22:59 ` Rob Herring
2020-12-18 21:17 ` Rob Herring
2020-12-19 9:27 ` Stafford Horne
2020-12-04 9:38 ` [PATCH 4/5] dt-bindings: devapc: " Zhen Lei
2020-12-07 22:59 ` Rob Herring
2020-12-18 21:17 ` Rob Herring
2020-12-04 9:38 ` [PATCH 5/5] dt-bindings: mfd: correct the node name of the panel led Zhen Lei
2020-12-07 23:00 ` Rob Herring
2020-12-16 8:58 ` Lee Jones
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=20201204093813.1275-2-thunder.leizhen@huawei.com \
--to=thunder.leizhen@huawei.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=kgugala@antmicro.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-serial@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=mholenko@antmicro.com \
--cc=p.zabel@pengutronix.de \
--cc=pczarnecki@internships.antmicro.com \
--cc=robh+dt@kernel.org \
--cc=shorne@gmail.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;
as well as URLs for NNTP newsgroup(s).