Lines Matching full:binding

102         for binding in bindings:
103 vnd = compatible_vnd(binding.compatible)
105 generic_bindings.append(binding)
107 unsorted[vnd].append(binding)
109 unknown_vendor_bindings.append(binding)
115 def binding_key(binding): argument
116 return binding.compatible
184 help='additional DTS folders containing binding files')
202 # Get a list of edtlib.Binding objects from searching 'dts_roots'.
224 bindings = [binding for binding in bindings if
225 compatible_vnd(binding.compatible) != 'vnd']
233 # Make a Binding object for base.yaml.
243 return edtlib.Binding(os.fspath(base_yaml), base_includes, require_compatible=False,
325 for binding in bindings:
326 paths.add(bindings_dir / binding_filename(binding))
350 compatibles = {binding.compatible for binding in bindings}
432 for binding in bindings:
433 print(f'- :ref:`{binding_ref_target(binding)}`', file=string_io)
439 # Write out_dir / bindings / foo / binding_page.rst for each binding
452 # binding pages, and which ones aren't.
455 for binding in bindings:
456 compat2bindings[binding.compatible].append(binding)
460 # Next, write the per-binding pages. These contain the
467 for binding in bindings:
470 print_binding_page(binding, base_names, vnd_lookup,
474 binding_filename(binding),
499 def print_binding_page(binding, base_names, vnd_lookup, driver_sources,dup_compats, argument
501 # Print the rst content for 'binding' to 'string_io'. The
504 # 'binding.compatible' is not in it, then the ref target for the
513 if binding.on_bus:
514 on_bus_title = f' (on {binding.on_bus} bus)'
517 compatible = binding.compatible
522 # If this binding is the only one that handles this
525 dtcompatible = f'.. dtcompatible:: {binding.compatible}'
544 .. _{binding_ref_target(binding)}:
569 # Binding description.
570 if binding.bus:
571 bus_help = f'These nodes are "{binding.bus}" bus nodes.'
580 print(to_code_block(binding.description.strip()), file=string_io)
587 print_top_level_properties(binding, base_names, string_io)
588 print_child_binding_properties(binding, string_io)
594 if binding.specifier2cells:
599 for specifier, cells in binding.specifier2cells.items():
603 def print_top_level_properties(binding, base_names, string_io): argument
604 # Print the RST for top level properties for 'binding' to 'string_io'.
610 specs = [prop_spec for prop_spec in binding.prop2specs.values()
629 if binding.child_binding:
634 if binding.prop2specs:
635 if binding.child_binding:
637 These property descriptions apply to "{binding.compatible}"
648 Properties not inherited from the base binding file.
654 Deprecated properties not inherited from the base binding file.
660 Properties inherited from the base binding file, which defines
662 may apply to the "{binding.compatible}" compatible.
670 def print_child_binding_properties(binding, string_io): argument
675 child = binding.child_binding
718 # The property 'description' field from the binding may span
781 output_list = '\n '.join(f'- :ref:`{binding_ref_target(binding)}`'
782 for binding in bindings)
856 def binding_filename(binding): argument
857 # Returns the output file name for a binding relative to the
868 as_posix = Path(binding.path).as_posix()
873 raise ValueError(f'binding path has no {dts_bindings}: {binding.path}')
879 def binding_ref_target(binding): argument
880 # Return the sphinx ':ref:' target name for a binding.
882 stem = Path(binding.path).stem