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 onboard_hub_pdata genesys_gl852g_data = {
30 	.reset_us = 50,
31 };
32 
33 static const struct onboard_hub_pdata vialab_vl817_data = {
34 	.reset_us = 10,
35 };
36 
37 static const struct of_device_id onboard_hub_match[] = {
38 	{ .compatible = "usb424,2514", .data = &microchip_usb424_data, },
39 	{ .compatible = "usb424,2517", .data = &microchip_usb424_data, },
40 	{ .compatible = "usb451,8140", .data = &ti_tusb8041_data, },
41 	{ .compatible = "usb451,8142", .data = &ti_tusb8041_data, },
42 	{ .compatible = "usb5e3,608", .data = &genesys_gl850g_data, },
43 	{ .compatible = "usb5e3,610", .data = &genesys_gl852g_data, },
44 	{ .compatible = "usbbda,411", .data = &realtek_rts5411_data, },
45 	{ .compatible = "usbbda,5411", .data = &realtek_rts5411_data, },
46 	{ .compatible = "usbbda,414", .data = &realtek_rts5411_data, },
47 	{ .compatible = "usbbda,5414", .data = &realtek_rts5411_data, },
48 	{ .compatible = "usb2109,817", .data = &vialab_vl817_data, },
49 	{ .compatible = "usb2109,2817", .data = &vialab_vl817_data, },
50 	{}
51 };
52 
53 #endif /* _USB_MISC_ONBOARD_USB_HUB_H */
54