Commit 0d9a302d authored by Rob Herring's avatar Rob Herring

dt-bindings: Clean-up schema errors due to missing 'addtionalProperties: false'

Numerous schemas are missing 'additionalProperties: false' statements which
ensures a binding doesn't have any extra undocumented properties or child
nodes. Fixing this reveals various missing properties, so let's fix all
those occurrences.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Acked-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio
Acked-by: Stephen Boyd <sboyd@kernel.org> # clock
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Cc: dri-devel@lists.freedesktop.org
Cc: netdev@vger.kernel.org
Cc: Guillaume La Roque <glaroque@baylibre.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Mark Brown <broonie@kernel.org>
Cc: linux-iio@vger.kernel.org
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-clk@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: linux-amlogic@lists.infradead.org
Cc: linux-pm@vger.kernel.org
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-gpio@vger.kernel.org
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-media@vger.kernel.org
Cc: Lee Jones <lee.jones@linaro.org>
parent b6b76af4
...@@ -21,6 +21,9 @@ properties: ...@@ -21,6 +21,9 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
clocks:
maxItems: 1
'#clock-cells': '#clock-cells':
const: 0 const: 0
......
...@@ -41,6 +41,8 @@ properties: ...@@ -41,6 +41,8 @@ properties:
minimum: 0 minimum: 0
maximum: 512 maximum: 512
gpio-ranges: true
gpio-ranges-group-names: gpio-ranges-group-names:
$ref: /schemas/types.yaml#/definitions/string-array $ref: /schemas/types.yaml#/definitions/string-array
......
...@@ -43,6 +43,9 @@ properties: ...@@ -43,6 +43,9 @@ properties:
operating-points-v2: true operating-points-v2: true
resets:
maxItems: 2
required: required:
- compatible - compatible
- reg - reg
...@@ -57,9 +60,6 @@ allOf: ...@@ -57,9 +60,6 @@ allOf:
contains: contains:
const: amlogic,meson-g12a-mali const: amlogic,meson-g12a-mali
then: then:
properties:
resets:
minItems: 2
required: required:
- resets - resets
......
...@@ -75,6 +75,9 @@ properties: ...@@ -75,6 +75,9 @@ properties:
mali-supply: true mali-supply: true
power-domains:
maxItems: 1
resets: resets:
minItems: 1 minItems: 1
maxItems: 2 maxItems: 2
......
...@@ -106,7 +106,6 @@ examples: ...@@ -106,7 +106,6 @@ examples:
spi-cpha; spi-cpha;
clocks = <&ad7192_mclk>; clocks = <&ad7192_mclk>;
clock-names = "mclk"; clock-names = "mclk";
#interrupt-cells = <2>;
interrupts = <25 0x2>; interrupts = <25 0x2>;
interrupt-parent = <&gpio>; interrupt-parent = <&gpio>;
dvdd-supply = <&dvdd>; dvdd-supply = <&dvdd>;
......
...@@ -25,6 +25,9 @@ properties: ...@@ -25,6 +25,9 @@ properties:
- bosch,bmp280 - bosch,bmp280
- bosch,bme280 - bosch,bme280
reg:
maxItems: 1
vddd-supply: vddd-supply:
description: description:
digital voltage regulator (see regulator/regulator.txt) digital voltage regulator (see regulator/regulator.txt)
......
...@@ -24,6 +24,12 @@ properties: ...@@ -24,6 +24,12 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
clocks:
maxItems: 1
clock-names:
maxItems: 1
interrupts: interrupts:
maxItems: 1 maxItems: 1
...@@ -47,7 +53,6 @@ allOf: ...@@ -47,7 +53,6 @@ allOf:
- description: AO-CEC clock - description: AO-CEC clock
clock-names: clock-names:
maxItems: 1
items: items:
- const: core - const: core
...@@ -66,7 +71,6 @@ allOf: ...@@ -66,7 +71,6 @@ allOf:
- description: AO-CEC clock generator source - description: AO-CEC clock generator source
clock-names: clock-names:
maxItems: 1
items: items:
- const: oscin - const: oscin
...@@ -88,4 +92,3 @@ examples: ...@@ -88,4 +92,3 @@ examples:
clock-names = "core"; clock-names = "core";
hdmi-phandle = <&hdmi_tx>; hdmi-phandle = <&hdmi_tx>;
}; };
...@@ -41,6 +41,9 @@ properties: ...@@ -41,6 +41,9 @@ properties:
"#clock-cells": "#clock-cells":
const: 0 const: 0
clock-output-names:
const: bd71828-32k-out
rohm,charger-sense-resistor-ohms: rohm,charger-sense-resistor-ohms:
minimum: 10000000 minimum: 10000000
maximum: 50000000 maximum: 50000000
......
...@@ -37,6 +37,12 @@ properties: ...@@ -37,6 +37,12 @@ properties:
description: description:
The physical base address and size of full the CPSW module IO range The physical base address and size of full the CPSW module IO range
'#address-cells':
const: 1
'#size-cells':
const: 1
ranges: true ranges: true
clocks: clocks:
...@@ -111,13 +117,6 @@ properties: ...@@ -111,13 +117,6 @@ properties:
- reg - reg
- phys - phys
mdio:
type: object
allOf:
- $ref: "ti,davinci-mdio.yaml#"
description:
CPSW MDIO bus.
cpts: cpts:
type: object type: object
description: description:
...@@ -148,6 +147,15 @@ properties: ...@@ -148,6 +147,15 @@ properties:
- clocks - clocks
- clock-names - clock-names
patternProperties:
"^mdio@":
type: object
allOf:
- $ref: "ti,davinci-mdio.yaml#"
description:
CPSW MDIO bus.
required: required:
- compatible - compatible
- reg - reg
...@@ -174,7 +182,6 @@ examples: ...@@ -174,7 +182,6 @@ examples:
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
syscon = <&scm_conf>; syscon = <&scm_conf>;
inctrl-names = "default", "sleep";
interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
......
...@@ -24,7 +24,7 @@ properties: ...@@ -24,7 +24,7 @@ properties:
const: maxim,max77650-regulator const: maxim,max77650-regulator
patternProperties: patternProperties:
"^regulator@[0-3]$": "^regulator-(ldo|sbb[0-2])$":
$ref: "regulator.yaml#" $ref: "regulator.yaml#"
required: required:
......
...@@ -32,6 +32,8 @@ properties: ...@@ -32,6 +32,8 @@ properties:
description: phandle to the ao-secure syscon description: phandle to the ao-secure syscon
$ref: '/schemas/types.yaml#/definitions/phandle' $ref: '/schemas/types.yaml#/definitions/phandle'
'#thermal-sensor-cells':
const: 0
required: required:
- compatible - compatible
......
...@@ -32,6 +32,8 @@ properties: ...@@ -32,6 +32,8 @@ properties:
'#size-cells': '#size-cells':
const: 1 const: 1
ranges: true
clock-frequency: clock-frequency:
description: The frequency of the main counter, in Hz. Should be present description: The frequency of the main counter, in Hz. Should be present
only where necessary to work around broken firmware which does not configure only where necessary to work around broken firmware which does not configure
......
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