Second USB3 port as OTG
#1
Hello everyone!

According Wiki the USB3 Port on RockPro64 could be used as an OTG port.

I'm using Type C port for OTG device pretty succesfully, however there is a demand on having two OTG Ports simultaneously.

Till now I've managed to switch USB3 port into OTG mode with editing device tree over dtedit command where following string was set from "host" to "otg":
Code:
dr_mode = "otg";

Code:
usb1 {
        compatible = "rockchip,rk3399-dwc3";
        clocks = <0x8 0x82 0x8 0x84 0x8 0xf7 0x8 0xf9>;
        clock-names = "ref_clk", "suspend_clk", "bus_clk", "grf_clk";
        power-domains = <0x15 0x18>;
        resets = <0x8 0x126>;
        reset-names = "usb3-otg";
        #address-cells = <0x2>;
        #size-cells = <0x2>;
        ranges;
        status = "okay";
        phandle = <0xf1>;

        dwc3@fe900000 {
            compatible = "snps,dwc3";
            reg = <0x0 0xfe900000 0x0 0x100000>;
            interrupts = <0x0 0x6e 0x4 0x0>;
            dr_mode = "otg";
            phys = <0x2b 0x2c>;
            phy-names = "usb2-phy", "usb3-phy";
            phy_type = "utmi_wide";
            snps,dis_enblslpm_quirk;
            snps,dis-u2-freeclk-exists-quirk;
            snps,dis_u2_susphy_quirk;
            snps,dis-del-phy-power-chg-quirk;
            snps,tx-ipgap-linecheck-dis-quirk;
            snps,xhci-slow-suspend-quirk;
            snps,xhci-trb-ent-quirk;
            snps,usb3-warm-reset-on-resume-quirk;
            status = "okay";
            phandle = <0xf2>;
        };
    };

After that I can see the second device under /sys/class/udc:
Code:
rock64@rockpro64:~$ ls /sys/class/udc
fe800000.dwc3  fe900000.dwc3

However the second USB3 device (fe900000.dwc) doesn't work same as Type C port, no device appears there at all (I'm setting it as a mass storage).

So my question is:
is it generally a good idea to use two USB3 ports as OTG devices simultaneously?
If so, what could lack in setting it up?
  Reply


Messages In This Thread
Second USB3 port as OTG - by softsr - 05-30-2022, 07:29 AM
RE: Second USB3 port as OTG - by softsr - 05-31-2022, 09:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ROCKPro64 has Lithium Battery Port yes or no? anfast 3 6,300 06-25-2020, 02:09 PM
Last Post: anfast
  USB3 and USB-C sharing bus? erols 1 3,223 07-08-2019, 08:56 PM
Last Post: tllim
  Lan Port Problem acwild 0 1,882 01-26-2019, 06:27 AM
Last Post: acwild
  Usb3 to sata and USB C to sata / openmedia RockPro64Newbie 1 3,073 01-19-2019, 04:45 PM
Last Post: oreggin
  how to use the eDP port to drive a display? nemster 0 2,190 12-25-2018, 04:44 PM
Last Post: nemster
  u-boot serial port speed? zener 2 4,597 10-06-2018, 12:47 PM
Last Post: zener

Forum Jump:


Users browsing this thread: 2 Guest(s)