Lines Matching full:bindings
23 # test.dts is the main test file. test-bindings/ and test-bindings-2/ has
24 # bindings. The tests mostly use string comparisons via the various __repr__()
46 with from_here(): edtlib.EDT("test.dts", ["test-bindings"])
48 enums_hpath = hpath('test-bindings/enums.yaml')
50 …f"'oldprop' is marked as deprecated in 'properties:' in {hpath('test-bindings/deprecated.yaml')} f…
63 edt = edtlib.EDT("test.dts", ["test-bindings"])
108 edt = edtlib.EDT("test.dts", ["test-bindings"])
181 edt = edtlib.EDT("test.dts", ["test-bindings"])
215 edt = edtlib.EDT("test.dts", ["test-bindings"])
229 edt = edtlib.EDT("test.dts", ["test-bindings"])
247 edt = edtlib.EDT("test.dts", ["test-bindings"])
259 '''Test 'include:' and the legacy 'inherits: !include ...' in bindings'''
261 edt = edtlib.EDT("test.dts", ["test-bindings"])
280 fname2path = {'include.yaml': 'test-bindings-include/include.yaml',
281 'include-2.yaml': 'test-bindings-include/include-2.yaml'}
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)
314 "'include:' in test-bindings-include/include-invalid-keys.yaml should not have these "
321 binding = edtlib.Binding("test-bindings-include/include-invalid-type.yaml", fname2path)
324 "'include:' in test-bindings-include/include-invalid-type.yaml "
329 binding = edtlib.Binding("test-bindings-include/include-no-name.yaml", fname2path)
333 "in test-bindings-include/include-no-name.yaml should have a 'name' key")
336 binding = edtlib.Binding("test-bindings-include/allowlist.yaml", fname2path)
339 binding = edtlib.Binding("test-bindings-include/empty-allowlist.yaml", fname2path)
342 binding = edtlib.Binding("test-bindings-include/blocklist.yaml", fname2path)
345 binding = edtlib.Binding("test-bindings-include/empty-blocklist.yaml", fname2path)
348 binding = edtlib.Binding("test-bindings-include/intermixed.yaml", fname2path)
351 binding = edtlib.Binding("test-bindings-include/include-no-list.yaml", fname2path)
354 binding = edtlib.Binding("test-bindings-include/filter-child-bindings.yaml", fname2path)
361 binding = edtlib.Binding("test-bindings-include/allow-and-blocklist-multilevel.yaml",
383 "simple.yaml": "test-bindings-include/simple.yaml",
385 "simple_inherit.yaml": "test-bindings-include/simple_inherit.yaml",
390 "test-bindings-include/simple_filter_allowlist.yaml",
401 "test-bindings-include/simple_filter_blocklist.yaml",
416 "simple.yaml": "test-bindings-include/simple.yaml",
417 "simple_inherit.yaml": "test-bindings-include/simple_inherit.yaml",
421 "test-bindings-include/simple_filter_allowlist.yaml",
433 "test-bindings-include/simple_filter_blocklist.yaml",
450 "simple.yaml": "test-bindings-include/simple.yaml",
451 "simple_inherit.yaml": "test-bindings-include/simple_inherit.yaml",
455 "test-bindings-include/simple_filter_allowlist.yaml",
469 "test-bindings-include/simple_filter_blocklist.yaml",
482 '''Test 'bus:' and 'on-bus:' in bindings'''
484 edt = edtlib.EDT("test.dts", ["test-bindings"])
517 # Same compatible string, but different bindings from being on different
520 hpath("test-bindings/device-on-foo-bus.yaml")
522 hpath("test-bindings/device-on-any-bus.yaml")
524 hpath("test-bindings/device-on-bar-bus.yaml")
526 hpath("test-bindings/device-on-any-bus.yaml")
532 hpath("test-bindings/device-on-foo-bus.yaml")
535 '''Test 'child-binding:' in bindings'''
537 edt = edtlib.EDT("test.dts", ["test-bindings"])
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()
564 binding_file = Path("test-bindings/child-binding-with-compat.yaml").resolve()
575 edt = edtlib.EDT("test.dts", ["test-bindings"])
618 edt = edtlib.EDT("test.dts", ["test-bindings"])
630 '''Test property default values given in bindings'''
632 edt = edtlib.EDT("test.dts", ["test-bindings"])
652 edt = edtlib.EDT("test.dts", ["test-bindings"])
700 '''Test inferred bindings for special zephyr-specific nodes.'''
703 edt = edtlib.EDT("test.dts", ["test-bindings"], warnings)
708 edt = edtlib.EDT("test.dts", ["test-bindings"], warnings,
735 '''Test having multiple directories with bindings'''
737 edt = edtlib.EDT("test-multidir.dts", ["test-bindings", "test-bindings-2"])
740 hpath("test-bindings/multidir.yaml")
743 hpath("test-bindings-2/multidir.yaml")
748 edt = edtlib.EDT("test-multidir.dts", ["test-bindings", "test-bindings-2"])
758 edt = edtlib.EDT("test.dts", ["test-bindings"])
849 edtlib.Binding("test-wrong-bindings/wrong-specifier-space-type.yaml", None)
854 edtlib.Binding("test-wrong-bindings/wrong-phandle-array-name.yaml", None)
867 ["test-bindings", "test-bindings-2"],
910 assert edt_copy.bindings_dirs == ["test-bindings", "test-bindings-2"]