zephyr/dts/bindings
Ulf Magnusson a0fceff1a2 scripts: dts: Simplify and improve 'compatible' matching
Instead of

    properties:
        compatible:
            constraint: "foo"

, just have

    compatible: "foo"

at the top level of the binding.

For backwards compatibility, the old 'properties: compatible: ...' form
is still accepted for now, and is treated the same as a single-element
'compatible:'.

The old syntax was inspired by dt-schema (though it isn't
dt-schema-compatible), which is in turn a thin wrapper around
json-schema (the idea is to transform .dts files into YAML and then
verify them).

Maybe the idea was to gradually switch the syntax over to dt-schema and
then be able to use unmodified dt-schema bindings, but dt-schema is
really a different kind of tool (a completely standalone linter), and
works very differently from our stuff (see schemas/dt-core.yaml in the
dt-schema repo to get an idea of just how differently).

Better to keep it simple.

This commit also piggybacks some clarifications to the binding template
re. '#cells:'.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-07 10:25:02 -05:00
..
arc scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
arm scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
audio scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
base dts: bindings: Have 'required: true/false' instead of 'category: ...' 2019-09-07 10:25:02 -05:00
bluetooth scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
can scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
clock scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
cpu scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
crypto scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
display scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
espi scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
ethernet scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
flash_controller scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
gpio scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
i2c scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
i2s scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
ieee802154 scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
iio/adc scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
interrupt-controller scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
ipm scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
led scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
led_strip scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
memory-controllers scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
mhu scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
misc scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
mmc scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
mmu_mpu scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
modem scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
mtd scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
phy scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
pinctrl scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
power scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
pwm scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
riscv scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
rng scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
rtc scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
sensor scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
serial scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
spi scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
sram scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
timer scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
usb scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
watchdog scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
wifi scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
vendor-prefixes.txt dts: Restructure xtensa dts directory 2019-06-27 07:21:11 -04:00