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");