LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB dr_mode understanding (https://www.linuxquestions.org/questions/linux-newbie-8/usb-dr_mode-understanding-4175636972/)

vivin_28 08-23-2018 01:17 PM

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.

vivin_28 08-24-2018 03:40 AM

Hi,

Anyone have any suggestion on this?

Thanks.

vivin_28 08-24-2018 09:38 AM

I can read the current dr_mode value on a running target, by executing the following command:

# cat /sys/firmware/devicetree/base/soc/aips-bus@02100000/usb@02184600/dr_mode

But still looking for other option and explanation for s_a_peripheral=0 and is_otg=1 value?

Thanks.


All times are GMT -5. The time now is 07:19 AM.