09-18-2020, 07:45 PM
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:"
They are both listed in /sys/class/udc:
But, again, I'd like to change mode without needing to reboot. I'm also unsure how compatible the Type-C port is.
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.