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:
reg:
maxItems: 1
clocks:
maxItems: 1
'#clock-cells':
const: 0
......
......@@ -41,6 +41,8 @@ properties:
minimum: 0
maximum: 512
gpio-ranges: true
gpio-ranges-group-names:
$ref: /schemas/types.yaml#/definitions/string-array
......
......@@ -43,6 +43,9 @@ properties:
operating-points-v2: true
resets:
maxItems: 2
required:
- compatible
- reg
......@@ -57,9 +60,6 @@ allOf:
contains:
const: amlogic,meson-g12a-mali
then:
properties:
resets:
minItems: 2
required:
- resets
......
......@@ -75,6 +75,9 @@ properties:
mali-supply: true
power-domains:
maxItems: 1
resets:
minItems: 1
maxItems: 2
......
......@@ -106,7 +106,6 @@ examples:
spi-cpha;
clocks = <&ad7192_mclk>;
clock-names = "mclk";
#interrupt-cells = <2>;
interrupts = <25 0x2>;
interrupt-parent = <&gpio>;
dvdd-supply = <&dvdd>;
......
......@@ -25,6 +25,9 @@ properties:
- bosch,bmp280
- bosch,bme280
reg:
maxItems: 1
vddd-supply:
description:
digital voltage regulator (see regulator/regulator.txt)
......
......@@ -24,6 +24,12 @@ properties:
reg:
maxItems: 1
clocks:
maxItems: 1
clock-names:
maxItems: 1
interrupts:
maxItems: 1
......@@ -47,7 +53,6 @@ allOf:
- description: AO-CEC clock
clock-names:
maxItems: 1
items:
- const: core
......@@ -66,7 +71,6 @@ allOf:
- description: AO-CEC clock generator source
clock-names:
maxItems: 1
items:
- const: oscin
......@@ -88,4 +92,3 @@ examples:
clock-names = "core";
hdmi-phandle = <&hdmi_tx>;
};
......@@ -41,6 +41,9 @@ properties:
"#clock-cells":
const: 0
clock-output-names:
const: bd71828-32k-out
rohm,charger-sense-resistor-ohms:
minimum: 10000000
maximum: 50000000
......
......@@ -37,6 +37,12 @@ properties:
description:
The physical base address and size of full the CPSW module IO range
'#address-cells':
const: 1
'#size-cells':
const: 1
ranges: true
clocks:
......@@ -111,13 +117,6 @@ properties:
- reg
- phys
mdio:
type: object
allOf:
- $ref: "ti,davinci-mdio.yaml#"
description:
CPSW MDIO bus.
cpts:
type: object
description:
......@@ -148,6 +147,15 @@ properties:
- clocks
- clock-names
patternProperties:
"^mdio@":
type: object
allOf:
- $ref: "ti,davinci-mdio.yaml#"
description:
CPSW MDIO bus.
required:
- compatible
- reg
......@@ -174,7 +182,6 @@ examples:
#address-cells = <1>;
#size-cells = <1>;
syscon = <&scm_conf>;
inctrl-names = "default", "sleep";
interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
......
......@@ -24,7 +24,7 @@ properties:
const: maxim,max77650-regulator
patternProperties:
"^regulator@[0-3]$":
"^regulator-(ldo|sbb[0-2])$":
$ref: "regulator.yaml#"
required:
......
......@@ -32,6 +32,8 @@ properties:
description: phandle to the ao-secure syscon
$ref: '/schemas/types.yaml#/definitions/phandle'
'#thermal-sensor-cells':
const: 0
required:
- compatible
......
......@@ -32,6 +32,8 @@ properties:
'#size-cells':
const: 1
ranges: true
clock-frequency:
description: The frequency of the main counter, in Hz. Should be present
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