Skip to contentSkip to conversation

usb: misc: onboard_usb_dev: Add devices used by ASUS AiO P1801-T

PATCH New Svyatoslav Ryhel 2 participants 4 messages Nov 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover usb: misc: onboard_usb_dev: Add devices used by ASUS AiO P1801-T

ASUS AiO P1801-T has 2 built-in devices linked via USB which require basic configuration (reset and power supply). Add them to onboard_usb_dev.

Svyatoslav Ryhel (2):
usb: misc: onboard_usb_dev: Add Chicony USB2.0 HD UVC WebCam support
usb: misc: onboard_usb_dev: Add USBest Technology SiS HID Touch
Controller support

 drivers/usb/misc/onboard_usb_dev.c |  4 ++++
 drivers/usb/misc/onboard_usb_dev.h | 10 ++++++++++
 2 files changed, 14 insertions(+)
Signature · 1 line
2.53.0
#1 lore raw

PATCH 1/2 usb: misc: onboard_usb_dev: Add Chicony USB2.0 HD UVC WebCam support

The Chicony USB2.0 HD UVC WebCam is built in Asus Portable AiO P1801-T and attached on the USB controller via integrated Genesys Logic 4-port USB2.0 Hub. Add the support for this device for the power supply and reset.

---
 drivers/usb/misc/onboard_usb_dev.c | 2 ++
 drivers/usb/misc/onboard_usb_dev.h | 1 +
 2 files changed, 3 insertions(+)
drivers/usb/misc/onboard_usb_dev.c +2 -0
index 0606d405c16f1..f846d7fe331ea 100644
@@ -565,6 +565,7 @@ static struct platform_driver onboard_dev_driver = {
 /************************** USB driver **************************/
 
 #define VENDOR_ID_BISON		0x5986
+#define VENDOR_ID_CHICONY	0x04f2
 #define VENDOR_ID_CORECHIPS	0x3431
 #define VENDOR_ID_CYPRESS	0x04b4
 #define VENDOR_ID_GENESYS	0x05e3
@@ -651,6 +652,7 @@ static void onboard_dev_usbdev_disconnect(struct usb_device *udev)
 
 static const struct usb_device_id onboard_dev_id_table[] = {
 	{ USB_DEVICE(VENDOR_ID_BISON, 0x1198) }, /* Bison Electronics Inc. Integrated Camera */
+	{ USB_DEVICE(VENDOR_ID_CHICONY, 0x0b354) }, /* Chicony USB2.0 HD UVC WebCam */
 	{ USB_DEVICE(VENDOR_ID_CORECHIPS, 0x6241) }, /* SL6341 2.0 HUB */
 	{ USB_DEVICE(VENDOR_ID_CORECHIPS, 0x6341) }, /* SL6341 3.0 HUB */
 	{ USB_DEVICE(VENDOR_ID_CYPRESS, 0x6500) }, /* CYUSB330x 3.0 HUB */
drivers/usb/misc/onboard_usb_dev.h +1 -0
index 3523f8f8a1496..10f010fb57c07 100644
@@ -150,6 +150,7 @@ static const struct of_device_id onboard_dev_match[] = {
 	{ .compatible = "usb4b4,6504", .data = &cypress_hx3_data, },
 	{ .compatible = "usb4b4,6506", .data = &cypress_hx3_data, },
 	{ .compatible = "usb4b4,6570", .data = &microchip_usb424_data, },
+	{ .compatible = "usb4f2,b354", .data = &bison_intcamera_data, },
 	{ .compatible = "usb5e3,608", .data = &genesys_gl850g_data, },
 	{ .compatible = "usb5e3,610", .data = &genesys_gl852g_data, },
 	{ .compatible = "usb5e3,620", .data = &genesys_gl852g_data, },
Signature · 1 line
2.53.0
#2 lore raw

PATCH 2/2 usb: misc: onboard_usb_dev: Add USBest Technology SiS HID Touch Controller support

In reply to Svyatoslav Ryhel

The USBest Technology SiS HID Touch Controller is built in Asus Portable AiO P1801-T and attached on the USB controller via integrated Genesys Logic 4-port USB2.0 Hub. Add the support for these device for the power supply and reset.

---
 drivers/usb/misc/onboard_usb_dev.c | 2 ++
 drivers/usb/misc/onboard_usb_dev.h | 9 +++++++++
 2 files changed, 11 insertions(+)
drivers/usb/misc/onboard_usb_dev.c +2 -0
index f846d7fe331ea..5435e2b1f535f 100644
@@ -574,6 +574,7 @@ static struct platform_driver onboard_dev_driver = {
 #define VENDOR_ID_REALTEK	0x0bda
 #define VENDOR_ID_TERMINUS	0x1a40
 #define VENDOR_ID_TI		0x0451
+#define VENDOR_ID_USBEST	0x0457
 #define VENDOR_ID_VIA		0x2109
 #define VENDOR_ID_XMOS		0x20B1
 
@@ -687,6 +688,7 @@ static const struct usb_device_id onboard_dev_id_table[] = {
 	{ USB_DEVICE(VENDOR_ID_TI, 0x8142) }, /* TI USB8041 2.0 HUB */
 	{ USB_DEVICE(VENDOR_ID_TI, 0x8440) }, /* TI USB8044 3.0 HUB */
 	{ USB_DEVICE(VENDOR_ID_TI, 0x8442) }, /* TI USB8044 2.0 HUB */
+	{ USB_DEVICE(VENDOR_ID_USBEST, 0x0817) }, /* USBest Technology SiS HID Touch Controller */
 	{ USB_DEVICE(VENDOR_ID_VIA, 0x0817) }, /* VIA VL817 3.1 HUB */
 	{ USB_DEVICE(VENDOR_ID_VIA, 0x2817) }, /* VIA VL817 2.0 HUB */
 	{ USB_DEVICE(VENDOR_ID_XMOS, 0x0013) }, /* XMOS XVF3500 Voice Processor */
drivers/usb/misc/onboard_usb_dev.h +9 -0
index 10f010fb57c07..8c218c8a82fca 100644
@@ -66,6 +66,14 @@ static const struct onboard_dev_pdata ti_tusb8020b_data = {
 	.is_hub = true,
 };
 
+static const struct onboard_dev_pdata usbest_hidtouch_data = {
+	.reset_us = 1000,
+	.power_on_delay_us = 100000,
+	.num_supplies = 1,
+	.supply_names = { "vdd" },
+	.is_hub = false,
+};
+
 static const struct onboard_dev_pdata bison_intcamera_data = {
 	.reset_us = 1000,
 	.num_supplies = 1,
@@ -147,6 +155,7 @@ static const struct of_device_id onboard_dev_match[] = {
 	{ .compatible = "usb451,8142", .data = &ti_tusb8020b_data, },
 	{ .compatible = "usb451,8440", .data = &ti_tusb8020b_data, },
 	{ .compatible = "usb451,8442", .data = &ti_tusb8020b_data, },
+	{ .compatible = "usb457,817", .data = &usbest_hidtouch_data, },
 	{ .compatible = "usb4b4,6504", .data = &cypress_hx3_data, },
 	{ .compatible = "usb4b4,6506", .data = &cypress_hx3_data, },
 	{ .compatible = "usb4b4,6570", .data = &microchip_usb424_data, },
Signature · 1 line
2.53.0