dts: edtlib: remove diagnostic on required with default

A property may be optional with a default in a base yaml, then
overridden to be required in a subordinate file.  Don't prevent this
by complaining about having a default on a required property.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2019-12-03 13:23:31 -06:00 committed by Kumar Gala
commit bed6eb9ed9

View file

@ -1604,11 +1604,6 @@ def _check_prop_type_and_default(prop_name, prop_type, required, default,
if default is None: if default is None:
return return
if required:
_err("'default:' for '{}' in 'properties:' in {} is meaningless in "
"combination with 'required: true'"
.format(prop_name, binding_path))
if prop_type in {"boolean", "compound", "phandle", "phandles", if prop_type in {"boolean", "compound", "phandle", "phandles",
"phandle-array"}: "phandle-array"}:
_err("'default:' can't be combined with 'type: {}' for '{}' in " _err("'default:' can't be combined with 'type: {}' for '{}' in "