Lines Matching +full:usb +full:- +full:version
2 # SPDX-License-Identifier: GPL-2.0
7 # buses (ie USB, PCI).
9 # The per-platform YAML file defining the devices to be tested is stored inside
33 sysfs_usb_devices = "/sys/bus/usb/devices/"
38 pci_controller_sysfs_dir = "pci[0-9a-f]{4}:[0-9a-f]{2}"
48 usb_controller_sysfs_dir = r"usb[\d]+"
57 re_dt_mmio = re.compile("OF_FULLNAME=.*@([0-9a-f]+)")
106 if controller["type"] == "pci-controller":
108 elif controller["type"] == "usb-controller":
117 if controller.get("dt-mmio"):
118 if str(controller["dt-mmio"]) != get_dt_mmio(c):
121 if controller.get("of-fullname-regex"):
122 re_of_fullname = re.compile(str(controller["of-fullname-regex"]))
126 if controller.get("usb-version"):
127 if controller["usb-version"] != get_usb_version(c):
130 if controller.get("acpi-uid"):
131 if controller["acpi-uid"] != get_acpi_uid(c):
144 if dev_type == "usb-device":
145 usb_dev_sysfs_fmt = "{}-{}"
183 if current_node["meta"]["type"] == "usb-device":
184 usb_intf_fmt = "*-*:*.{}"
215 if device.get("usb-version"):
216 dev_type = dev_type.replace("usb", "usb" + str(device["usb-version"]))
217 if device.get("acpi-uid") is not None:
218 dev_type = dev_type.replace("pci", "pci" + str(device["acpi-uid"]))
221 if device.get("dt-mmio"):
222 pathname += "@" + str(device["dt-mmio"])
224 if device.get("of-fullname-regex"):
225 pathname += "-" + str(device["of-fullname-regex"])
297 platform_compatible_file = "/proc/device-tree/compatible"
331 "--boards-dir", default="boards", help="Directory containing the board YAML files"