NOTE: USB Audio configuration options default value is listed for LS1021A platform.
Source Files
The driver source is maintained in the Linux kernel source tree in below files
Table continued from the previous page...
Source File
Description
drivers/usb/host/xhci-*
xhci platform driver
drivers/usb/gadget/mass_storage.c
USB Mass Storage
drivers/usb/gadget/ether.c
Ethernet gadget driver
Device Tree Binding for Host
usb@3100000 {
compatible = "snps,dwc3";
reg = <0x0 0x3100000 0x0 0x10000>;
interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
dr_mode = "host;
};
Device Tree Binding for Peripheral
Note: with multiple USB controller, just one can be peripheral mode at a time.
usb@3100000 {
compatible = "snps,dwc3";
reg = <0x0 0x3100000 0x0 0x10000>;
interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
dr_mode = "peripheral;
maximum-speed = "super-speed";
};
Host Testing
Following are serial console logs that appear during bootup if dr_mode set to host in device-tree
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: irq 125, io mem 0x03100000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
79
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......