1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 2022, Google LLC
4  */
5 
6 #ifndef _USB_MISC_ONBOARD_USB_HUB_H
7 #define _USB_MISC_ONBOARD_USB_HUB_H
8 
9 struct onboard_hub_pdata {
10 	unsigned long reset_us;		/* reset pulse width in us */
11 };
12 
13 static const struct onboard_hub_pdata microchip_usb424_data = {
14 	.reset_us = 1,
15 };
16 
17 static const struct onboard_hub_pdata realtek_rts5411_data = {
18 	.reset_us = 0,
19 };
20 
21 static const struct onboard_hub_pdata ti_tusb8041_data = {
22 	.reset_us = 3000,
23 };
24 
25 static const struct onboard_hub_pdata genesys_gl850g_data = {
26 	.reset_us = 3,
27 };
28 
29 static const struct of_device_id onboard_hub_match[] = {
30 	{ .compatible = "usb424,2514", .data = &microchip_usb424_data, },
31 	{ .compatible = "usb451,8140", .data = &ti_tusb8041_data, },
32 	{ .compatible = "usb451,8142", .data = &ti_tusb8041_data, },
33 	{ .compatible = "usb5e3,608", .data = &genesys_gl850g_data, },
34 	{ .compatible = "usbbda,411", .data = &realtek_rts5411_data, },
35 	{ .compatible = "usbbda,5411", .data = &realtek_rts5411_data, },
36 	{ .compatible = "usbbda,414", .data = &realtek_rts5411_data, },
37 	{ .compatible = "usbbda,5414", .data = &realtek_rts5411_data, },
38 	{}
39 };
40 
41 #endif /* _USB_MISC_ONBOARD_USB_HUB_H */
42