USB Device Mode
#2
I made progress. The default device tree sets the first dwc3 controller as "otg." Unfortunately this seems to not have much effect. I've tried looking for a software switch and also tried plugging the board in as a device. How do you set this without needing a reboot?

Changing the two DWC3 nodes in the file "arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi:"

Code:
&usbdrd3_0 {
        status = "okay";
};

&usbdrd_dwc3_0 {
        status = "okay";
        dr_mode = "peripheral";
};

&usbdrd3_1 {
        status = "okay";
};

&usbdrd_dwc3_1 {
Code:
        status = "okay";
Code:
        dr_mode = "peripheral";
Code:
};

They are both listed in /sys/class/udc:
Code:
# ls /sys/class/udc
fe800000.usb  fe900000.usb

But, again, I'd like to change mode without needing to reboot. I'm also unsure how compatible the Type-C port is.


Messages In This Thread
USB Device Mode - by R0b0t1 - 09-18-2020, 12:12 PM
RE: USB Device Mode - by R0b0t1 - 09-18-2020, 07:45 PM
RE: USB Device Mode - by R0b0t1 - 09-19-2020, 09:21 AM
RE: USB Device Mode - by guannais - 10-30-2020, 07:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best device image for docker usage? Dreamwalker 1 1,580 05-01-2022, 04:08 PM
Last Post: tllim
  Device unable to boot Lunix33 9 7,329 09-23-2021, 01:38 AM
Last Post: LMM
  Device bricked? TheHunter 1 2,388 03-10-2021, 05:27 PM
Last Post: TheHunter
  PCIe x4 mode - Lane 3 failure acdkyn 1 2,793 04-24-2020, 01:32 PM
Last Post: kuleszdl
  Non burst mode in MIPI DSI skumar 0 1,977 06-06-2019, 12:54 AM
Last Post: skumar
  Clarification of type-c superspeed device mode cpwrunner 4 6,329 07-03-2018, 11:44 AM
Last Post: cpwrunner

Forum Jump:


Users browsing this thread: 1 Guest(s)