I tested Linaro 13.04 kernel on my Exynos5250 and found that USB device is not found (i.e. nothing in lsusb). It used to work with Linaro 13.01. dmesg showed that s3c-usbphy can't configure phy mode (see below). Looking at the samsung-usbphy.c file, it looks like sysreg is not defined in device tree file. I am thinking that we are missing one parameter for usbphy-sys in the exynos5250.dtsi, by comparing a patch from http://comments.gmane.org/gmane.linux.usb.general/82597.
Any comment?
usbphy {
#address-cells = <1>;
#size-cells = <1>;
compatible = "samsung,exynos5250-usbphy";
reg = <0x12130000 0x100>, <0x12100000 0x100>;
ranges;
usbphy-sys {
/* USB device and host PHY_CONTROL registers */
reg = <0x10040704 0x8>;
};
};
-Wei
=== dmesg ===
samsung-usbphy s3c-usbphy: Can't get usb-phy sysreg cfg register
samsung-usbphy s3c-usbphy: Can't configure specified phy mode
samsung-usbphy s3c-usbphy: Can't configure specified phy mode
samsung-usbphy s3c-usbphy: Already power on PHY
samsung-usbphy s3c-usbphy: Can't configure specified phy mode
samsung-usbphy s3c-usbphy: Already power on PHY
=== code snip from samsung-usbphy.c ===
/*
* Not returning error code here, since this situation is not fatal.
* Few SoCs may not have this switch available
*/
if (sphy->sysreg == NULL)
dev_warn(sphy->dev, "Can't get usb-phy sysreg cfg register\n");
On 04/25/2013 09:23 PM, Wei Huang wrote:
I tested Linaro 13.04 kernel on my Exynos5250 and found that USB device is not found (i.e. nothing in lsusb). It used to work with Linaro 13.01. dmesg showed that s3c-usbphy can't configure phy mode (see below). Looking at the samsung-usbphy.c file, it looks like sysreg is not defined in device tree file. I am thinking that we are missing one parameter for usbphy-sys in the exynos5250.dtsi, by comparing a patch from http://comments.gmane.org/gmane.linux.usb.general/82597.
Thanks for the catch. I will update the same in Linaro kernel.
Do you get usb to working for you when you apply the additional reg entry?
With <0x10050230 0x4> added to usbphy-sys in exynos5250.dtsi file, s3c-usbphy doesn't complain anymore. However I still can't find my usb3 device, which might be a configuration issue.
-Wei
-----Original Message----- From: Tushar Behera [mailto:tushar.behera@linaro.org] Sent: Friday, April 26, 2013 1:16 AM To: Wei Huang Cc: linaro-kernel@lists.linaro.org Subject: Re: USB missing from 13.04
On 04/25/2013 09:23 PM, Wei Huang wrote:
I tested Linaro 13.04 kernel on my Exynos5250 and found that USB device is not found (i.e. nothing in lsusb). It used to work with Linaro 13.01. dmesg showed that s3c-usbphy can't configure phy mode (see below). Looking at the samsung-usbphy.c file, it looks like sysreg is not defined in device tree file. I am thinking that we are missing one parameter for usbphy-sys in the exynos5250.dtsi, by comparing a patch from
http://comments.gmane.org/gmane.linux.usb.general/82597.
Thanks for the catch. I will update the same in Linaro kernel.
Do you get usb to working for you when you apply the additional reg entry?
-- Tushar Behera
linaro-kernel@lists.linaro.org