zephyr/scripts/dts/python-devicetree
Kumar Gala f1660f4d51 edtlib: allow const arrays
Allow for having array types (array, uint8-array, string-array) be const.
This would allow for something like:

properties:
    reg-names:
        const: ["foo", "bar"]

To be supported.

Renamed function _check_prop_type_and_default to _check_prop_by_type
as part of this change and Moved the check for 'const' types into
_check_prop_by_type as its similar to the prop_type check and it was
easier to implement in _check_prop_by_type as we already extract
prop_type from the option in that function.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-25 18:11:27 -07:00
..
src/devicetree edtlib: allow const arrays 2022-08-25 18:11:27 -07:00
tests edtlib: allow const arrays 2022-08-25 18:11:27 -07:00
.gitignore
requirements.txt
setup.py
tox.ini python-devicetree: CI hotfix 2022-06-06 09:09:27 -07:00