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 scripts: edtlib: Rename 'child-bus:'/'parent-bus:' to 'bus:'/'on-bus:' 2019-12-19 11:02:28 +01:00
child-binding-with-compat.yaml scripts: testedtlib: add more child-binding tests 2020-11-03 14:58:51 -06:00
child-binding.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
child.yaml
defaults.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
deprecated.yaml scripts: edtlib: Add support for 'deprecated' 2020-10-29 11:06:32 -05:00
device-on-bar-bus.yaml scripts: edtlib: Rename 'child-bus:'/'parent-bus:' to 'bus:'/'on-bus:' 2019-12-19 11:02:28 +01:00
device-on-foo-bus.yaml scripts: edtlib: Rename 'child-bus:'/'parent-bus:' to 'bus:'/'on-bus:' 2019-12-19 11:02:28 +01:00
enums.yaml edtlib: improve enum support 2020-12-13 19:25:24 -05:00
false-positive.yaml scripts: dts: Generalize handling of phandle-array types 2019-09-26 15:30:23 -07:00
foo-bus.yaml scripts: edtlib: Rename 'child-bus:'/'parent-bus:' to 'bus:'/'on-bus:' 2019-12-19 11:02:28 +01:00
foo-optional.yaml scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
foo-required.yaml scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
gpio-dst.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
gpio-src.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
grandchild-1.yaml
grandchild-2.yaml
grandchild-3.yaml scripts: dts: Change 'child/parent: bus: ...' to 'child/parent-bus:' 2019-09-17 14:37:43 -05:00
interrupt-1-cell.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
interrupt-2-cell.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
interrupt-3-cell.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
multidir.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
order-1.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
order-2.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
parent.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
phandle-array-controller-1.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
phandle-array-controller-2.yaml scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
phandle-array-controller-0.yaml scripts: dts: fix handling for phandle-arrays with *-cells=0 2020-10-06 12:05:37 -05:00
props.yaml dts: edtlib: Add 'type: path' for path references 2020-01-08 08:02:00 -06:00