zephyr/scripts/dts/test-bindings
Martí Bolívar 38ede5aded dts: handle unspecified phandle-array elements
The DTS language permits zeroing out phandles in a phandle array to
say "there's nothing at this index", and dtlib manages that correctly,
but edtlib and gen_defines.py aren't equipped to do so.

Fix this by allowing None elements in the lists of ControllerAndData
values returned by edtlib for such properties.

Handle that in gen_defines.py by setting the generated
DT_N_<node>_P_<prop>_IDX_<i>_EXISTS macro to 0 in such cases.

The DT_N_<node>_P_<prop>_LEN macro still accounts for the entire
length of the phandle-array; it's just that some indexes may be
missing data.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-12-22 07:34:29 -06:00
..
bar-bus.yaml
child-binding-with-compat.yaml scripts: testedtlib: add more child-binding tests 2020-11-03 14:58:51 -06:00
child-binding.yaml
child.yaml
defaults.yaml
deprecated.yaml scripts: edtlib: Add support for 'deprecated' 2020-10-29 11:06:32 -05:00
device-on-bar-bus.yaml
device-on-foo-bus.yaml
enums.yaml edtlib: improve enum support 2020-12-13 19:25:24 -05:00
false-positive.yaml
foo-bus.yaml
foo-optional.yaml
foo-required.yaml
gpio-dst.yaml
gpio-src.yaml
grandchild-1.yaml
grandchild-2.yaml
grandchild-3.yaml
interrupt-1-cell.yaml
interrupt-2-cell.yaml
interrupt-3-cell.yaml
multidir.yaml
order-1.yaml
order-2.yaml
parent.yaml
phandle-array-controller-0.yaml
phandle-array-controller-1.yaml
phandle-array-controller-2.yaml
props.yaml dts: handle unspecified phandle-array elements 2020-12-22 07:34:29 -06:00