File tree Expand file tree Collapse file tree 4 files changed +33
-14
lines changed Expand file tree Collapse file tree 4 files changed +33
-14
lines changed Original file line number Diff line number Diff line change 380
380
};
381
381
};
382
382
383
- usb-touchscreen {
384
- compatible = "usb457,817";
385
- reset-gpios = <&gpio TEGRA_GPIO(H, 6) GPIO_ACTIVE_LOW>;
386
- power-gpios = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>;
387
- };
388
-
389
- usb-webcam {
390
- compatible = "usb4f2,b354";
391
- power-gpios = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>;
392
- };
393
-
394
383
brcm_wifi_pwrseq: wifi-pwrseq {
395
384
compatible = "mmc-pwrseq-simple";
396
385
2096
2085
vbus-supply = <&usb2_vbus>;
2097
2086
};
2098
2087
2099
- /* TODO: model USB hub and devices */
2100
2088
&usb3 {
2101
2089
status = "okay";
2090
+ #address-cells = <1>;
2091
+ #size-cells = <0>;
2092
+
2093
+ /* Genesys Logic 4-port USB2.0 Hub */
2094
+ hub@1 {
2095
+ compatible = "usb5e3,610";
2096
+ reg = <1>;
2097
+ #address-cells = <1>;
2098
+ #size-cells = <0>;
2099
+
2100
+ /* USBest Technology SiS HID Touch Controller */
2101
+ device@1 {
2102
+ compatible = "usb457,817";
2103
+ reg = <1>;
2104
+ reset-gpios = <&gpio TEGRA_GPIO(H, 6) GPIO_ACTIVE_LOW>;
2105
+ power-gpios = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>;
2106
+ };
2107
+
2108
+ /* Chicony USB2.0 HD UVC WebCam */
2109
+ device@2 {
2110
+ compatible = "usb4f2,b354";
2111
+ reg = <2>;
2112
+ power-gpios = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>;
2113
+ };
2114
+
2115
+ /* One USB port is externally accessible on the docking station */
2116
+ };
2102
2117
};
2103
2118
2104
2119
&usb3_phy {
Original file line number Diff line number Diff line change @@ -350,6 +350,7 @@ CONFIG_USB_CHIPIDEA_UDC=y
350
350
CONFIG_USB_SERIAL=m
351
351
CONFIG_USB_SERIAL_GENERIC=y
352
352
CONFIG_USB_PWRSEQ=m
353
+ CONFIG_USB_ONBOARD_HUB=m
353
354
CONFIG_USB_CONFIGFS=y
354
355
CONFIG_USB_CONFIGFS_RNDIS=y
355
356
CONFIG_USB_CONFIGFS_EEM=y
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ static int onboard_hub_probe(struct platform_device *pdev)
252
252
INIT_WORK (& hub -> attach_usb_driver_work , onboard_hub_attach_usb_driver );
253
253
schedule_work (& hub -> attach_usb_driver_work );
254
254
255
- return 0 ;
255
+ return devm_of_platform_populate ( dev ) ;
256
256
}
257
257
258
258
static int onboard_hub_remove (struct platform_device * pdev )
@@ -309,7 +309,8 @@ static struct platform_driver onboard_hub_driver = {
309
309
310
310
/************************** USB driver **************************/
311
311
312
- #define VENDOR_ID_REALTEK 0x0bda
312
+ #define VENDOR_ID_GENESYS_LOGIC 0x05e3
313
+ #define VENDOR_ID_REALTEK 0x0bda
313
314
314
315
/*
315
316
* Returns the onboard_hub platform device that is associated with the USB
@@ -383,6 +384,7 @@ static void onboard_hub_usbdev_disconnect(struct usb_device *udev)
383
384
}
384
385
385
386
static const struct usb_device_id onboard_hub_id_table [] = {
387
+ { USB_DEVICE (VENDOR_ID_GENESYS_LOGIC , 0x0610 ) },
386
388
{ USB_DEVICE (VENDOR_ID_REALTEK , 0x0411 ) }, /* RTS5411 USB 3.1 */
387
389
{ USB_DEVICE (VENDOR_ID_REALTEK , 0x5411 ) }, /* RTS5411 USB 2.1 */
388
390
{ USB_DEVICE (VENDOR_ID_REALTEK , 0x0414 ) }, /* RTS5414 USB 3.2 */
Original file line number Diff line number Diff line change 7
7
#define _USB_MISC_ONBOARD_USB_HUB_H
8
8
9
9
static const struct of_device_id onboard_hub_match [] = {
10
+ { .compatible = "usb5e3,610" },
10
11
{ .compatible = "usbbda,411" },
11
12
{ .compatible = "usbbda,5411" },
12
13
{ .compatible = "usbbda,414" },
You can’t perform that action at this time.
0 commit comments