zephyr/scripts/dts/test-bindings
Ulf Magnusson 14138c3b9b dts: edtlib: Improve how we get the compatible string from bindings
Use Galak's idea from
https://github.com/zephyrproject-rtos/zephyr/pull/18313 to read the
'properties: compatible: constraint: "foo"' string from bindings in a
more robust way.

First, check if any of the compatible strings are in the file (needed as
an optimization). If any of them are, do a more careful check for the
'properties: compatible: constraint: ...' value matching a compatible,
to filter out false positives from comments and the like.

This commit a no-op in itself besides making things a bit more robust,
but it'll make later work easier (supporting multiple compatibles for a
binding, in a dt-schema-like way).

Co-authored-by: Kumar Gala <kumar.gala@linaro.org>
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-07 10:25:02 -05:00
..
child.yaml dts: edtlib: Sanity-check the final merged binding only 2019-09-07 10:25:02 -05:00
clock-1-cell.yaml
clock-2-cell.yaml
false-positive.yaml dts: edtlib: Improve how we get the compatible string from bindings 2019-09-07 10:25:02 -05:00
fixed-clock.yaml
gpio-1-cell.yaml
gpio-2-cell.yaml
grandchild.yaml dts: edtlib: Sanity-check the final merged binding only 2019-09-07 10:25:02 -05:00
interrupt-1-cell.yaml
interrupt-2-cell.yaml
interrupt-3-cell.yaml
io-channel.yaml
multidir.yaml
parent.yaml
props.yaml dts: dtlib/edtlib: Add phandle and phandle+nums array types 2019-09-07 10:25:02 -05:00
pwm-1-cell.yaml
pwm-0-cell.yaml
sub-node-parent.yaml