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 380380 };
381381 };
382382
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-
394383 brcm_wifi_pwrseq: wifi-pwrseq {
395384 compatible = "mmc-pwrseq-simple";
396385
20962085 vbus-supply = <&usb2_vbus>;
20972086};
20982087
2099- /* TODO: model USB hub and devices */
21002088&usb3 {
21012089 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+ };
21022117};
21032118
21042119&usb3_phy {
Original file line number Diff line number Diff line change @@ -350,6 +350,7 @@ CONFIG_USB_CHIPIDEA_UDC=y
350350CONFIG_USB_SERIAL=m
351351CONFIG_USB_SERIAL_GENERIC=y
352352CONFIG_USB_PWRSEQ=m
353+ CONFIG_USB_ONBOARD_HUB=m
353354CONFIG_USB_CONFIGFS=y
354355CONFIG_USB_CONFIGFS_RNDIS=y
355356CONFIG_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)
252252 INIT_WORK (& hub -> attach_usb_driver_work , onboard_hub_attach_usb_driver );
253253 schedule_work (& hub -> attach_usb_driver_work );
254254
255- return 0 ;
255+ return devm_of_platform_populate ( dev ) ;
256256}
257257
258258static int onboard_hub_remove (struct platform_device * pdev )
@@ -309,7 +309,8 @@ static struct platform_driver onboard_hub_driver = {
309309
310310/************************** USB driver **************************/
311311
312- #define VENDOR_ID_REALTEK 0x0bda
312+ #define VENDOR_ID_GENESYS_LOGIC 0x05e3
313+ #define VENDOR_ID_REALTEK 0x0bda
313314
314315/*
315316 * 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)
383384}
384385
385386static const struct usb_device_id onboard_hub_id_table [] = {
387+ { USB_DEVICE (VENDOR_ID_GENESYS_LOGIC , 0x0610 ) },
386388 { USB_DEVICE (VENDOR_ID_REALTEK , 0x0411 ) }, /* RTS5411 USB 3.1 */
387389 { USB_DEVICE (VENDOR_ID_REALTEK , 0x5411 ) }, /* RTS5411 USB 2.1 */
388390 { USB_DEVICE (VENDOR_ID_REALTEK , 0x0414 ) }, /* RTS5414 USB 3.2 */
Original file line number Diff line number Diff line change 77#define _USB_MISC_ONBOARD_USB_HUB_H
88
99static const struct of_device_id onboard_hub_match [] = {
10+ { .compatible = "usb5e3,610" },
1011 { .compatible = "usbbda,411" },
1112 { .compatible = "usbbda,5411" },
1213 { .compatible = "usbbda,414" },
You can’t perform that action at this time.
0 commit comments