Commit 6fdc6e23 authored by Rob Herring's avatar Rob Herring

dt-bindings: Add missing 'unevaluatedProperties'

This doesn't yet do anything in the tools, but make it explicit so we can
check either 'unevaluatedProperties' or 'additionalProperties' is present
in schemas.

'unevaluatedProperties' is appropriate when including another schema (via
'$ref') and all possible properties and/or child nodes are not
explicitly listed in the schema with the '$ref'.

This is in preparation to add a meta-schema to check for missing
'unevaluatedProperties' or 'additionalProperties'. This has been a
constant source of review issues.
Acked-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarWolfram Sang <wsa@kernel.org>
Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-By: default avatarVinod Koul <vkoul@kernel.org>
Acked-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20201005183830.486085-2-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 5f3ae016
...@@ -220,6 +220,8 @@ then: ...@@ -220,6 +220,8 @@ then:
required: required:
- cpu - cpu
unevaluatedProperties: false
examples: examples:
# minimum CTI definition. DEVID register used to set number of triggers. # minimum CTI definition. DEVID register used to set number of triggers.
- | - |
......
...@@ -50,6 +50,8 @@ required: ...@@ -50,6 +50,8 @@ required:
- '#size-cells' - '#size-cells'
- dma-ranges - dma-ranges
unevaluatedProperties: false
examples: examples:
- | - |
mlahb: ahb@38000000 { mlahb: ahb@38000000 {
......
...@@ -64,6 +64,8 @@ allOf: ...@@ -64,6 +64,8 @@ allOf:
required: required:
- sata - sata
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -44,6 +44,8 @@ properties: ...@@ -44,6 +44,8 @@ properties:
required: required:
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -72,6 +72,8 @@ required: ...@@ -72,6 +72,8 @@ required:
- spi-max-frequency - spi-max-frequency
- port - port
unevaluatedProperties: false
examples: examples:
- |+ - |+
spi { spi {
......
...@@ -62,6 +62,8 @@ required: ...@@ -62,6 +62,8 @@ required:
- interrupts - interrupts
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/jz4780-cgu.h> #include <dt-bindings/clock/jz4780-cgu.h>
......
...@@ -81,6 +81,8 @@ required: ...@@ -81,6 +81,8 @@ required:
- clocks - clocks
- interrupts - interrupts
unevaluatedProperties: 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:
- reg - reg
- dma-masters - dma-masters
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -84,6 +84,8 @@ required: ...@@ -84,6 +84,8 @@ required:
- clocks - clocks
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -141,6 +141,8 @@ then: ...@@ -141,6 +141,8 @@ then:
required: required:
- ti,udma-atype - ti,udma-atype
unevaluatedProperties: false
examples: examples:
- |+ - |+
cbass_main { cbass_main {
......
...@@ -36,6 +36,8 @@ required: ...@@ -36,6 +36,8 @@ required:
- interrupts - interrupts
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
i2c@c8100500 { i2c@c8100500 {
......
...@@ -44,6 +44,8 @@ required: ...@@ -44,6 +44,8 @@ required:
- clocks - clocks
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -70,4 +70,6 @@ required: ...@@ -70,4 +70,6 @@ required:
- sda-gpios - sda-gpios
- scl-gpios - scl-gpios
unevaluatedProperties: false
... ...
...@@ -117,6 +117,8 @@ then: ...@@ -117,6 +117,8 @@ then:
required: required:
- rockchip,grf - rockchip,grf
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/rk3188-cru-common.h> #include <dt-bindings/clock/rk3188-cru-common.h>
......
...@@ -37,6 +37,8 @@ required: ...@@ -37,6 +37,8 @@ required:
- interrupts - interrupts
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
i2c0: i2c@58780000 { i2c0: i2c@58780000 {
......
...@@ -37,6 +37,8 @@ required: ...@@ -37,6 +37,8 @@ required:
- interrupts - interrupts
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
i2c0: i2c@58400000 { i2c0: i2c@58400000 {
......
...@@ -94,6 +94,8 @@ required: ...@@ -94,6 +94,8 @@ required:
- resets - resets
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/mfd/stm32f7-rcc.h> #include <dt-bindings/mfd/stm32f7-rcc.h>
......
...@@ -36,6 +36,8 @@ required: ...@@ -36,6 +36,8 @@ required:
- interrupts - interrupts
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
axi_iic_0: i2c@40800000 { axi_iic_0: i2c@40800000 {
......
...@@ -30,6 +30,8 @@ required: ...@@ -30,6 +30,8 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -40,6 +40,8 @@ required: ...@@ -40,6 +40,8 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -30,6 +30,8 @@ required: ...@@ -30,6 +30,8 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -108,6 +108,8 @@ patternProperties: ...@@ -108,6 +108,8 @@ patternProperties:
- reg - reg
- diff-channels - diff-channels
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -92,6 +92,8 @@ required: ...@@ -92,6 +92,8 @@ required:
- spi-cpol - spi-cpol
- spi-cpha - spi-cpha
unevaluatedProperties: false
examples: examples:
- | - |
spi0 { spi0 {
......
...@@ -63,6 +63,8 @@ patternProperties: ...@@ -63,6 +63,8 @@ patternProperties:
required: required:
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -102,6 +102,8 @@ required: ...@@ -102,6 +102,8 @@ required:
- interrupts - interrupts
- adi,conversion-start-gpios - adi,conversion-start-gpios
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -47,6 +47,8 @@ required: ...@@ -47,6 +47,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -45,6 +45,8 @@ required: ...@@ -45,6 +45,8 @@ required:
- vdd-supply - vdd-supply
- vref-supply - vref-supply
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -130,6 +130,8 @@ required: ...@@ -130,6 +130,8 @@ required:
- channel@4 - channel@4
- channel@5 - channel@5
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -46,6 +46,8 @@ required: ...@@ -46,6 +46,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
spi0 { spi0 {
......
...@@ -33,6 +33,8 @@ required: ...@@ -33,6 +33,8 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -116,6 +116,8 @@ allOf: ...@@ -116,6 +116,8 @@ allOf:
dependencies: dependencies:
adi,sync-mode: [ clocks ] adi,sync-mode: [ clocks ]
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -50,6 +50,8 @@ required: ...@@ -50,6 +50,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
// Example for I2C // Example for I2C
......
...@@ -40,6 +40,8 @@ required: ...@@ -40,6 +40,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -48,6 +48,8 @@ required: ...@@ -48,6 +48,8 @@ required:
- vdd-supply - vdd-supply
- linux,keycodes - linux,keycodes
unevaluatedProperties: false
examples: examples:
- | - |
// Example with interrupts // Example with interrupts
......
...@@ -41,6 +41,8 @@ required: ...@@ -41,6 +41,8 @@ required:
- interrupt-controller - interrupt-controller
- '#interrupt-cells' - '#interrupt-cells'
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -67,6 +67,8 @@ required: ...@@ -67,6 +67,8 @@ required:
- 'loongson,parent_int_map' - 'loongson,parent_int_map'
unevaluatedProperties: false
examples: examples:
- | - |
iointc: interrupt-controller@3ff01400 { iointc: interrupt-controller@3ff01400 {
......
...@@ -61,6 +61,8 @@ patternProperties: ...@@ -61,6 +61,8 @@ patternProperties:
- cfi-flash - cfi-flash
- jedec,spi-nor - jedec,spi-nor
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/renesas-cpg-mssr.h> #include <dt-bindings/clock/renesas-cpg-mssr.h>
......
...@@ -50,6 +50,8 @@ required: ...@@ -50,6 +50,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -117,6 +117,8 @@ required: ...@@ -117,6 +117,8 @@ required:
- interrupts - interrupts
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
emmc: mmc@5a000000 { emmc: mmc@5a000000 {
......
...@@ -56,6 +56,8 @@ required: ...@@ -56,6 +56,8 @@ required:
- dmas - dmas
- dma-names - dma-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/jz4780-cgu.h> #include <dt-bindings/clock/jz4780-cgu.h>
......
...@@ -43,6 +43,8 @@ required: ...@@ -43,6 +43,8 @@ required:
- dmas - dmas
- dma-names - dma-names
unevaluatedProperties: false
examples: examples:
- | - |
mmc0: mmc@e0330000 { mmc0: mmc@e0330000 {
......
...@@ -102,6 +102,8 @@ required: ...@@ -102,6 +102,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/rk3288-cru.h> #include <dt-bindings/clock/rk3288-cru.h>
......
...@@ -73,6 +73,8 @@ required: ...@@ -73,6 +73,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/berlin2.h> #include <dt-bindings/clock/berlin2.h>
......
...@@ -77,6 +77,8 @@ required: ...@@ -77,6 +77,8 @@ required:
- reset-names - reset-names
- resets - resets
unevaluatedProperties: false
examples: examples:
- | - |
sd: mmc@5a400000 { sd: mmc@5a400000 {
......
...@@ -42,6 +42,8 @@ required: ...@@ -42,6 +42,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
mmc@12200000 { mmc@12200000 {
......
...@@ -128,6 +128,8 @@ required: ...@@ -128,6 +128,8 @@ required:
- clock-names - clock-names
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
nand-controller@ff900000 { nand-controller@ff900000 {
......
...@@ -51,6 +51,8 @@ required: ...@@ -51,6 +51,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/jz4780-cgu.h> #include <dt-bindings/clock/jz4780-cgu.h>
......
...@@ -94,6 +94,8 @@ required: ...@@ -94,6 +94,8 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -36,6 +36,8 @@ properties: ...@@ -36,6 +36,8 @@ properties:
enum: [ 4, 8, 12, 16, 20, 24 ] enum: [ 4, 8, 12, 16, 20, 24 ]
default: 8 default: 8
unevaluatedProperties: false
examples: examples:
- | - |
ethernet { ethernet {
......
...@@ -120,6 +120,8 @@ required: ...@@ -120,6 +120,8 @@ required:
- clock-names - clock-names
- phy-mode - phy-mode
unevaluatedProperties: false
examples: examples:
- | - |
ethmac: ethernet@c9410000 { ethmac: ethernet@c9410000 {
......
...@@ -30,6 +30,8 @@ required: ...@@ -30,6 +30,8 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
unevaluatedProperties: false
examples: examples:
- | - |
mdio0: mdio@1e650000 { mdio0: mdio@1e650000 {
......
...@@ -35,6 +35,8 @@ required: ...@@ -35,6 +35,8 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
unevaluatedProperties: false
examples: examples:
- | - |
/* USB host controller */ /* USB host controller */
......
...@@ -61,6 +61,8 @@ required: ...@@ -61,6 +61,8 @@ required:
- mediatek,pericfg - mediatek,pericfg
- phy-handle - phy-handle
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -34,6 +34,8 @@ patternProperties: ...@@ -34,6 +34,8 @@ patternProperties:
required: required:
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
mdio { mdio {
......
...@@ -72,6 +72,8 @@ required: ...@@ -72,6 +72,8 @@ required:
- resets - resets
- reset-names - reset-names
unevaluatedProperties: false
examples: examples:
# Lager board # Lager board
- | - |
......
...@@ -59,6 +59,8 @@ properties: ...@@ -59,6 +59,8 @@ properties:
regulator to VDDIO. regulator to VDDIO.
$ref: /schemas/regulator/regulator.yaml $ref: /schemas/regulator/regulator.yaml
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/net/qca-ar803x.h> #include <dt-bindings/net/qca-ar803x.h>
......
...@@ -31,6 +31,8 @@ required: ...@@ -31,6 +31,8 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
unevaluatedProperties: false
examples: examples:
- | - |
mdio@90000 { mdio@90000 {
......
...@@ -33,6 +33,8 @@ required: ...@@ -33,6 +33,8 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/qcom,gcc-ipq806x.h> #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
......
...@@ -88,6 +88,8 @@ required: ...@@ -88,6 +88,8 @@ required:
- clock-names - clock-names
- st,syscon - st,syscon
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -58,6 +58,8 @@ required: ...@@ -58,6 +58,8 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
unevaluatedProperties: false
examples: examples:
- | - |
davinci_mdio: mdio@4a101000 { davinci_mdio: mdio@4a101000 {
......
...@@ -109,6 +109,8 @@ properties: ...@@ -109,6 +109,8 @@ properties:
required: required:
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/net/ti-dp83867.h> #include <dt-bindings/net/ti-dp83867.h>
......
...@@ -79,6 +79,8 @@ properties: ...@@ -79,6 +79,8 @@ properties:
required: required:
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/net/ti-dp83869.h> #include <dt-bindings/net/ti-dp83869.h>
......
...@@ -76,6 +76,8 @@ patternProperties: ...@@ -76,6 +76,8 @@ patternProperties:
additionalProperties: false additionalProperties: false
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/imx6sx-clock.h> #include <dt-bindings/clock/imx6sx-clock.h>
......
...@@ -49,6 +49,8 @@ required: ...@@ -49,6 +49,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/qcom,gcc-sc7180.h> #include <dt-bindings/clock/qcom,gcc-sc7180.h>
......
...@@ -66,6 +66,8 @@ patternProperties: ...@@ -66,6 +66,8 @@ patternProperties:
additionalProperties: false additionalProperties: false
unevaluatedProperties: false
examples: examples:
- | - |
sdam_1: nvram@b000 { sdam_1: nvram@b000 {
......
...@@ -51,6 +51,8 @@ required: ...@@ -51,6 +51,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/rk3288-cru.h> #include <dt-bindings/clock/rk3288-cru.h>
......
...@@ -42,6 +42,8 @@ required: ...@@ -42,6 +42,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
efuse@1fff7800 { efuse@1fff7800 {
......
...@@ -29,6 +29,8 @@ required: ...@@ -29,6 +29,8 @@ required:
- reg - reg
- reg-names - reg-names
unevaluatedProperties: false
examples: examples:
- | - |
bus { bus {
......
...@@ -31,6 +31,8 @@ required: ...@@ -31,6 +31,8 @@ required:
- reg - reg
- reg-names - reg-names
unevaluatedProperties: false
examples: examples:
- | - |
bus { bus {
......
...@@ -137,6 +137,8 @@ allOf: ...@@ -137,6 +137,8 @@ allOf:
reg: reg:
maxItems: 1 maxItems: 1
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -39,6 +39,8 @@ required: ...@@ -39,6 +39,8 @@ required:
- reg - reg
- ranges - ranges
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -63,6 +63,8 @@ required: ...@@ -63,6 +63,8 @@ required:
- phys - phys
- phy-names - phy-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/soc/ti,sci_pm_domain.h> #include <dt-bindings/soc/ti,sci_pm_domain.h>
......
...@@ -72,6 +72,8 @@ required: ...@@ -72,6 +72,8 @@ required:
- phys - phys
- phy-names - phy-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/soc/ti,sci_pm_domain.h> #include <dt-bindings/soc/ti,sci_pm_domain.h>
......
...@@ -48,6 +48,8 @@ required: ...@@ -48,6 +48,8 @@ required:
- interrupt-map - interrupt-map
- interrupt-map-mask - interrupt-map-mask
unevaluatedProperties: false
examples: examples:
- | - |
pci@10001000 { pci@10001000 {
......
...@@ -49,6 +49,8 @@ required: ...@@ -49,6 +49,8 @@ required:
- "#power-domain-cells" - "#power-domain-cells"
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
lcd0_pd: power-domain@10023c80 { lcd0_pd: power-domain@10023c80 {
......
...@@ -73,6 +73,8 @@ required: ...@@ -73,6 +73,8 @@ required:
- compatible - compatible
- regulator-name - regulator-name
unevaluatedProperties: false
examples: examples:
- | - |
reg_1v8: regulator-1v8 { reg_1v8: regulator-1v8 {
......
...@@ -28,6 +28,8 @@ required: ...@@ -28,6 +28,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
spi0 { spi0 {
......
...@@ -91,6 +91,8 @@ required: ...@@ -91,6 +91,8 @@ required:
- gpios - gpios
- states - states
unevaluatedProperties: false
examples: examples:
- | - |
gpio-regulator { gpio-regulator {
......
...@@ -34,6 +34,8 @@ required: ...@@ -34,6 +34,8 @@ required:
- st,syscfg - st,syscfg
- vdda-supply - vdda-supply
unevaluatedProperties: false
examples: examples:
- | - |
regulator-booster { regulator-booster {
......
...@@ -36,6 +36,8 @@ required: ...@@ -36,6 +36,8 @@ required:
- clocks - clocks
- vdda-supply - vdda-supply
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/stm32mp1-clks.h> #include <dt-bindings/clock/stm32mp1-clks.h>
......
...@@ -28,6 +28,8 @@ required: ...@@ -28,6 +28,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
regulator@1948000 { regulator@1948000 {
......
...@@ -68,6 +68,8 @@ required: ...@@ -68,6 +68,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/jz4740-cgu.h> #include <dt-bindings/clock/jz4740-cgu.h>
......
...@@ -74,6 +74,8 @@ allOf: ...@@ -74,6 +74,8 @@ allOf:
items: items:
- const: rtc - const: rtc
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/exynos5420.h> #include <dt-bindings/clock/exynos5420.h>
......
...@@ -9,6 +9,9 @@ title: Ingenic SoCs UART controller devicetree bindings ...@@ -9,6 +9,9 @@ title: Ingenic SoCs UART controller devicetree bindings
maintainers: maintainers:
- Paul Cercueil <paul@crapouillou.net> - Paul Cercueil <paul@crapouillou.net>
allOf:
- $ref: /schemas/serial.yaml#
properties: properties:
$nodename: $nodename:
pattern: "^serial@[0-9a-f]+$" pattern: "^serial@[0-9a-f]+$"
...@@ -64,6 +67,8 @@ required: ...@@ -64,6 +67,8 @@ required:
- dmas - dmas
- dma-names - dma-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/jz4780-cgu.h> #include <dt-bindings/clock/jz4780-cgu.h>
......
...@@ -100,6 +100,8 @@ required: ...@@ -100,6 +100,8 @@ required:
- clock-names - clock-names
- power-domains - power-domains
unevaluatedProperties: false
if: if:
properties: properties:
compatible: compatible:
......
...@@ -54,6 +54,8 @@ required: ...@@ -54,6 +54,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
aliases { aliases {
......
...@@ -149,6 +149,8 @@ then: ...@@ -149,6 +149,8 @@ then:
required: required:
- resets - resets
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/r8a7791-cpg-mssr.h> #include <dt-bindings/clock/r8a7791-cpg-mssr.h>
......
...@@ -75,6 +75,8 @@ required: ...@@ -75,6 +75,8 @@ required:
- clock-names - clock-names
- power-domains - power-domains
unevaluatedProperties: false
if: if:
properties: properties:
compatible: compatible:
......
...@@ -75,6 +75,8 @@ required: ...@@ -75,6 +75,8 @@ required:
- clock-names - clock-names
- power-domains - power-domains
unevaluatedProperties: false
if: if:
properties: properties:
compatible: compatible:
......
...@@ -101,6 +101,8 @@ required: ...@@ -101,6 +101,8 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
serial@80230000 { serial@80230000 {
......
...@@ -77,6 +77,8 @@ required: ...@@ -77,6 +77,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
spi@c1108d80 { spi@c1108d80 {
......
...@@ -35,6 +35,8 @@ required: ...@@ -35,6 +35,8 @@ required:
- reg - reg
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
spi@c1108c80 { spi@c1108c80 {
......
...@@ -24,6 +24,8 @@ required: ...@@ -24,6 +24,8 @@ required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
spi: spi@1f000000 { spi: spi@1f000000 {
......
...@@ -29,6 +29,8 @@ required: ...@@ -29,6 +29,8 @@ required:
- '#address-cells' - '#address-cells'
- '#size-cells' - '#size-cells'
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/ath79-clk.h> #include <dt-bindings/clock/ath79-clk.h>
......
...@@ -56,6 +56,8 @@ required: ...@@ -56,6 +56,8 @@ required:
- clock-names - clock-names
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/qcom,gcc-sdm845.h> #include <dt-bindings/clock/qcom,gcc-sdm845.h>
......
...@@ -40,6 +40,8 @@ required: ...@@ -40,6 +40,8 @@ required:
- '#address-cells' - '#address-cells'
- '#size-cells' - '#size-cells'
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/r8a7778-clock.h> #include <dt-bindings/clock/r8a7778-clock.h>
......
...@@ -123,6 +123,8 @@ allOf: ...@@ -123,6 +123,8 @@ allOf:
required: required:
- resets - resets
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/r8a7791-cpg-mssr.h> #include <dt-bindings/clock/r8a7791-cpg-mssr.h>
......
...@@ -140,6 +140,8 @@ required: ...@@ -140,6 +140,8 @@ required:
- '#address-cells' - '#address-cells'
- '#size-cells' - '#size-cells'
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/r8a7791-clock.h> #include <dt-bindings/clock/r8a7791-clock.h>
......
...@@ -44,6 +44,8 @@ required: ...@@ -44,6 +44,8 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
unevaluatedProperties: false
examples: examples:
- | - |
spi0: spi@54006000 { spi0: spi@54006000 {
......
...@@ -53,6 +53,8 @@ required: ...@@ -53,6 +53,8 @@ required:
- num-chipselects - num-chipselects
- sck-gpios - sck-gpios
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -48,6 +48,8 @@ required: ...@@ -48,6 +48,8 @@ required:
- spi-max-frequency - spi-max-frequency
- mux-controls - mux-controls
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -128,6 +128,8 @@ required: ...@@ -128,6 +128,8 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
spi@e0100000 { spi@e0100000 {
......
...@@ -85,6 +85,8 @@ required: ...@@ -85,6 +85,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/rk3188-cru-common.h> #include <dt-bindings/clock/rk3188-cru-common.h>
......
...@@ -66,6 +66,8 @@ required: ...@@ -66,6 +66,8 @@ required:
- interrupts - interrupts
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
spi: spi@10040000 { spi: spi@10040000 {
......
...@@ -53,6 +53,8 @@ required: ...@@ -53,6 +53,8 @@ required:
- clocks - clocks
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -76,6 +76,8 @@ required: ...@@ -76,6 +76,8 @@ required:
- clocks - clocks
- interrupts - interrupts
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -31,6 +31,8 @@ required: ...@@ -31,6 +31,8 @@ required:
- reg - reg
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
watchdog@98d0 { watchdog@98d0 {
......
...@@ -25,6 +25,8 @@ properties: ...@@ -25,6 +25,8 @@ properties:
required: required:
- compatible - compatible
unevaluatedProperties: false
examples: examples:
- | - |
watchdog { watchdog {
......
...@@ -38,6 +38,8 @@ required: ...@@ -38,6 +38,8 @@ required:
- reg - reg
- clocks - clocks
unevaluatedProperties: false
examples: examples:
- | - |
watchdog@208a038 { watchdog@208a038 {
......
...@@ -62,6 +62,8 @@ allOf: ...@@ -62,6 +62,8 @@ allOf:
required: required:
- samsung,syscon-phandle - samsung,syscon-phandle
unevaluatedProperties: false
examples: examples:
- | - |
watchdog@101d0000 { watchdog@101d0000 {
......
...@@ -43,6 +43,8 @@ required: ...@@ -43,6 +43,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/stm32mp1-clks.h> #include <dt-bindings/clock/stm32mp1-clks.h>
......
...@@ -46,6 +46,8 @@ required: ...@@ -46,6 +46,8 @@ required:
- clocks - clocks
- power-domains - power-domains
unevaluatedProperties: false
examples: examples:
- | - |
/* /*
......
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