dt-bindings: Explicitly allow additional properties in common schemas

In order to add meta-schema checks for additional/unevaluatedProperties
being present, all schema need to make this explicit. As common/shared
schema are included by other schemas, they should always allow for
additionalProperties.

Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-By: Vinod Koul <vkoul@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201005183830.486085-5-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
Rob Herring 2020-10-05 13:38:30 -05:00
parent 4828556dca
commit 6a0e321ea7
65 changed files with 135 additions and 1 deletions

View File

@ -341,6 +341,8 @@ required:
dependencies:
rockchip,pmu: [enable-method]
additionalProperties: true
examples:
- |
cpus {

View File

@ -30,6 +30,8 @@ properties:
Specifies the bpmp node that needs to be queried to get
operating point data for all CPUs.
additionalProperties: true
examples:
- |
cpus {

View File

@ -47,4 +47,6 @@ patternProperties:
The ID number of the drive port, 0 for the master port and 1 for the
slave port.
additionalProperties: true
...

View File

@ -47,4 +47,6 @@ patternProperties:
multiplier making it possible to connect up to 15 disks to a single
SATA port.
additionalProperties: true
...

View File

@ -61,6 +61,8 @@ anyOf:
- required:
- power-domains
additionalProperties: true
examples:
- |
#include <dt-bindings/clock/qcom,gcc-msm8996.h>

View File

@ -26,6 +26,8 @@ properties:
required:
- compatible
additionalProperties: true #fixme
examples:
- |+
spi0 {

View File

@ -172,6 +172,8 @@ allOf:
type:
const: micro
additionalProperties: true
examples:
# Micro-USB connector with HS lines routed via controller (MUIC).
- |

View File

@ -66,3 +66,5 @@ required:
- clocks
- ports
- reg
additionalProperties: true

View File

@ -73,6 +73,8 @@ patternProperties:
required:
- reg
additionalProperties: true
examples:
- |
#include <dt-bindings/gpio/gpio.h>

View File

@ -112,4 +112,6 @@ oneOf:
- required:
- ports
additionalProperties: true
...

View File

@ -163,4 +163,6 @@ dependencies:
width-mm: [ height-mm ]
height-mm: [ width-mm ]
additionalProperties: true
...

View File

@ -49,3 +49,5 @@ properties:
required:
- "#dma-cells"
additionalProperties: true

View File

@ -17,6 +17,8 @@ properties:
$nodename:
pattern: "^dma-controller(@.*)?$"
additionalProperties: true
examples:
- |
dma: dma-controller@48000000 {

View File

@ -36,6 +36,8 @@ required:
- "#dma-cells"
- dma-masters
additionalProperties: true
examples:
- |
sdma_xbar: dma-router@4a002b78 {

View File

@ -123,3 +123,5 @@ properties:
$ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0
maximum: 3
additionalProperties: true

View File

@ -46,6 +46,8 @@ properties:
"#io-channel-cells":
const: 1
io-channel-ranges: true
vdd-supply: true
samsung,syscon-phandle:
@ -68,6 +70,9 @@ required:
- "#io-channel-cells"
- vdd-supply
additionalProperties:
type: object
allOf:
- if:
properties:

View File

@ -32,4 +32,6 @@ properties:
considered 'near' to the device (an object is near to the
sensor).
additionalProperties: true
...

View File

@ -33,3 +33,5 @@ properties:
power off automatically. Device with key pressed shutdown feature can
specify this property.
$ref: /schemas/types.yaml#/definitions/uint32
additionalProperties: true

View File

@ -35,6 +35,8 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
description: Number of column lines connected to the keypad controller.
additionalProperties: true
examples:
- |
keypad {

View File

@ -81,3 +81,5 @@ dependencies:
touchscreen-size-y: [ touchscreen-size-x ]
touchscreen-x-mm: [ touchscreen-y-mm ]
touchscreen-y-mm: [ touchscreen-x-mm ]
additionalProperties: true

View File

@ -156,6 +156,8 @@ properties:
Maximum timeout in microseconds after which the flash LED is turned off.
Required for flash LED nodes with configurable timeout.
additionalProperties: true
examples:
- |
#include <dt-bindings/gpio/gpio.h>

View File

@ -34,4 +34,7 @@ patternProperties:
required:
- color
additionalProperties: true
...

View File

@ -21,4 +21,6 @@ properties:
trigger sources (e.g. a specific USB port).
enum: [ 0, 1 ]
additionalProperties: true
...

View File

@ -150,3 +150,5 @@ properties:
- rc-x96max
- rc-xbox-dvd
- rc-zx-irdec
additionalProperties: true

View File

@ -71,7 +71,7 @@ required:
- compatible
- reg
unevaluatedProperties: false
additionalProperties: true
examples:
- |

View File

@ -349,6 +349,8 @@ dependencies:
cd-debounce-delay-ms: [ cd-gpios ]
fixed-emmc-driver-type: [ non-removable ]
additionalProperties: true
examples:
- |
mmc@ab000000 {

View File

@ -62,3 +62,5 @@ properties:
dma-names:
const: rx-tx
additionalProperties: true

View File

@ -128,6 +128,8 @@ required:
- "#address-cells"
- "#size-cells"
additionalProperties: true
examples:
- |
nand-controller {

View File

@ -16,3 +16,5 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
description: a positive non 0 value that determines the max speed that CAN/CAN-FD can run.
minimum: 1
additionalProperties: true

View File

@ -89,4 +89,6 @@ oneOf:
- required:
- ethernet-ports
additionalProperties: true
...

View File

@ -205,4 +205,6 @@ properties:
required:
- speed
additionalProperties: true
...

View File

@ -177,6 +177,8 @@ properties:
required:
- reg
additionalProperties: true
examples:
- |
ethernet {

View File

@ -100,6 +100,8 @@ patternProperties:
required:
- reg
additionalProperties: true
examples:
- |
davinci_mdio: mdio@5c030000 {

View File

@ -356,6 +356,8 @@ allOf:
Enables the TSO feature otherwise it will be managed by
MAC HW capability register.
additionalProperties: true
examples:
- |
stmmac_axi_setup: stmmac-axi-config {

View File

@ -36,6 +36,8 @@ dependencies:
nvmem-names: [ nvmem ]
nvmem-cell-names: [ nvmem-cells ]
additionalProperties: true
examples:
- |
tsens {

View File

@ -67,6 +67,8 @@ patternProperties:
required:
- reg
additionalProperties: true
examples:
- |
#include <dt-bindings/gpio/gpio.h>

View File

@ -22,3 +22,5 @@ properties:
required:
- cdns,max-outbound-regions
additionalProperties: true

View File

@ -33,3 +33,5 @@ properties:
deprecated: true
msi-parent: true
additionalProperties: true

View File

@ -21,3 +21,5 @@ properties:
items:
- const: pcie-phy
# FIXME: names when more than 1
additionalProperties: true

View File

@ -36,3 +36,5 @@ properties:
required:
- compatible
additionalProperties: true

View File

@ -120,3 +120,5 @@ properties:
required:
- pinctrl-0
- pinctrl-names
additionalProperties: true

View File

@ -138,3 +138,5 @@ properties:
and the delay before latching a value to an output
pin. Typically indicates how many double-inverters are
used to delay the signal.
additionalProperties: true

View File

@ -129,3 +129,5 @@ properties:
pinctrl-pin-array:
$ref: /schemas/types.yaml#/definitions/uint32-array
additionalProperties: true

View File

@ -69,6 +69,8 @@ properties:
required:
- "#power-domain-cells"
additionalProperties: true
examples:
- |
power: power-controller@12340000 {

View File

@ -16,6 +16,8 @@ properties:
This property is added to a supply in order to list the devices which
supply it power, referenced by their phandles.
additionalProperties: true
examples:
- |
power {

View File

@ -20,6 +20,8 @@ properties:
required:
- "#pwm-cells"
additionalProperties: true
examples:
- |
pwm: pwm@7000a000 {

View File

@ -188,6 +188,8 @@ patternProperties:
additionalProperties: false
additionalProperties: true
examples:
- |
xyzreg: regulator {

View File

@ -35,3 +35,5 @@ properties:
Initial data for the MICVDD regulator.
$ref: "regulator.yaml#"
type: object
additionalProperties: true

View File

@ -91,6 +91,8 @@ required:
- riscv,isa
- interrupt-controller
additionalProperties: true
examples:
- |
// Example 1: SiFive Freedom U540G Development Kit

View File

@ -47,4 +47,6 @@ properties:
description:
Enables wake up of host system on alarm.
additionalProperties: true
...

View File

@ -45,4 +45,7 @@ properties:
rs485-term-gpios:
description: GPIO pin to enable RS485 bus termination.
maxItems: 1
additionalProperties: true
...

View File

@ -124,6 +124,8 @@ patternProperties:
required:
- compatible
additionalProperties: true
examples:
- |
serial@1234 {

View File

@ -35,6 +35,8 @@ required:
- compatible
- reg
additionalProperties: true
examples:
- |
bus@30000000 {

View File

@ -75,6 +75,8 @@ required:
- reg
- resets
additionalProperties: false
examples:
- |
#include <dt-bindings/clock/gxbb-clkc.h>

View File

@ -111,3 +111,5 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 2
maxItems: 2
additionalProperties: true

View File

@ -67,6 +67,9 @@ required:
- "#size-cells"
- ranges
additionalProperties:
type: object
examples:
- |
#include<dt-bindings/clock/tegra210-car.h>

View File

@ -112,3 +112,5 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 12
additionalProperties: true

View File

@ -57,6 +57,8 @@ required:
- "#address-cells"
- "#size-cells"
additionalProperties: true
examples:
- |
soundwire@c2d0000 {

View File

@ -140,6 +140,8 @@ patternProperties:
- compatible
- reg
additionalProperties: true
examples:
- |
spi@f00 {

View File

@ -55,6 +55,8 @@ patternProperties:
required:
- reg
additionalProperties: true
examples:
- |
#include <dt-bindings/spmi/spmi.h>

View File

@ -49,6 +49,8 @@ properties:
and the second cell is the maximum cooling state requested.
const: 2
additionalProperties: true
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>

View File

@ -36,6 +36,8 @@ properties:
containing several internal sensors.
enum: [0, 1]
additionalProperties: true
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>

View File

@ -32,6 +32,8 @@ required:
- interrupts
- interrupt-names
additionalProperties: true
examples:
- |
#include <dt-bindings/interrupt-controller/irq.h>

View File

@ -22,6 +22,8 @@ properties:
description:
Name specifier for the USB PHY
additionalProperties: true
examples:
- |
usb {

View File

@ -23,4 +23,6 @@ properties:
description:
Contains the watchdog timeout in seconds.
additionalProperties: true
...