Zixun LI d6376f7ed8 usb: gadget: atmel: Add DM_USB_GADGET support
Add driver model support by using the uclass UCLASS_USB_GADGET_GENERIC.

Disable local usb_gadget_register_driver()/usb_gadget_unregister_driver()
implementation which is implemented in udc-core.c when DM_USB_GADGET
is enabled.

Replace dm_usb_gadget_handle_interrupts() with handle_interrupts ops
when DM_USB_GADGET is enabled.

Disable legacy struct usba_udc controller as controller point is extracted
from udevice private data with DM.

Disable legacy usba_udc_probe() to avoid conflict with DM when it's
enabled.

Compared to Linux driver only supported devices' DT bindings are included
(sorted as Linux driver)

Signed-off-by: Zixun LI <admin@hifiphile.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240725153204.358925-8-admin@hifiphile.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-08-06 14:58:14 +02:00
..
2019-12-06 16:44:20 -05:00
2019-12-06 16:44:20 -05:00
2018-06-07 17:08:06 -04:00
2023-05-15 14:08:45 -04:00
2018-11-20 13:08:15 +01:00
2024-07-29 15:01:04 -06:00
2021-11-23 09:57:55 +02:00
2022-11-28 10:25:17 -05:00
2023-11-07 14:50:52 -05:00
2019-12-06 16:44:20 -05:00
2021-03-01 09:54:11 -05:00
2018-11-20 13:08:15 +01:00
2023-05-15 14:08:45 -04:00
2023-07-25 12:44:46 -04:00
2019-05-05 08:48:50 -04:00