LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2018, 01:17 PM   #1
vivin_28
LQ Newbie
 
Registered: Nov 2017
Location: india
Posts: 8

Rep: Reputation: Disabled
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.
 
Old 08-24-2018, 03:40 AM   #2
vivin_28
LQ Newbie
 
Registered: Nov 2017
Location: india
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi,

Anyone have any suggestion on this?

Thanks.
 
Old 08-24-2018, 09:38 AM   #3
vivin_28
LQ Newbie
 
Registered: Nov 2017
Location: india
Posts: 8

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
device driver, device tree, kernel 4.1, usb



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need understanding file structure of usb multi boot linux live mia_tech Linux - General 3 02-09-2016 07:15 PM
usb mouse not working - need help understanding dmesg reults chemicaluser Linux - Hardware 3 08-03-2011 11:49 PM
Reading and understanding data send to USB device Dahoon Linux - Hardware 1 06-15-2009 11:11 PM
understanding USB storage devices linuxdeveloper29 Linux - Hardware 1 10-27-2008 03:17 AM
Understanding USB vcore Linux - Newbie 6 04-11-2008 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration