Allwinner A133 Usb Driver

Once your USB driver is correctly installed, follow these rules to avoid bricking your device:


(Assumes kernel with configfs)

  • Create gadget:
  • Create config and functions:
  • Bind to UDC:
  • Stop gadget:
  • One of the most complex aspects of the A133 USB driver is the Dual-Role Switching. allwinner a133 usb driver

    When porting or debugging the A133 USB driver, engineers often encounter the following issues: Once your USB driver is correctly installed, follow

    Cause: Faulty USB cable, incorrect FEL button timing, or a dead battery on the A133 device. (Assumes kernel with configfs)

    Solution:

    Below is a representative structure of the A133 OTG node in the DTS:

    usb_otg: usb@5100000 
        compatible = "allwinner,sun50i-a133-otg", "snps,dwc2";
        reg = <0x05100000 0x10000>;
        interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&ccu CLK_BUS_OTG>;
        resets = <&ccu RST_BUS_OTG>;
        dr_mode = "otg"; /* Options: "host", "peripheral", "otg" */
        g-rx-fifo-size = <256>;
        g-np-tx-fifo-size = <32>;
        g-tx-fifo-size = <128 128 128>;
        status = "okay";
    ;
    

    Добавить комментарий

    Ваш адрес email не будет опубликован. Обязательные поля помечены *