<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Use USB host as Dual role</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649638#M99397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per document to do test operation, I need to change value of device of &lt;STRONG&gt;b_bus_req &amp;amp;&amp;nbsp;a_bus_drop.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But There is no even input in my path "/sys/bus/platform/devices/ci_hdrc.0/".&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/sys/bus/platform/devices/ci_hdrc.0/ path contains following sub directory &amp;amp; devices,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;driver/ modalias subsystem/ driver_override pools udc/ gadget/ power/ uevent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have enable the option "CONFIG_USB_OTG_FSM" in kernel configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other wrong configuration in my USB ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me to sort out this problem.&lt;/P&gt;&lt;P&gt;you input &lt;SPAN style="font-size: 11.0pt;"&gt;is highly appreciable.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 12:52:22 GMT</pubDate>
    <dc:creator>jigneshpatel</dc:creator>
    <dc:date>2017-04-12T12:52:22Z</dc:date>
    <item>
      <title>Use USB host as Dual role</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649636#M99395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working &amp;nbsp;on iMX6ul. I am using one USB port as host means i can connect pendrive, USB mouse,keyboard etc.&lt;/P&gt;&lt;P&gt;Now I want to use that USB port as a dual role.&lt;/P&gt;&lt;P&gt;1. USB host - pendriver, mouse etc. that is now working.&lt;/P&gt;&lt;P&gt;2. USB client - connect to PC and send data to serially . that i want to develop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i use my USB port as dual role?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 10:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649636#M99395</guid>
      <dc:creator>jigneshpatel</dc:creator>
      <dc:date>2017-04-05T10:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Use USB host as Dual role</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649637#M99396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jignesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check 044-DR-Mode-Test.txt in imx-test package&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz"&gt;www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and documentation in&lt;/P&gt;&lt;P&gt;linux/Documentation/usb/chipidea.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 10:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649637#M99396</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-04-10T10:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use USB host as Dual role</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649638#M99397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per document to do test operation, I need to change value of device of &lt;STRONG&gt;b_bus_req &amp;amp;&amp;nbsp;a_bus_drop.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But There is no even input in my path "/sys/bus/platform/devices/ci_hdrc.0/".&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/sys/bus/platform/devices/ci_hdrc.0/ path contains following sub directory &amp;amp; devices,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;driver/ modalias subsystem/ driver_override pools udc/ gadget/ power/ uevent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have enable the option "CONFIG_USB_OTG_FSM" in kernel configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other wrong configuration in my USB ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me to sort out this problem.&lt;/P&gt;&lt;P&gt;you input &lt;SPAN style="font-size: 11.0pt;"&gt;is highly appreciable.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:52:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649638#M99397</guid>
      <dc:creator>jigneshpatel</dc:creator>
      <dc:date>2017-04-12T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use USB host as Dual role</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649639#M99398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jignesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FSL-UT-USB-044-USB-DR-MODE-Test&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[cols="&amp;gt;s,6a",frame="topbot",options="header"]&lt;BR /&gt;|====================================================================&lt;BR /&gt;|Name | Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| Summary |&lt;BR /&gt;Test peripheral-only and host-only mode through dt file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| Automated |&lt;BR /&gt;No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| Kernel Config Option |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| Software Dependency |&lt;BR /&gt;N/A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| Non-default Hardware Configuration |&lt;BR /&gt;N/A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| Test Procedure |&lt;BR /&gt;Change dts file to support it (eg: arch/arm/boot/dts/imx6qdl-sabreauto.dtsi)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Test dr_mode = "host"&lt;BR /&gt;1.1 Rebuild dtb&lt;BR /&gt;# modprobe -r ci_hdrc_imx; modprobe -r phy_mxs_usb; modprobe phy_mxs_usb &amp;amp;&amp;amp; modprobe ci_hdrc_imx&lt;BR /&gt;try if peripheral function is ok, the g_serial should not be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.2 Hotplug test in low power status without host wakeup support&lt;BR /&gt;# echo mem &amp;gt; /sys/power/state&lt;BR /&gt;Plugin u-disk into Host/OTG port&lt;BR /&gt;Resume system by POWER switch and the u-disk should be found&lt;BR /&gt;For ARD, use console wakeup&lt;BR /&gt;# echo mem &amp;gt; /sys/power/state&lt;BR /&gt;Plugout u-disk from Host/OTG port&lt;BR /&gt;Resume system by POWER switch and the u-disk detach disconnet should be noticed&lt;BR /&gt;Repeat this step 3 times&lt;BR /&gt;1.3 USB mouse remote wakeup test&lt;BR /&gt;Connect USB mouse to Host/OTG port&lt;BR /&gt;# low_power_usb.sh; echo mem &amp;gt; /sys/power/state&lt;BR /&gt;Click USB mouse to wakeup system&lt;BR /&gt;Repeat this step to verify system can suspend/resume again&lt;BR /&gt;1.4 Connect/disconnect wakeup&lt;BR /&gt;# low_power_usb.sh; echo mem &amp;gt; /sys/power/state&lt;BR /&gt;Plugin or plug out USB device from Host/OTG,&lt;BR /&gt;System should be wakeup&lt;BR /&gt;5. Special for OTG port&lt;BR /&gt;# echo mem &amp;gt; /sys/power/state&lt;BR /&gt;Then only plugin a microAB to female A cable(without device) to OTG port&lt;BR /&gt;The system should NOT be wakeup&lt;BR /&gt;Resume board by POWER switch and&lt;BR /&gt;# echo mem &amp;gt; /sys/power/state&lt;BR /&gt;Connect OTG port to PC&lt;BR /&gt;The system should NOT be wakeup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Test dr_mode = "peripheral"&lt;BR /&gt;2.1 boot from rebuilt kernel and dtb and usb mouse at the board&lt;BR /&gt;# modprobe -r ci_hdrc_imx; modprobe -r phy_mxs_usb; modprobe phy_mxs_usb &amp;amp;&amp;amp; modprobe ci_hdrc_imx&lt;BR /&gt;The mouse should not be recognized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Test g_mass_storage module&lt;BR /&gt;In board&lt;BR /&gt;# dd if=/dev/zero of=/var/storage.img bs=1M count=64&lt;BR /&gt;# mkfs.vfat /var/storage.img&lt;BR /&gt;# modprobe g_mass_storage file=/var/storage.img removable=1&lt;BR /&gt;In Host PC:&lt;BR /&gt;# mkdir -p /mnt/flash&lt;BR /&gt;# umount /mnt/flash&lt;BR /&gt;# mount -t vfat /dev/sdxx /mnt/flash (sdxx is the partition exported by g_file_storage in target board whose size is near 64M)&lt;BR /&gt;# bonnie++ -d /mnt/flash -u 0:0 -s 32 -r 16&lt;BR /&gt;# dt of=/mnt/flash/test_file bs=4k limit=63m passes=20&lt;BR /&gt;Above commands should pass&lt;BR /&gt;In board:&lt;BR /&gt;# modprobe -r g_mass_storage&lt;BR /&gt;# modprobe -r ci_hdrc_imx; modprobe -r phy_mxs_usb&lt;BR /&gt;Remove the USB cable from OTG port&lt;BR /&gt;3. Repeat steps 1 &amp;amp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| Expected Result |&lt;BR /&gt;There should be no error during the test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 13:01:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-USB-host-as-Dual-role/m-p/649639#M99398</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-04-12T13:01:45Z</dc:date>
    </item>
  </channel>
</rss>

