Lines Matching refs:str

164     def __init__(self, path: Optional[str], fname2path: Dict[str, str],  argument
195 self.path: Optional[str] = path
196 self._fname2path: Dict[str, str] = fname2path
228 self.prop2specs: Dict[str, 'PropertySpec'] = {}
231 self.specifier2cells: Dict[str, List[str]] = {}
236 def __repr__(self) -> str:
245 def description(self) -> Optional[str]:
250 def compatible(self) -> Optional[str]:
255 def bus(self) -> Union[None, str, List[str]]:
260 def buses(self) -> List[str]:
268 def on_bus(self) -> Optional[str]:
272 def _merge_includes(self, raw: dict, binding_path: Optional[str]) -> dict: argument
290 merged: Dict[str, Any] = {}
292 if isinstance(include, str):
299 if isinstance(elem, str):
339 def _load_raw(self, fname: str) -> dict: argument
364 if not isinstance(compatible, str):
373 if not isinstance(description, str) or not description:
404 if (not isinstance(bus, str) and
406 not all(isinstance(elem, str) for elem in bus))):
417 and not isinstance(raw["on-bus"], str)):
426 or not all(isinstance(elem, str) for elem in val)):
464 and not isinstance(options["description"], str)):
530 def __init__(self, name: str, binding: Binding): argument
532 self.name: str = name
533 self._raw: Dict[str, Any] = self.binding.raw["properties"][name]
535 def __repr__(self) -> str:
539 def path(self) -> Optional[str]:
544 def type(self) -> str:
549 def description(self) -> Optional[str]:
589 def const(self) -> Union[None, int, List[int], str, List[str]]:
594 def default(self) -> Union[None, int, List[int], str, List[str]]:
609 def specifier_space(self) -> Optional[str]:
613 PropertyValType = Union[int, str,
614 List[int], List[str],
685 def name(self) -> str:
690 def description(self) -> Optional[str]:
695 def type(self) -> str:
700 def val_as_tokens(self) -> List[str]:
704 assert isinstance(subval, str)
739 name: Optional[str]
820 name: Optional[str]
821 basename: Optional[str]
850 name: Optional[str]
1023 self.compats: List[str] = compats
1026 self.props: Dict[str, Property] = {}
1036 def name(self) -> str:
1058 def description(self) -> Optional[str]:
1065 def path(self) -> str:
1070 def label(self) -> Optional[str]:
1077 def labels(self) -> List[str]:
1087 def children(self) -> Dict[str, 'Node']:
1104 self._child2index: Dict[str, int] = {}
1122 def status(self) -> str:
1142 def matching_compat(self) -> Optional[str]:
1149 def binding_path(self) -> Optional[str]:
1156 def aliases(self) -> List[str]:
1162 def buses(self) -> List[str]:
1169 def on_buses(self) -> List[str]:
1266 def __repr__(self) -> str:
1330 raw: Dict[str, Any] = {
1335 pp: Dict[str, str] = {}
1482 name: str, argument
1717 if prop.name != "pinctrl-" + str(i):
1752 specifier_space: Optional[str] argument
1831 basename: str argument
1832 ) -> Dict[str, int]:
1842 cell_names: List[str] = controller._binding.specifier2cells[basename]
1925 dts: Optional[str], argument
1926 bindings_dirs: List[str], argument
1930 infer_binding_for_paths: Optional[Iterable[str]] = None, argument
1931 vendor_prefixes: Optional[Dict[str, str]] = None, argument
1981 self.compat2nodes: Dict[str, List[Node]] = defaultdict(list)
1982 self.compat2okay: Dict[str, List[Node]] = defaultdict(list)
1983 self.compat2notokay: Dict[str, List[Node]] = defaultdict(list)
1984 self.compat2vendor: Dict[str, str] = defaultdict(str)
1985 self.compat2model: Dict[str, str] = defaultdict(str)
1986 self.label2node: Dict[str, Node] = {}
1988 self.dts_path: str = dts # type: ignore
1989 self.bindings_dirs: List[str] = list(bindings_dirs)
1995 self._infer_binding_for_paths: Set[str] = set(infer_binding_for_paths or [])
1996 self._vendor_prefixes: Dict[str, str] = vendor_prefixes or {}
2000 self._compat2binding: Dict[Tuple[str, Optional[str]], Binding] = {}
2002 self._binding_paths: List[str] = _binding_paths(self.bindings_dirs)
2003 self._binding_fname2path: Dict[str, str] = {
2028 def get_node(self, path: str) -> Node: argument
2039 def chosen_nodes(self) -> Dict[str, Node]:
2040 ret: Dict[str, Node] = {}
2058 def chosen_node(self, name: str) -> Optional[Node]: argument
2066 def dts_source(self) -> str:
2069 def __repr__(self) -> str:
2229 binding_path: str, argument
2230 dt_compats: Set[str]) -> Optional[Binding]: argument
2387 assert isinstance(compat, str)
2390 def bindings_from_paths(yaml_paths: List[str], argument
2420 def load_vendor_prefixes_txt(vendor_prefixes: str) -> Dict[str, str]: argument
2424 vnd2vendor: Dict[str, str] = {}
2446 def _dt_compats(dt: DT) -> Set[str]:
2456 def _binding_paths(bindings_dirs: List[str]) -> List[str]: argument
2477 def _check_include_dict(name: Optional[str], argument
2478 allowlist: Optional[List[str]], argument
2479 blocklist: Optional[List[str]], argument
2481 binding_path: Optional[str]) -> None: argument
2497 child_allowlist: Optional[List[str]] = (
2499 child_blocklist: Optional[List[str]] = (
2519 allowlist: Optional[List[str]], argument
2520 blocklist: Optional[List[str]], argument
2522 binding_path: Optional[str]) -> None: argument
2541 allowlist: Optional[List[str]], argument
2542 blocklist: Optional[List[str]], argument
2543 binding_path: Optional[str]) -> None: argument
2563 def _check_prop_filter(name: str, value: Optional[List[str]], argument
2564 binding_path: Optional[str]) -> None: argument
2577 parent: Optional[str], argument
2578 binding_path: Optional[str], argument
2621 def _bad_overwrite(to_dict: dict, from_dict: dict, prop: str, argument
2656 def _check_prop_by_type(prop_name: str, argument
2658 binding_path: Optional[str]) -> None: argument
2714 or prop_type == "string" and isinstance(default, str)):
2732 return all(isinstance(val, str) for val in default)
2788 def _add_names(node: dtlib_Node, names_ident: str, objs: Any) -> None: argument
2908 basename: str argument
2927 prefix: str, argument
3008 prefix: str, argument
3030 prefix: str, argument
3107 n_cells_name: str argument
3188 prop_name: str, argument
3190 size_hint: str) -> List[bytes]: argument
3210 _err(str(e))
3236 def str_as_token(val: str) -> str: argument
3262 _DEFAULT_PROP_TYPES: Dict[str, str] = {
3275 _STATUS_ENUM: List[str] = "ok okay disabled reserved fail fail-sss".split()
3278 name: str argument
3279 ) -> Dict[str, Union[str, bool, List[str]]]:
3280 ret: Dict[str, Union[str, bool, List[str]]] = {
3299 _DEFAULT_PROP_SPECS: Dict[str, PropertySpec] = {