All of lore.kernel.org
 help / color / mirror / Atom feed
* PROBLEM: am3517 usb-ohci not working
@ 2016-10-05  6:36 Łukasz Pułka
       [not found] ` <CALX2uoP-RN6SmEDOVcaBpJv+4kD2dY_iqxGjZu-5JFxdRAVfjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Łukasz Pułka @ 2016-10-05  6:36 UTC (permalink / raw)
  To: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

Hi,

I am trying to make 4.4 kernel working with old am3517 SOM
(http://www.dave.eu/products/som/texas_instruments/am3505-am3517_lizard).

Most of the peripherals are working know - however I got stuck with
usb ohci driver.

Both USB HS ports are connected to ISP1105, hardware is working with
old 2.6.32 based firmware.
I copied the MUXing (muxing is done by u-boot) and TLL/PHY
initialization from old kernel.

My DT entries are:

/ {
        hsusb1_power: hsusb1_power_reg {
                compatible = "regulator-fixed";
                regulator-name = "hsusb1_vbus";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
        };

        hsusb2_power: hsusb2_power_reg {
                compatible = "regulator-fixed";
                regulator-name = "hsusb2_vbus";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
        };

        hsusb1_phy: hsusb1_phy {
                compatible = "usb-nop-xceiv";
                vcc-supply = <&hsusb1_power>;
        };

        hsusb2_phy: hsusb2_phy {
                compatible = "usb-nop-xceiv";
                vcc-supply = <&hsusb2_power>;
        };
};


&usbhshost {
        port1-mode = "ohci-phy-6pin-datse0";
        port2-mode = "ohci-phy-6pin-datse0";
};

&usbhsehci {
        status = "disabled";
};


CORE_120M_FCLK clock is enabled.

Interrupts are working and kernel is notified when I plug in usb
drive. However usb device is it not enumerated.

I got following debug messages:
usb usb1-port1: Cannot enable. Maybe the USB cable is bad?

and finally:
usb usb1-port1: unable to enumerate USB device

also I can see log like this:
ohci-omap3 48064400.ohci: GetStatus roothub.portstatus [0] =
0x00120101 PRSC PESC PPS CCS

GetStatus message appears multiple times when usb device is plugged in.

I can see FSLSLINESTATE in TLL_CHANNEL_CONF changes when usb device is
connected:

./devmem2 0x48062040
Read at address  0x48062040 (0xb6f9b040): 0x10000CDB

Can you point me what else should I check to make USB HS working in ohci mode?

Thank you  and best regards,
Luke
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: am3517 usb-ohci not working
       [not found] ` <CALX2uoP-RN6SmEDOVcaBpJv+4kD2dY_iqxGjZu-5JFxdRAVfjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-10-05 14:10   ` Tony Lindgren
       [not found]     ` <20161005141051.ywtf6ebakhhvrmst-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2016-10-05 14:10 UTC (permalink / raw)
  To: Łukasz Pułka
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

* Łukasz Pułka <lukasz-u2dlg1C4t1k@public.gmane.org> [161004 23:36]:
> 
> Can you point me what else should I check to make USB HS working in ohci mode?

Sounds like you're pretty close, in addition to the
pin muxing and PHY configuration, check also that you
have proper VBUS coming to the ports.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: am3517 usb-ohci not working
       [not found]     ` <20161005141051.ywtf6ebakhhvrmst-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
@ 2016-10-07 10:13       ` Łukasz Pułka
       [not found]         ` <CALX2uoMnxQ00jiEbMEg4eOi8U0oxtQz1qip8RqcDF8Px2eKq0w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Łukasz Pułka @ 2016-10-07 10:13 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

> Sounds like you're pretty close, in addition to the
> pin muxing and PHY configuration, check also that you
> have proper VBUS coming to the ports.

Thank you. It was hardware problem
Finally I received the schematics of the PHY connection  from the board vendor.
Suspend pin of PHY was pulled up and connected to gpio the expander.
After forcing suspend pin to "0", USB HS works like a charm.

Luke
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: am3517 usb-ohci not working
       [not found]         ` <CALX2uoMnxQ00jiEbMEg4eOi8U0oxtQz1qip8RqcDF8Px2eKq0w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-10-07 13:45           ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2016-10-07 13:45 UTC (permalink / raw)
  To: Łukasz Pułka
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

* Łukasz Pułka <lukasz-u2dlg1C4t1k@public.gmane.org> [161007 03:14]:
> > Sounds like you're pretty close, in addition to the
> > pin muxing and PHY configuration, check also that you
> > have proper VBUS coming to the ports.
> 
> Thank you. It was hardware problem
> Finally I received the schematics of the PHY connection  from the board vendor.
> Suspend pin of PHY was pulled up and connected to gpio the expander.
> After forcing suspend pin to "0", USB HS works like a charm.

OK good to hear.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-07 13:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05  6:36 PROBLEM: am3517 usb-ohci not working Łukasz Pułka
     [not found] ` <CALX2uoP-RN6SmEDOVcaBpJv+4kD2dY_iqxGjZu-5JFxdRAVfjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-05 14:10   ` Tony Lindgren
     [not found]     ` <20161005141051.ywtf6ebakhhvrmst-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-10-07 10:13       ` Łukasz Pułka
     [not found]         ` <CALX2uoMnxQ00jiEbMEg4eOi8U0oxtQz1qip8RqcDF8Px2eKq0w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-07 13:45           ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.