DART-6UL USB OTG host: Difference between revisions

From Variscite Wiki
(Created page with "{{PageHeader|DART-6UL - USB OTG Host}} {{DocImage|category1=DART-6UL|category2=Yocto}} __toc__ By default the OTG is configure to be "host". You can switch it to "peripheral...")
 
(Redirected page to DART-6UL USB OTG)
 
Line 1: Line 1:
{{PageHeader|DART-6UL - USB OTG Host}} {{DocImage|category1=DART-6UL|category2=Yocto}} __toc__
#REDIRECT [[DART-6UL_USB_OTG]]
 
By default the OTG is configure to be "host". You can switch it to  "peripheral" if you change the dr_mode in the device tree.<br>
<pre>
/* dr_mode: One of "host", "peripheral" or "otg". Defaults to "otg" */
&usbotg1 {
dr_mode = "host";
disable-over-current;
status = "okay";
};
</pre>
* build Linux out of tree.
* edit arch/arm/boot/dts/imx6qdl-var-som.dtsi
* Change the dr_mode in usbotg section
* re build the device tree with
<pre>$ make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- dtbs
</pre>
copy the file to the sd-card or re flash it to nand. See the relevant section in the WIKI.

Latest revision as of 10:06, 14 September 2016

Redirect to: