zephyr/scripts/dts/test-bindings
Martí Bolívar b6dc0a24f7 edtlib: improve enum support
Add enum_tokenizable and enum_upper_tokenizable to PropertySpec. These
allow a PropertySpec to declare that it both has an enumeration of
values and all of them are strings which are "tokenizable". Don't
bother extending Property with these; the user can access the
information through Property.spec now, so the extra delegation is
unnecessary.

See the docstrings for details on what "tokenizable" means. The basic
idea is that we should be able to use the DT binding's enum values as
C 'enum' enumerators in a "reasonable way".

Add val_as_token to Property. This produces a canonical token for the
property value.

Add tests for this feature in particular and property enumerations in
general.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-12-13 19:25:24 -05: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-1.yaml
phandle-array-controller-2.yaml
phandle-array-controller-0.yaml
props.yaml