USB dr_mode understanding
Hi,
How to confirm the configured USB otg dr_mode option in dts is correctly fixed or not?
I am getting following value for dr_mode = "peripheral" in the dts for usbotg1 and 2.
# cat /sys/bus/platform/devices/ci_hdrc.0/udc/ci_hdrc.0/is_a_peripheral
0
# cat /sys/bus/platform/devices/ci_hdrc.0/udc/ci_hdrc.0/is_otg
1
Configuring dr_mode = "host" in the dts also resulting is_a_peripheral=0 and is_otg=1.
Or Can I check the following entry?
$cat /sys/firmware/devicetree/base/soc/aips-bus@02100000/usb@02184200/dr_mode
If you aware of any better option, please let me know. Please explain what it means is_a_peripheral=0 and is_otg=1?
Thanks.
|