musb-new: ti-musb: Handle usb dual-role feature as peripheral

This prevents from getting some 'No USB device found' error,
in usb_ether_init() function for instance.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
This commit is contained in:
Julien Panis 2023-07-06 14:44:06 +02:00 committed by Udit Kumar
parent 64c0d9e010
commit 72ee4c306b
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ static int ti_musb_wrapper_bind(struct udevice *parent)
dr_mode = usb_get_dr_mode(node); dr_mode = usb_get_dr_mode(node);
switch (dr_mode) { switch (dr_mode) {
case USB_DR_MODE_PERIPHERAL: case USB_DR_MODE_PERIPHERAL:
case USB_DR_MODE_OTG:
/* Bind MUSB device */ /* Bind MUSB device */
ret = device_bind_driver_to_node(parent, ret = device_bind_driver_to_node(parent,
"ti-musb-peripheral", "ti-musb-peripheral",