<?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: usb-otg1 without id pin on 3.14.28</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652909#M99945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in device mode USB_ID pin can be left floating, for Linux&lt;/P&gt;&lt;P&gt;configuration one can check sect.41.2.7 Changing the Controller&lt;/P&gt;&lt;P&gt;Operation Mode attached Linux Guide.&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>Tue, 27 Sep 2016 00:49:04 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-09-27T00:49:04Z</dc:date>
    <item>
      <title>usb-otg1 without id pin on 3.14.28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652908#M99944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using a 6sl board with 3.14.28. Previously, I was running 3.0.35 and had usb-net via the usb-otg1 port working. I only use the usb-otg1 port for usb-net (aka rndis to get usb-over-ethernet working with a windows host). In 3.0.35, I did initialization as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void __init mx6_evk_init_usb(void)&lt;BR /&gt;{&lt;BR /&gt; int ret = 0;&lt;/P&gt;&lt;P&gt;imx_otg_base = MX6_IO_ADDRESS(MX6Q_USB_OTG_BASE_ADDR);&lt;/P&gt;&lt;P&gt;/* disable external charger detect,&lt;BR /&gt; * or it will affect signal quality at dp.&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;ret = gpio_request(MX6_BRD_USBOTG1_PWR, "usbotg-pwr");&lt;BR /&gt; if (ret) {&lt;BR /&gt; pr_err("failed to get GPIO MX6_BRD_USBOTG1_PWR:%d\n", ret);&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; gpio_direction_output(MX6_BRD_USBOTG1_PWR, 0);&lt;/P&gt;&lt;P&gt;ret = gpio_request(MX6_BRD_USBOTG2_PWR, "usbh1-pwr");&lt;BR /&gt; if (ret) {&lt;BR /&gt; pr_err("failed to get GPIO MX6_BRD_USBOTG2_PWR:%d\n", ret);&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; gpio_direction_output(MX6_BRD_USBOTG2_PWR, 0);&lt;/P&gt;&lt;P&gt;mx6_set_otghost_vbus_func(imx6_evk_usbotg_vbus);&lt;BR /&gt; mx6_set_host1_vbus_func(imx6_evk_usbh1_vbus);&lt;/P&gt;&lt;P&gt;#ifdef CONFIG_USB_EHCI_ARC_HSIC&lt;BR /&gt; mx6_usb_h2_init();&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With 3.14.28, I faced one issue which is that on my board, the USB_ID pin is not connected and is left floating. So my understanding is that I need to pull that pin high to get the effect of always being a slave device. So in my device tree config, I did:&lt;/P&gt;&lt;P&gt;reg_usb_otg1_vbus: regulator@0 {&lt;BR /&gt; compatible = "regulator-fixed";&lt;BR /&gt; reg = &amp;lt;0&amp;gt;;&lt;BR /&gt; regulator-name = "usb_otg1_vbus";&lt;BR /&gt; regulator-min-microvolt = &amp;lt;5000000&amp;gt;;&lt;BR /&gt; regulator-max-microvolt = &amp;lt;5000000&amp;gt;;&lt;BR /&gt; gpio = &amp;lt;&amp;amp;gpio4 0 0&amp;gt;;&lt;BR /&gt; enable-active-high;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_usbotg1: usbotg1grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt;/* MX6SL_PAD_EPDC_PWRCOM__USB_OTG1_ID 0x17059 */&lt;BR /&gt; MX6SL_PAD_FEC_RXD0__USB_OTG1_ID 0x17059 &lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above, I used FEC_RXD0 as a dummy source for OTG1_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;usbotg1 {&lt;BR /&gt; vbus-supply = &amp;lt;&amp;amp;reg_usb_otg1_vbus&amp;gt;;&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usbotg1&amp;gt;;&lt;BR /&gt; disable-over-current;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with above configuration, the result I get is:&lt;/P&gt;&lt;P&gt;root@imx6slevk:~# dmesg|grep -i usb&lt;BR /&gt;usb_otg1_vbus: 5000 mV &lt;BR /&gt;usb_otg2_vbus: 5000 mV &lt;BR /&gt;usbcore: registered new interface driver usbfs&lt;BR /&gt;usbcore: registered new interface driver hub&lt;BR /&gt;usbcore: registered new device driver usb&lt;BR /&gt;usbphy_nop1.11 supply vcc not found, using dummy regulator&lt;BR /&gt;ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver&lt;BR /&gt;usbcore: registered new interface driver usb-storage&lt;BR /&gt;ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1&lt;BR /&gt;ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00&lt;BR /&gt;hub 1-0:1.0: USB hub found&lt;BR /&gt;usbcore: registered new interface driver bcm203x&lt;BR /&gt;usbcore: registered new interface driver btusb&lt;BR /&gt;usbcore: registered new interface driver ath3k&lt;BR /&gt;usbcore: registered new interface driver usbhid&lt;BR /&gt;usbhid: USB HID core driver&lt;BR /&gt;usb_otg1_vbus: disabling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and no messages when the usb cable is plugged in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the problem is that I'm not getting the vbus regulator to be enabled. ie: the last message above shows usb_otg1_vbus disabling. But I'm not sure why that's happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To compare, with 3.0.35, I get:&lt;/P&gt;&lt;P&gt;usbcore: registered new interface driver usbfs&lt;BR /&gt;usbcore: registered new interface driver hub&lt;BR /&gt;usbcore: registered new device driver usb&lt;BR /&gt;IMX usb wakeup probe&lt;BR /&gt;Initializing USB Mass Storage driver...&lt;BR /&gt;usbcore: registered new interface driver usb-storage&lt;BR /&gt;USB Mass Storage support registered.&lt;BR /&gt;ARC USBOTG Device Controller driver (1 August 2005)&lt;BR /&gt;usb0: MAC a2:e4:59:e7:a5:41&lt;BR /&gt;usb0: HOST MAC aa:41:a2:46:a7:b4&lt;BR /&gt;g_ether gadget: controller 'fsl-usb2-udc' not recognized; trying CDC Ethernet (ECM)&lt;BR /&gt;fsl-usb2-udc: bind to driver g_ether &lt;BR /&gt;Bluetooth: Generic Bluetooth USB driver ver 0.6&lt;BR /&gt;usbcore: registered new interface driver btusb&lt;BR /&gt;usbcore: registered new interface driver usbhid&lt;BR /&gt;usbhid: USB HID core driver&lt;/P&gt;&lt;P&gt;... plug in usb cable&lt;/P&gt;&lt;P&gt;root@imx6qsabresd:~# otg udc vbus rising wakeup&lt;BR /&gt;try_wake_up_udc: udc out low power mode&lt;BR /&gt;g_ether gadget: high speed config #1: CDC Ethernet (ECM)&lt;/P&gt;&lt;P&gt;... unplug cable&lt;/P&gt;&lt;P&gt;root@imx6qsabresd:~# fsl_gadget_disconnect_event: udc enter low power mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any advice or suggestions on what to look at to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 13:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652908#M99944</guid>
      <dc:creator>jayakumar2</dc:creator>
      <dc:date>2016-09-26T13:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: usb-otg1 without id pin on 3.14.28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652909#M99945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in device mode USB_ID pin can be left floating, for Linux&lt;/P&gt;&lt;P&gt;configuration one can check sect.41.2.7 Changing the Controller&lt;/P&gt;&lt;P&gt;Operation Mode attached Linux Guide.&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>Tue, 27 Sep 2016 00:49:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652909#M99945</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-09-27T00:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: usb-otg1 without id pin on 3.14.28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652910#M99946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor. That worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 10:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652910#M99946</guid>
      <dc:creator>jayakumar2</dc:creator>
      <dc:date>2016-10-05T10:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: usb-otg1 without id pin on 3.14.28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652911#M99947</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 got message too.I am using imx7d.&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;bd7181x-rtc bd7181x-rtc: setting system clock to 2000-01-01 12:00:10 UTC (946728010)&lt;BR /&gt;usb_otg1_vbus: disabling&lt;BR /&gt;can2-3v3: disabling&lt;BR /&gt;VDD_SD1: disabling&lt;BR /&gt;wlreg_on: disabling&lt;BR /&gt;ALSA device list:&lt;BR /&gt;&amp;nbsp; No soundcards found.&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using otg ports.OTG1 goes to usb2513b hub chip.OTG2 goes to gsm module.I am using otg ports as host.I connect DP,DN ang GND pins.VBUS goes to 5V directly.OTG2 is is working and can dedect gsm module.But otg1 couldnt dedect hub chip.And I saw usb_otg1_vbus:disabling&amp;nbsp; on startup.&lt;/P&gt;&lt;P&gt;How can I fix this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 07:23:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/usb-otg1-without-id-pin-on-3-14-28/m-p/652911#M99947</guid>
      <dc:creator>emintolgasivri</dc:creator>
      <dc:date>2018-10-26T07:23:58Z</dc:date>
    </item>
  </channel>
</rss>

