2020-09-08 15:14:18 +02:00
|
|
|
diff --git drivers/usb/misc/usb251xb.c drivers/usb/misc/usb251xb.c
|
|
|
|
index 135c91c434bf..a1ca97c07266 100644
|
2020-09-08 19:06:20 +02:00
|
|
|
--- linux-imx/drivers/usb/misc/usb251xb.c
|
|
|
|
+++ linux-imx/drivers/usb/misc/usb251xb.c
|
2020-09-08 15:14:18 +02:00
|
|
|
@@ -155,6 +155,11 @@ struct usb251xb_data {
|
|
|
|
char product_str[USB251XB_STRING_BUFSIZE / 2]; /* ASCII string */
|
|
|
|
};
|
|
|
|
|
|
|
|
+static const struct usb251xb_data usb2422_data = {
|
|
|
|
+ .product_id = 0x2422,
|
|
|
|
+ .product_str = "USB2422",
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
static const struct usb251xb_data usb2512b_data = {
|
|
|
|
.product_id = 0x2512,
|
|
|
|
.product_str = "USB2512B",
|
|
|
|
@@ -492,6 +497,9 @@ static int usb251xb_get_ofdata(struct usb251xb *hub,
|
|
|
|
|
|
|
|
static const struct of_device_id usb251xb_of_match[] = {
|
|
|
|
{
|
|
|
|
+ .compatible = "microchip,usb2422",
|
|
|
|
+ .data = &usb2422_data,
|
|
|
|
+ }, {
|
|
|
|
.compatible = "microchip,usb2512b",
|
|
|
|
.data = &usb2512b_data,
|
|
|
|
}, {
|
|
|
|
@@ -567,6 +575,7 @@ static int usb251xb_i2c_probe(struct i2c_client *i2c,
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct i2c_device_id usb251xb_id[] = {
|
|
|
|
+ { "usb2422", 0 },
|
|
|
|
{ "usb2512b", 0 },
|
|
|
|
{ "usb2512bi", 0 },
|
|
|
|
{ "usb2513b", 0 },
|