Lines Matching full:binding
54 …f"compatible 'enums' in binding '{enums_hpath}' has non-tokenizable enum for property 'string-enum…
55 …f"compatible 'enums' in binding '{enums_hpath}' has enum for property 'tokenizable-lower-enum' tha…
234 "<Node /parent in 'test.dts', no binding>"
237 "<Node /parent/child-2 in 'test.dts', no binding>"
240 …: <Node /parent/child-1 in 'test.dts', no binding>, 'child-2': <Node /parent/child-2 in 'test.dts'…
263 binding_include = edt.get_node("/binding-include")
265 assert binding_include.description == "Parent binding"
272 verify_props(edt.get_node("/binding-include/child"),
285 edtlib.Binding("test-bindings-include/allow-and-blocklist.yaml", fname2path)
291 edtlib.Binding("test-bindings-include/allow-and-blocklist-child.yaml", fname2path)
297 edtlib.Binding("test-bindings-include/allow-not-list.yaml", fname2path)
304 edtlib.Binding("test-bindings-include/block-not-list.yaml", fname2path)
311 binding = edtlib.Binding("test-bindings-include/include-invalid-keys.yaml", fname2path)
321 binding = edtlib.Binding("test-bindings-include/include-invalid-type.yaml", fname2path)
329 binding = edtlib.Binding("test-bindings-include/include-no-name.yaml", fname2path)
336 binding = edtlib.Binding("test-bindings-include/allowlist.yaml", fname2path)
337 assert set(binding.prop2specs.keys()) == {'x'} # 'x' is allowed
339 binding = edtlib.Binding("test-bindings-include/empty-allowlist.yaml", fname2path)
340 assert set(binding.prop2specs.keys()) == set() # nothing is allowed
342 binding = edtlib.Binding("test-bindings-include/blocklist.yaml", fname2path)
343 assert set(binding.prop2specs.keys()) == {'y', 'z'} # 'x' is blocked
345 binding = edtlib.Binding("test-bindings-include/empty-blocklist.yaml", fname2path)
346 assert set(binding.prop2specs.keys()) == {'x', 'y', 'z'} # nothing is blocked
348 binding = edtlib.Binding("test-bindings-include/intermixed.yaml", fname2path)
349 assert set(binding.prop2specs.keys()) == {'x', 'a'}
351 binding = edtlib.Binding("test-bindings-include/include-no-list.yaml", fname2path)
352 assert set(binding.prop2specs.keys()) == {'x', 'y', 'z'}
354 binding = edtlib.Binding("test-bindings-include/filter-child-bindings.yaml", fname2path)
355 child = binding.child_binding
357 assert set(binding.prop2specs.keys()) == {'x'}
361 binding = edtlib.Binding("test-bindings-include/allow-and-blocklist-multilevel.yaml",
363 assert set(binding.prop2specs.keys()) == {'x'} # 'x' is allowed
364 child = binding.child_binding
369 '''Test the basics of filtering properties inherited via an intermediary binding file.
372 - X is a base binding file, specifying common properties
373 - I is an intermediary binding file, which includes X without modification
382 # Base binding file, specifies a few properties up to the grandchild-binding level.
388 binding = edtlib.Binding(
396 assert {"prop-1"} == set(binding.prop2specs.keys())
399 binding = edtlib.Binding(
407 assert {"prop-1"} == set(binding.prop2specs.keys())
410 '''Test the basics of filtering properties inherited via an intermediary binding file
411 (child-binding level).
420 binding = edtlib.Binding(
426 assert binding.child_binding
427 child_binding = binding.child_binding
432 binding = edtlib.Binding(
439 assert binding.child_binding
440 child_binding = binding.child_binding
444 '''Test the basics of filtering properties inherited via an intermediary binding file
445 (grandchild-binding level).
454 binding = edtlib.Binding(
460 assert binding.child_binding
461 child_binding = binding.child_binding
468 binding = edtlib.Binding(
474 assert binding.child_binding
475 child_binding = binding.child_binding
535 '''Test 'child-binding:' in bindings'''
538 child1 = edt.get_node("/child-binding/child-1")
539 child2 = edt.get_node("/child-binding/child-2")
540 grandchild = edt.get_node("/child-binding/child-1/grandchild")
542 assert str(child1.binding_path) == hpath("test-bindings/child-binding.yaml")
546 assert str(child2.binding_path) == hpath("test-bindings/child-binding.yaml")
550 assert str(grandchild.binding_path) == hpath("test-bindings/child-binding.yaml")
555 binding_file = Path("test-bindings/child-binding.yaml").resolve()
556 top = edtlib.Binding(binding_file, {})
560 assert top.compatible == 'top-binding'
564 binding_file = Path("test-bindings/child-binding-with-compat.yaml").resolve()
565 top = edtlib.Binding(binding_file, {})
569 assert top.compatible == 'top-binding-with-compat'
573 '''Test Node.props (derived from DT and 'properties:' in the binding)'''
649 '''test properties with enum: in the binding'''
760 dep_node = edt.get_node("/child-binding-dep")
762 assert dep_node in edt.get_node("/child-binding").depends_on
763 assert dep_node in edt.get_node("/child-binding/child-1/grandchild").depends_on
764 assert dep_node in edt.get_node("/child-binding/child-2").depends_on
765 assert edt.get_node("/child-binding") in dep_node.required_by
766 assert edt.get_node("/child-binding/child-1/grandchild") in dep_node.required_by
767 assert edt.get_node("/child-binding/child-2") in dep_node.required_by
828 # no binding.
845 '''Test Node.wrong_props (derived from DT and 'properties:' in the binding)'''
849 edtlib.Binding("test-wrong-bindings/wrong-specifier-space-type.yaml", None)
854 edtlib.Binding("test-wrong-bindings/wrong-phandle-array-name.yaml", None)