Commit 5be478f9 authored by Rob Herring's avatar Rob Herring

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

Another round of wack-a-mole. The json-schema default is additional
unknown properties are allowed, but for DT all properties should be
defined.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-By: default avatarVinod Koul <vkoul@kernel.org>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # for iio
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Reviewd-by: default avatarCorey Minyard <cminyard@mvista.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Acked-by: default avatarSebastian Reichel <sre@kernel.org>
Link: https://lore.kernel.org/r/20201002234143.3570746-1-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 891adc13
...@@ -54,6 +54,8 @@ required: ...@@ -54,6 +54,8 @@ required:
- compatible - compatible
- mboxes - mboxes
additionalProperties: false
examples: examples:
- | - |
firmware { firmware {
......
...@@ -47,6 +47,8 @@ required: ...@@ -47,6 +47,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
pericfg@10003000 { pericfg@10003000 {
......
...@@ -93,4 +93,6 @@ properties: ...@@ -93,4 +93,6 @@ properties:
required: required:
- compatible - compatible
additionalProperties: false
... ...
...@@ -33,4 +33,7 @@ properties: ...@@ -33,4 +33,7 @@ properties:
contains: contains:
const: apb_pclk const: apb_pclk
additionalItems: true additionalItems: true
additionalProperties: true
... ...
...@@ -308,6 +308,8 @@ required: ...@@ -308,6 +308,8 @@ required:
- clocks - clocks
- '#clock-cells' - '#clock-cells'
additionalProperties: false
dependencies: dependencies:
"nvidia,suspend-mode": ["nvidia,core-pwr-off-time", "nvidia,cpu-pwr-off-time"] "nvidia,suspend-mode": ["nvidia,core-pwr-off-time", "nvidia,cpu-pwr-off-time"]
"nvidia,core-pwr-off-time": ["nvidia,core-pwr-good-time"] "nvidia,core-pwr-off-time": ["nvidia,core-pwr-good-time"]
......
...@@ -26,6 +26,8 @@ required: ...@@ -26,6 +26,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
cdmm@1bde8000 { cdmm@1bde8000 {
......
...@@ -57,6 +57,11 @@ properties: ...@@ -57,6 +57,11 @@ properties:
"ranges" property should provide a "reasonable" default that is known to "ranges" property should provide a "reasonable" default that is known to
work. The software should initialize the bus controller according to it. work. The software should initialize the bus controller according to it.
patternProperties:
"^.*@[1-5],[1-9a-f][0-9a-f]+$":
description: Devices attached to chip selects
type: object
required: required:
- compatible - compatible
- reg - reg
...@@ -64,6 +69,8 @@ required: ...@@ -64,6 +69,8 @@ required:
- "#size-cells" - "#size-cells"
- ranges - ranges
additionalProperties: false
examples: examples:
- | - |
// In this example, // In this example,
......
...@@ -89,6 +89,8 @@ required: ...@@ -89,6 +89,8 @@ required:
- compatible - compatible
- clocks - clocks
additionalProperties: false
examples: examples:
- | - |
vco1: clock { vco1: clock {
......
...@@ -50,6 +50,15 @@ properties: ...@@ -50,6 +50,15 @@ properties:
'#clock-cells': '#clock-cells':
const: 1 const: 1
clock-names:
minItems: 1
maxItems: 2
items:
enum: [ xin, clkin ]
clocks:
minItems: 1
maxItems: 2
patternProperties: patternProperties:
"^OUT[1-4]$": "^OUT[1-4]$":
type: object type: object
...@@ -93,19 +102,12 @@ allOf: ...@@ -93,19 +102,12 @@ allOf:
maxItems: 1 maxItems: 1
else: else:
# Devices without builtin crystal # Devices without builtin crystal
properties:
clock-names:
minItems: 1
maxItems: 2
items:
enum: [ xin, clkin ]
clocks:
minItems: 1
maxItems: 2
required: required:
- clock-names - clock-names
- clocks - clocks
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clk/versaclock.h> #include <dt-bindings/clk/versaclock.h>
......
...@@ -57,6 +57,8 @@ required: ...@@ -57,6 +57,8 @@ required:
- interrupts - interrupts
- '#clock-cells' - '#clock-cells'
additionalProperties: false
examples: examples:
# Clock Control Module node: # Clock Control Module node:
- | - |
......
...@@ -33,6 +33,8 @@ required: ...@@ -33,6 +33,8 @@ required:
- interrupts - interrupts
- '#clock-cells' - '#clock-cells'
additionalProperties: false
examples: examples:
# Clock Control Module node: # Clock Control Module node:
- | - |
......
...@@ -49,6 +49,8 @@ required: ...@@ -49,6 +49,8 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false
examples: examples:
# Clock Control Module node: # Clock Control Module node:
- | - |
......
...@@ -53,6 +53,8 @@ required: ...@@ -53,6 +53,8 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false
examples: examples:
# Clock Control Module node: # Clock Control Module node:
- | - |
......
...@@ -49,6 +49,8 @@ required: ...@@ -49,6 +49,8 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false
examples: examples:
# Clock Control Module node: # Clock Control Module node:
- | - |
......
...@@ -33,6 +33,8 @@ required: ...@@ -33,6 +33,8 @@ required:
- reg - reg
- '#clock-cells' - '#clock-cells'
additionalProperties: false
examples: examples:
- | - |
cgu: clock-controller@e0200000 { cgu: clock-controller@e0200000 {
......
...@@ -56,6 +56,8 @@ required: ...@@ -56,6 +56,8 @@ required:
- '#reset-cells' - '#reset-cells'
- '#power-domain-cells' - '#power-domain-cells'
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/qcom,rpmh.h> #include <dt-bindings/clock/qcom,rpmh.h>
......
...@@ -73,6 +73,8 @@ else: ...@@ -73,6 +73,8 @@ else:
The 'reg' property for the clock node is also required if there is a sub The 'reg' property for the clock node is also required if there is a sub
range of registers for the clocks. range of registers for the clocks.
additionalProperties: false
examples: examples:
- | - |
ap_clk: clock-controller@21500000 { ap_clk: clock-controller@21500000 {
......
...@@ -26,6 +26,8 @@ required: ...@@ -26,6 +26,8 @@ required:
- "#clock-cells" - "#clock-cells"
- reg - reg
additionalProperties: false
examples: examples:
- | - |
ehrpwm_tbclk: syscon@4140 { ehrpwm_tbclk: syscon@4140 {
......
...@@ -31,6 +31,9 @@ properties: ...@@ -31,6 +31,9 @@ properties:
compatible: compatible:
const: ite,it6505 const: ite,it6505
reg:
maxItems: 1
ovdd-supply: ovdd-supply:
maxItems: 1 maxItems: 1
description: I/O voltage description: I/O voltage
...@@ -63,6 +66,8 @@ required: ...@@ -63,6 +66,8 @@ required:
- reset-gpios - reset-gpios
- extcon - extcon
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -83,6 +83,9 @@ required: ...@@ -83,6 +83,9 @@ required:
- compatible - compatible
- ports - ports
additionalProperties: false
examples: examples:
- | - |
lvds-encoder { lvds-encoder {
......
...@@ -89,6 +89,8 @@ required: ...@@ -89,6 +89,8 @@ required:
- iommus - iommus
- operating-points-v2 - operating-points-v2
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/qcom,gpucc-sdm845.h> #include <dt-bindings/clock/qcom,gpucc-sdm845.h>
......
...@@ -49,6 +49,8 @@ required: ...@@ -49,6 +49,8 @@ required:
- interrupts - interrupts
- interrupt-names - interrupt-names
additionalProperties: false
examples: examples:
- | - |
dmc0: dmc@200000 { dmc0: dmc@200000 {
......
...@@ -28,6 +28,8 @@ required: ...@@ -28,6 +28,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
fsi2spi@1c00 { fsi2spi@1c00 {
......
...@@ -64,6 +64,8 @@ required: ...@@ -64,6 +64,8 @@ required:
- gpio-ranges - gpio-ranges
- socionext,interrupt-ranges - socionext,interrupt-ranges
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -44,6 +44,8 @@ required: ...@@ -44,6 +44,8 @@ required:
- interrupts - interrupts
- pulses-per-revolution - pulses-per-revolution
additionalProperties: false
examples: examples:
- | - |
fpga_axi: fpga-axi { fpga_axi: fpga-axi {
......
...@@ -65,6 +65,8 @@ required: ...@@ -65,6 +65,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -29,10 +29,14 @@ properties: ...@@ -29,10 +29,14 @@ properties:
mount-matrix: mount-matrix:
description: an optional 3x3 mounting rotation matrix. description: an optional 3x3 mounting rotation matrix.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
# include <dt-bindings/interrupt-controller/irq.h> # include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -62,6 +62,8 @@ required: ...@@ -62,6 +62,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -36,6 +36,8 @@ required: ...@@ -36,6 +36,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -48,6 +48,8 @@ properties: ...@@ -48,6 +48,8 @@ properties:
description: description:
End of conversion interrupt. End of conversion interrupt.
io-channel-ranges: true
required: required:
- compatible - compatible
- reg - reg
...@@ -232,6 +234,8 @@ allOf: ...@@ -232,6 +234,8 @@ allOf:
enum: [ 1, 2, 4, 8, 16 ] enum: [ 1, 2, 4, 8, 16 ]
default: 1 default: 1
additionalProperties: false
examples: examples:
- | - |
spmi_bus { spmi_bus {
......
...@@ -25,10 +25,14 @@ properties: ...@@ -25,10 +25,14 @@ properties:
description: Optional external reference. If not supplied, assume description: Optional external reference. If not supplied, assume
REFSEL input tied low to enable the internal reference. REFSEL input tied low to enable the internal reference.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -33,6 +33,8 @@ required: ...@@ -33,6 +33,8 @@ required:
- compatible - compatible
- ctrl-gpios - ctrl-gpios
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -47,11 +47,17 @@ properties: ...@@ -47,11 +47,17 @@ properties:
vddio-supply: vddio-supply:
description: Regulator that provides power to the bus description: Regulator that provides power to the bus
spi-max-frequency: true
spi-cpha: true
spi-cpol: true
required: required:
- compatible - compatible
- reg - reg
- interrupts - interrupts
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -32,6 +32,8 @@ required: ...@@ -32,6 +32,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -26,6 +26,8 @@ required: ...@@ -26,6 +26,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -26,6 +26,8 @@ required: ...@@ -26,6 +26,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -61,6 +61,8 @@ required: ...@@ -61,6 +61,8 @@ required:
- sharp,proximity-far-hysteresis - sharp,proximity-far-hysteresis
- sharp,proximity-close-hysteresis - sharp,proximity-close-hysteresis
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -55,6 +55,8 @@ required: ...@@ -55,6 +55,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -47,6 +47,8 @@ required: ...@@ -47,6 +47,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -49,6 +49,8 @@ required: ...@@ -49,6 +49,8 @@ required:
- "#interrupt-cells" - "#interrupt-cells"
- interrupt-controller - interrupt-controller
additionalProperties: false
examples: examples:
- | - |
intc: interrupt-controller@10001000 { intc: interrupt-controller@10001000 {
......
...@@ -46,6 +46,8 @@ required: ...@@ -46,6 +46,8 @@ required:
- loongson,msi-base-vec - loongson,msi-base-vec
- loongson,msi-num-vecs - loongson,msi-num-vecs
additionalProperties: true #fixme
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -41,6 +41,8 @@ required: ...@@ -41,6 +41,8 @@ required:
- interrupt-controller - interrupt-controller
- '#interrupt-cells' - '#interrupt-cells'
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -49,6 +49,8 @@ required: ...@@ -49,6 +49,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
smic@fff3a000 { smic@fff3a000 {
......
...@@ -58,6 +58,12 @@ properties: ...@@ -58,6 +58,12 @@ properties:
- 2 # D1~6 with VOUT, D7~9 with VDD - 2 # D1~6 with VOUT, D7~9 with VDD
- 3 # D1~9 are connected to VOUT - 3 # D1~9 are connected to VOUT
'#address-cells':
const: 1
'#size-cells':
const: 0
patternProperties: patternProperties:
"(^led@[0-9a-f]$|led)": "(^led@[0-9a-f]$|led)":
type: object type: object
...@@ -98,6 +104,8 @@ required: ...@@ -98,6 +104,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/leds/common.h> #include <dt-bindings/leds/common.h>
......
...@@ -49,6 +49,8 @@ required: ...@@ -49,6 +49,8 @@ required:
- reg - reg
- interrupts - interrupts
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -119,6 +119,8 @@ required: ...@@ -119,6 +119,8 @@ required:
- reg - reg
- port - port
additionalProperties: false
examples: examples:
- | - |
i2c@e66d8000 { i2c@e66d8000 {
......
...@@ -55,6 +55,8 @@ required: ...@@ -55,6 +55,8 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/imx8mq-clock.h> #include <dt-bindings/clock/imx8mq-clock.h>
......
...@@ -92,6 +92,8 @@ required: ...@@ -92,6 +92,8 @@ required:
- video-decoder - video-decoder
- video-encoder - video-encoder
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -119,6 +119,8 @@ required: ...@@ -119,6 +119,8 @@ required:
- video-decoder - video-decoder
- video-encoder - video-encoder
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -108,6 +108,8 @@ required: ...@@ -108,6 +108,8 @@ required:
- video-decoder - video-decoder
- video-encoder - video-encoder
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -103,6 +103,8 @@ required: ...@@ -103,6 +103,8 @@ required:
- video-core0 - video-core0
- video-core1 - video-core1
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -120,6 +120,8 @@ required: ...@@ -120,6 +120,8 @@ required:
- video-core0 - video-core0
- video-core1 - video-core1
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -33,6 +33,8 @@ required: ...@@ -33,6 +33,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/imx6qdl-clock.h> #include <dt-bindings/clock/imx6qdl-clock.h>
......
...@@ -194,6 +194,8 @@ required: ...@@ -194,6 +194,8 @@ required:
- clocks - clocks
- ranges - ranges
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -144,6 +144,8 @@ required: ...@@ -144,6 +144,8 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -26,6 +26,12 @@ properties: ...@@ -26,6 +26,12 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
'#address-cells':
const: 1
'#size-cells':
const: 1
select: select:
properties: properties:
compatible: compatible:
...@@ -36,15 +42,19 @@ select: ...@@ -36,15 +42,19 @@ select:
required: required:
- compatible - compatible
patternProperties:
"^gpio@[0-9a-f]+$":
$ref: /schemas/gpio/xylon,logicvc-gpio.yaml#
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
logicvc: logicvc@43c00000 { logicvc: logicvc@43c00000 {
compatible = "xylon,logicvc-3.02.a", "syscon", "simple-mfd"; compatible = "xylon,logicvc-3.02.a", "syscon", "simple-mfd";
reg = <0x43c00000 0x6000>; reg = <0x43c00000 0x6000>;
#address-cells = <1>;
#size-cells = <1>;
}; };
...@@ -32,12 +32,16 @@ properties: ...@@ -32,12 +32,16 @@ properties:
clocks: clocks:
maxItems: 1 maxItems: 1
device_type: true
required: required:
- device_type - device_type
- compatible - compatible
- reg - reg
- clocks - clocks
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/jz4780-cgu.h> #include <dt-bindings/clock/jz4780-cgu.h>
...@@ -52,7 +56,6 @@ examples: ...@@ -52,7 +56,6 @@ examples:
reg = <0>; reg = <0>;
clocks = <&cgu JZ4780_CLK_CPU>; clocks = <&cgu JZ4780_CLK_CPU>;
clock-names = "cpu";
}; };
cpu1: cpu@1 { cpu1: cpu@1 {
...@@ -61,7 +64,6 @@ examples: ...@@ -61,7 +64,6 @@ examples:
reg = <1>; reg = <1>;
clocks = <&cgu JZ4780_CLK_CORE1>; clocks = <&cgu JZ4780_CLK_CORE1>;
clock-names = "cpu";
}; };
}; };
... ...
...@@ -23,6 +23,8 @@ required: ...@@ -23,6 +23,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
isa@0 { isa@0 {
......
...@@ -36,6 +36,8 @@ required: ...@@ -36,6 +36,8 @@ required:
- compatible - compatible
- reset-gpios - reset-gpios
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -28,6 +28,8 @@ required: ...@@ -28,6 +28,8 @@ required:
- powerdown-gpios - powerdown-gpios
- reset-gpios - reset-gpios
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -50,6 +50,8 @@ properties: ...@@ -50,6 +50,8 @@ properties:
required: required:
- compatible - compatible
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -144,6 +144,8 @@ oneOf: ...@@ -144,6 +144,8 @@ oneOf:
- required: - required:
- memory-region - memory-region
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -37,6 +37,8 @@ properties: ...@@ -37,6 +37,8 @@ properties:
required: required:
- compatible - compatible
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
...@@ -49,6 +51,6 @@ examples: ...@@ -49,6 +51,6 @@ examples:
bluetooth { bluetooth {
compatible = "realtek,rtl8723bs-bt"; compatible = "realtek,rtl8723bs-bt";
device-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ device-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
host-wakeup-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
}; };
}; };
...@@ -18,6 +18,8 @@ properties: ...@@ -18,6 +18,8 @@ properties:
compatible: compatible:
const: microchip,wilc1000 const: microchip,wilc1000
reg: true
spi-max-frequency: true spi-max-frequency: true
interrupts: interrupts:
...@@ -34,6 +36,8 @@ required: ...@@ -34,6 +36,8 @@ required:
- compatible - compatible
- interrupts - interrupts
additionalProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -55,6 +55,8 @@ required: ...@@ -55,6 +55,8 @@ required:
- clock-names - clock-names
- max-functions - max-functions
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/r8a774c0-cpg-mssr.h> #include <dt-bindings/clock/r8a774c0-cpg-mssr.h>
......
...@@ -63,6 +63,8 @@ then: ...@@ -63,6 +63,8 @@ then:
required: required:
- power-domains - power-domains
additionalProperties: false
examples: examples:
- | - |
phy@36000 { phy@36000 {
......
...@@ -42,6 +42,8 @@ required: ...@@ -42,6 +42,8 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/qcom,gcc-ipq806x.h> #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
......
...@@ -60,6 +60,8 @@ required: ...@@ -60,6 +60,8 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/qcom,gcc-ipq806x.h> #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
......
...@@ -158,6 +158,7 @@ required: ...@@ -158,6 +158,7 @@ required:
- vdda-phy-dpdm-supply - vdda-phy-dpdm-supply
- resets - resets
additionalProperties: false
examples: examples:
- | - |
......
...@@ -36,6 +36,8 @@ required: ...@@ -36,6 +36,8 @@ required:
- reset-names - reset-names
- "#phy-cells" - "#phy-cells"
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/qcom,gcc-ipq4019.h> #include <dt-bindings/clock/qcom,gcc-ipq4019.h>
......
...@@ -188,3 +188,5 @@ required: ...@@ -188,3 +188,5 @@ required:
- gpio-ranges - gpio-ranges
- pinctrl-0 - pinctrl-0
- pinctrl-names - pinctrl-names
additionalProperties: false
...@@ -28,6 +28,8 @@ properties: ...@@ -28,6 +28,8 @@ properties:
required: required:
- compatible - compatible
additionalProperties: false
examples: examples:
- | - |
// The UniPhier pinctrl should be a subnode of a "syscon" compatible node. // The UniPhier pinctrl should be a subnode of a "syscon" compatible node.
......
...@@ -27,6 +27,8 @@ required: ...@@ -27,6 +27,8 @@ required:
- compatible - compatible
- "#power-domain-cells" - "#power-domain-cells"
additionalProperties: false
examples: examples:
- | - |
secure-monitor { secure-monitor {
......
...@@ -50,6 +50,8 @@ patternProperties: ...@@ -50,6 +50,8 @@ patternProperties:
- exit-latency-us - exit-latency-us
- min-residency-us - min-residency-us
additionalProperties: false
examples: examples:
- | - |
......
...@@ -26,6 +26,8 @@ required: ...@@ -26,6 +26,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
cpc@1bde0000 { cpc@1bde0000 {
......
...@@ -52,6 +52,8 @@ required: ...@@ -52,6 +52,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -112,6 +112,12 @@ properties: ...@@ -112,6 +112,12 @@ properties:
# threshold, and the current is below this setting (7 in above chart) # threshold, and the current is below this setting (7 in above chart)
# See also Documentation/devicetree/bindings/power/supply/battery.txt # See also Documentation/devicetree/bindings/power/supply/battery.txt
reg:
maxItems: 1
interrupts:
maxItems: 1
monitored-battery: monitored-battery:
description: description:
phandle of battery characteristics devicetree node phandle of battery characteristics devicetree node
...@@ -137,6 +143,8 @@ properties: ...@@ -137,6 +143,8 @@ properties:
required: required:
- compatible - compatible
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -31,6 +31,8 @@ required: ...@@ -31,6 +31,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -25,6 +25,8 @@ required: ...@@ -25,6 +25,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
imem@146bf000 { imem@146bf000 {
......
...@@ -68,6 +68,8 @@ required: ...@@ -68,6 +68,8 @@ required:
- interrupts - interrupts
- reg - reg
additionalProperties: false
allOf: allOf:
- if: - if:
properties: properties:
......
...@@ -32,6 +32,8 @@ required: ...@@ -32,6 +32,8 @@ required:
- interrupts - interrupts
- clocks - clocks
additionalProperties: false
examples: examples:
- | - |
aliases { aliases {
......
...@@ -56,6 +56,8 @@ required: ...@@ -56,6 +56,8 @@ required:
- reg - reg
- interrupts - interrupts
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -173,6 +173,7 @@ patternProperties: ...@@ -173,6 +173,7 @@ patternProperties:
- compatible - compatible
- interrupts - interrupts
additionalProperties: false
examples: examples:
- | - |
......
...@@ -37,6 +37,8 @@ required: ...@@ -37,6 +37,8 @@ required:
- reg - reg
- resets - resets
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h> #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>
......
...@@ -84,6 +84,8 @@ required: ...@@ -84,6 +84,8 @@ required:
- model - model
- dai-link-0 - dai-link-0
additionalProperties: false
examples: examples:
- | - |
sound { sound {
......
...@@ -42,6 +42,8 @@ required: ...@@ -42,6 +42,8 @@ required:
- clock-names - clock-names
- resets - resets
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/g12a-clkc.h> #include <dt-bindings/clock/g12a-clkc.h>
......
...@@ -46,6 +46,8 @@ required: ...@@ -46,6 +46,8 @@ required:
- reg - reg
- "#sound-dai-cells" - "#sound-dai-cells"
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -74,6 +74,8 @@ required: ...@@ -74,6 +74,8 @@ required:
- fsl,asrc-rate - fsl,asrc-rate
- fsl,asrc-format - fsl,asrc-format
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/imx8mn-clock.h> #include <dt-bindings/clock/imx8mn-clock.h>
......
...@@ -52,6 +52,8 @@ required: ...@@ -52,6 +52,8 @@ required:
- clock-names - clock-names
- interrupts - interrupts
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -64,6 +64,8 @@ required: ...@@ -64,6 +64,8 @@ required:
- assigned-clock-parents - assigned-clock-parents
- sound-name-prefix - sound-name-prefix
additionalProperties: false
examples: examples:
- | - |
#include<dt-bindings/clock/tegra186-clock.h> #include<dt-bindings/clock/tegra186-clock.h>
......
...@@ -81,6 +81,8 @@ required: ...@@ -81,6 +81,8 @@ required:
- dmas - dmas
- dma-names - dma-names
additionalProperties: false
examples: examples:
- | - |
admaif@702d0000 { admaif@702d0000 {
......
...@@ -64,6 +64,8 @@ required: ...@@ -64,6 +64,8 @@ required:
- assigned-clocks - assigned-clocks
- assigned-clock-parents - assigned-clock-parents
additionalProperties: false
examples: examples:
- | - |
#include<dt-bindings/clock/tegra210-car.h> #include<dt-bindings/clock/tegra210-car.h>
......
...@@ -82,6 +82,8 @@ required: ...@@ -82,6 +82,8 @@ required:
- assigned-clocks - assigned-clocks
- assigned-clock-parents - assigned-clock-parents
additionalProperties: false
examples: examples:
- | - |
#include<dt-bindings/clock/tegra210-car.h> #include<dt-bindings/clock/tegra210-car.h>
......
...@@ -53,6 +53,8 @@ required: ...@@ -53,6 +53,8 @@ required:
- rockchip,grf - rockchip,grf
- "#sound-dai-cells" - "#sound-dai-cells"
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -138,6 +138,8 @@ required: ...@@ -138,6 +138,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -59,6 +59,9 @@ properties: ...@@ -59,6 +59,9 @@ properties:
resets: resets:
maxItems: 1 maxItems: 1
"#thermal-sensor-cells":
const: 0
if: if:
properties: properties:
compatible: compatible:
...@@ -79,6 +82,8 @@ else: ...@@ -79,6 +82,8 @@ else:
- power-domains - power-domains
- resets - resets
additionalProperties: false
examples: examples:
# Example (non interrupt support) # Example (non interrupt support)
- | - |
......
...@@ -68,6 +68,8 @@ patternProperties: ...@@ -68,6 +68,8 @@ patternProperties:
- nvmem-cells - nvmem-cells
- nvmem-cell-names - nvmem-cell-names
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
...@@ -79,6 +81,8 @@ required: ...@@ -79,6 +81,8 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
additionalProperties: false
examples: examples:
- | - |
ap_thm0: thermal@32200000 { ap_thm0: thermal@32200000 {
......
...@@ -44,6 +44,8 @@ properties: ...@@ -44,6 +44,8 @@ properties:
required: required:
- '#cooling-cells' - '#cooling-cells'
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/thermal/thermal.h> #include <dt-bindings/thermal/thermal.h>
......
...@@ -218,6 +218,8 @@ patternProperties: ...@@ -218,6 +218,8 @@ patternProperties:
- trips - trips
additionalProperties: false additionalProperties: false
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -36,6 +36,8 @@ required: ...@@ -36,6 +36,8 @@ required:
- interrupts - interrupts
- clocks - clocks
additionalProperties: false
examples: examples:
- | - |
ttc0: ttc0@f8001000 { ttc0: ttc0@f8001000 {
......
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