Lines Matching +full:super +full:- +full:speed
1 // SPDX-License-Identifier: GPL-2.0
7 * compiled-in as well. Otherwise, if either of the two stacks is
64 [USB_SPEED_LOW] = "low-speed",
65 [USB_SPEED_FULL] = "full-speed",
66 [USB_SPEED_HIGH] = "high-speed",
68 [USB_SPEED_SUPER] = "super-speed",
69 [USB_SPEED_SUPER_PLUS] = "super-speed-plus",
72 const char *usb_speed_string(enum usb_device_speed speed) in usb_speed_string() argument
74 if (speed < 0 || speed >= ARRAY_SIZE(speed_names)) in usb_speed_string()
75 speed = USB_SPEED_UNKNOWN; in usb_speed_string()
76 return speed_names[speed]; in usb_speed_string()
85 ret = device_property_read_string(dev, "maximum-speed", &maximum_speed); in usb_get_maximum_speed()
146 * of_usb_get_dr_mode_by_phy - Get dual role mode for the controller device
149 * @arg0: phandle args[0] for phy's with #phy-cells >= 1, or -1 for
150 * phys which do not have phy-cells
170 if (arg0 == -1) { in of_usb_get_dr_mode_by_phy()
176 "phys", "#phy-cells", in of_usb_get_dr_mode_by_phy()
202 * of_usb_host_tpl_support - to get if Targeted Peripheral List is supported
203 * for given targeted hosts (non-PC hosts)
210 return of_property_read_bool(np, "tpl-support"); in of_usb_host_tpl_support()
215 * of_usb_update_otg_caps - to update usb otg capabilities according to
228 return -EINVAL; in of_usb_update_otg_caps()
230 if (!of_property_read_u32(np, "otg-rev", &otg_rev)) { in of_usb_update_otg_caps()
237 if (otg_caps->otg_rev) in of_usb_update_otg_caps()
238 otg_caps->otg_rev = min_t(u16, otg_rev, in of_usb_update_otg_caps()
239 otg_caps->otg_rev); in of_usb_update_otg_caps()
241 otg_caps->otg_rev = otg_rev; in of_usb_update_otg_caps()
244 pr_err("%pOF: unsupported otg-rev: 0x%x\n", in of_usb_update_otg_caps()
246 return -EINVAL; in of_usb_update_otg_caps()
250 * otg-rev is mandatory for otg properties, if not passed in of_usb_update_otg_caps()
252 * Non-dt platform can set it afterwards. in of_usb_update_otg_caps()
254 otg_caps->otg_rev = 0; in of_usb_update_otg_caps()
257 if (of_property_read_bool(np, "hnp-disable")) in of_usb_update_otg_caps()
258 otg_caps->hnp_support = false; in of_usb_update_otg_caps()
259 if (of_property_read_bool(np, "srp-disable")) in of_usb_update_otg_caps()
260 otg_caps->srp_support = false; in of_usb_update_otg_caps()
261 if (of_property_read_bool(np, "adp-disable") || in of_usb_update_otg_caps()
262 (otg_caps->otg_rev < 0x0200)) in of_usb_update_otg_caps()
263 otg_caps->adp_support = false; in of_usb_update_otg_caps()
270 * usb_of_get_companion_dev - Find the companion device
285 node = of_parse_phandle(dev->of_node, "companion", 0); in usb_of_get_companion_dev()
291 return pdev ? &pdev->dev : NULL; in usb_of_get_companion_dev()