diff --git a/scripts/dts/edtlib.py b/scripts/dts/edtlib.py index 4c35511b223..b30259c5b72 100644 --- a/scripts/dts/edtlib.py +++ b/scripts/dts/edtlib.py @@ -1253,6 +1253,10 @@ def _check_binding(binding, binding_path): _err("missing, malformed, or empty 'description' for '{}' in " "'properties' in {}".format(prop_name, binding_path)) + if "enum" in options and not isinstance(options["enum"], list): + _err("enum in {} for property '{}' is not a list" + .format(binding_path, prop_name)) + def _translate(addr, node): # Recursively translates 'addr' on 'node' to the address space(s) of its