I need to run musb controller in device mode but I am facing the following error:
=> usb start
starting USB...
No host cable detected: Bus usb@1c13000: Port not available.
=> fastboot 0
No USB device found
USB init failed: -19
What’s already been done:
Added dts files
--- sun8i-r40.dtsi ---
usb_otg: usb@1c13000 {
compatible = "allwinner,sun8i-h3-musb";
reg = <0x01c13000 0x400>;
clocks = <&ccu CLK_BUS_OTG>;
resets = <&ccu RST_BUS_OTG>;
interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "mc";
phys = <&usbphy 0>;
phy-names = "usb";
extcon = <&usbphy 0>;
dr_mode = "otg";
status = "disabled";
};
--- sun8i-v40-bananapi-m2-berry.dts ---
&usb_otg {
status = "okay";
};
&usbphy {
dr_mode = "peripheral";
usb0_id_det-gpios = <&pio 8 4 GPIO_ACTIVE_HIGH>;
usb0_vbus-supply = <®_vcc5v0>;
status = "okay";
};
menuconfig includes the following settings
- Enable driver model for USB Gadget
- MUSB host mode support
- MUSB gadget mode support
- Enable sunxi OTG/DRC USB controller
- Hardcode MUSB CONFIGDATA register
- USB Gadget support
- USB Gadget support in SPL
What’s wrong or what should I add?
Thanks in advance