diff mbox series

[3/5] dt-bindings: soc: add the required property 'additionalProperties'

Message ID 20201204093813.1275-4-thunder.leizhen@huawei.com
State New
Headers show
Series fix dt_binding_check warnings | expand

Commit Message

Leizhen (ThunderTown) Dec. 4, 2020, 9:38 a.m. UTC
When I do dt_binding_check for any YAML file, below wanring is always
reported:

xxx/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required property
xxx/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:
warning: no schema found in file: xxx/soc/litex/litex,soc-controller.yaml

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

---
 Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++
 1 file changed, 2 insertions(+)

-- 
1.8.3

Comments

Rob Herring Dec. 7, 2020, 10:59 p.m. UTC | #1
On Fri, 04 Dec 2020 17:38:11 +0800, Zhen Lei wrote:
> When I do dt_binding_check for any YAML file, below wanring is always

> reported:

> 

> xxx/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required property

> xxx/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:

> warning: no schema found in file: xxx/soc/litex/litex,soc-controller.yaml

> 

> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

> ---

>  Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++

>  1 file changed, 2 insertions(+)

> 


Reviewed-by: Rob Herring <robh@kernel.org>
Rob Herring Dec. 18, 2020, 9:17 p.m. UTC | #2
On Fri, 04 Dec 2020 17:38:11 +0800, Zhen Lei wrote:
> When I do dt_binding_check for any YAML file, below wanring is always
> reported:
> 
> xxx/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required property
> xxx/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:
> warning: no schema found in file: xxx/soc/litex/litex,soc-controller.yaml
> 
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
> ---
>  Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 

Applied, thanks!
Stafford Horne Dec. 19, 2020, 9:27 a.m. UTC | #3
On Fri, Dec 18, 2020 at 03:17:06PM -0600, Rob Herring wrote:
> On Fri, 04 Dec 2020 17:38:11 +0800, Zhen Lei wrote:
> > When I do dt_binding_check for any YAML file, below wanring is always
> > reported:
> > 
> > xxx/soc/litex/litex,soc-controller.yaml: 'additionalProperties' is a required property
> > xxx/soc/litex/litex,soc-controller.yaml: ignoring, error in schema:
> > warning: no schema found in file: xxx/soc/litex/litex,soc-controller.yaml
> > 
> > Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
> > ---
> >  Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> 
> Applied, thanks!

Thank you!

-Stafford
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml b/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml
index e2b788796e791ab..c8b57c7fd08c23d 100644
--- a/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml
+++ b/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml
@@ -28,6 +28,8 @@  required:
   - compatible
   - reg
 
+additionalProperties: false
+
 examples:
   - |
     soc_ctrl0: soc-controller@f0000000 {