Commit f84e2c5c authored by Rob Herring's avatar Rob Herring

dt-bindings: Another round of adding missing 'additionalProperties/unevalutatedProperties'

Another round of wack-a-mole. The json-schema default is additional
unknown properties are allowed, but for DT all properties should be
defined.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 62298364
...@@ -85,6 +85,8 @@ required: ...@@ -85,6 +85,8 @@ required:
- reset-gpios - reset-gpios
- ports - ports
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -48,6 +48,7 @@ required: ...@@ -48,6 +48,7 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
additionalProperties: false
examples: examples:
- | - |
......
...@@ -28,6 +28,8 @@ required: ...@@ -28,6 +28,8 @@ required:
- reg - reg
- vref-supply - vref-supply
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -32,6 +32,8 @@ required: ...@@ -32,6 +32,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c0 { i2c0 {
......
...@@ -79,6 +79,8 @@ required: ...@@ -79,6 +79,8 @@ required:
- ti,sci-dev-id - ti,sci-dev-id
- ti,interrupt-ranges - ti,interrupt-ranges
unevaluatedProperties: false
examples: examples:
- | - |
bus { bus {
......
...@@ -88,6 +88,8 @@ required: ...@@ -88,6 +88,8 @@ required:
- ti,sci-dev-id - ti,sci-dev-id
- ti,interrupt-ranges - ti,interrupt-ranges
unevaluatedProperties: false
examples: examples:
- | - |
main_gpio_intr: interrupt-controller0 { main_gpio_intr: interrupt-controller0 {
......
...@@ -32,3 +32,5 @@ properties: ...@@ -32,3 +32,5 @@ properties:
that a LED can be made so bright that it gets damaged or causes damage that a LED can be made so bright that it gets damaged or causes damage
due to restrictions in a specific system, such as mounting conditions. due to restrictions in a specific system, such as mounting conditions.
$ref: /schemas/types.yaml#definitions/uint32 $ref: /schemas/types.yaml#definitions/uint32
additionalProperties: true
...@@ -46,6 +46,12 @@ properties: ...@@ -46,6 +46,12 @@ properties:
vled-supply: vled-supply:
description: LED supply. description: LED supply.
'#address-cells':
const: 1
'#size-cells':
const: 0
patternProperties: patternProperties:
'^multi-led@[0-9a-f]$': '^multi-led@[0-9a-f]$':
type: object type: object
...@@ -69,6 +75,8 @@ required: ...@@ -69,6 +75,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -46,6 +46,8 @@ required: ...@@ -46,6 +46,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -186,6 +186,8 @@ required: ...@@ -186,6 +186,8 @@ required:
- clock-names - clock-names
- ti,otap-del-sel-legacy - ti,otap-del-sel-legacy
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -46,6 +46,8 @@ required: ...@@ -46,6 +46,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
# FIXME: Remove defines and include the correct header file # FIXME: Remove defines and include the correct header file
# once it is available in mainline. # once it is available in mainline.
......
...@@ -65,6 +65,8 @@ properties: ...@@ -65,6 +65,8 @@ properties:
required: required:
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
mdio0 { mdio0 {
......
...@@ -62,6 +62,8 @@ required: ...@@ -62,6 +62,8 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false
examples: examples:
- | - |
usb0_phy: phy@4100000 { usb0_phy: phy@4100000 {
......
...@@ -36,6 +36,8 @@ patternProperties: ...@@ -36,6 +36,8 @@ patternProperties:
"^mode-.*$": "^mode-.*$":
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
additionalProperties: false
examples: examples:
- | - |
reboot-mode { reboot-mode {
......
...@@ -41,6 +41,8 @@ required: ...@@ -41,6 +41,8 @@ required:
- enable-gpios - enable-gpios
- mps,fb-voltage-divider - mps,fb-voltage-divider
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -80,6 +80,8 @@ required: ...@@ -80,6 +80,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -26,6 +26,8 @@ properties: ...@@ -26,6 +26,8 @@ properties:
required: required:
- compatible - compatible
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment