[Linux-exynos] Exynos 5410 USB clocking

Ben Gamari ben at smart-cactus.org
Sun Mar 15 04:34:56 CET 2015


I'm working on porting[1] HardKernel's Exynos 5410 patchset forward to
3.19 with an eye towards pushing it upstream. At this point I have my
machine booting but have been held back by a lack of documentation. In
particular, I am not certain of the location of the CLK_USBH20,
CLK_USBD300, and CLK_USBD301 gate bits. The public documentation I have
been able to find suggests that these are bits 18 and 19 in
CLK_GATE_IP_FSYS, which agrees with the 5420 clock tree.

That being said, I've noticed some unfortunate inconsistencies between
the 5420 and the 5410. Moreover, the driver fails to initialize with
[2]. After boot there is a stream of,

    [    4.224589] usb usb2-port1: over-current condition
    [    4.284588] usb usb4-port1: over-current condition
    [    4.449584] usb usb2-port1: over-current condition
    [    4.509562] usb usb4-port1: over-current condition

messages, which is likely unrelated.

Any help would be greatly appreciated.

Cheers,

- Ben


[1] https://github.com/bgamari/linux/commits/odroid-3.19
[2] Boot messages:

[    1.278647] usbcore: registered new interface driver cdc_ether
[    1.284380] usbcore: registered new interface driver net1080
[    1.290012] usbcore: registered new interface driver zaurus
[    1.295562] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    1.303431] soc:usb at 12000000 supply vdd33 not found, using dummy regulator
[    1.309776] soc:usb at 12000000 supply vdd10 not found, using dummy regulator
[    1.721762] soc:usb at 12400000 supply vdd33 not found, using dummy regulator
[    1.727227] soc:usb at 12400000 supply vdd10 not found, using dummy regulator
[    2.136843] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.140897] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
[    2.148901] xhci-hcd xhci-hcd.2.auto: irq 98, io mem 0x12000000
[    2.154763] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.161169] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.168355] usb usb1: Product: xHCI Host Controller
[    2.173209] usb usb1: Manufacturer: Linux 3.19.0+ xhci-hcd
[    2.178672] usb usb1: SerialNumber: xhci-hcd.2.auto
[    2.184315] hub 1-0:1.0: USB hub found
[    2.187337] hub 1-0:1.0: 1 port detected
[    2.191662] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.196643] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
[    2.204484] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    2.211035] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.218218] usb usb2: Product: xHCI Host Controller
[    2.223073] usb usb2: Manufacturer: Linux 3.19.0+ xhci-hcd
[    2.228536] usb usb2: SerialNumber: xhci-hcd.2.auto
[    2.234063] hub 2-0:1.0: USB hub found
[    2.237221] hub 2-0:1.0: 1 port detected
[    2.242309] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[    2.246511] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3
[    2.254424] xhci-hcd xhci-hcd.5.auto: irq 99, io mem 0x12400000
[    2.260206] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    2.266790] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.273978] usb usb3: Product: xHCI Host Controller
[    2.278833] usb usb3: Manufacturer: Linux 3.19.0+ xhci-hcd
[    2.284296] usb usb3: SerialNumber: xhci-hcd.5.auto
[    2.290698] hub 3-0:1.0: USB hub found
[    2.293024] hub 3-0:1.0: 1 port detected
[    2.297380] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[    2.302369] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4
[    2.310198] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    2.316751] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.323945] usb usb4: Product: xHCI Host Controller
[    2.328801] usb usb4: Manufacturer: Linux 3.19.0+ xhci-hcd
[    2.334265] usb usb4: SerialNumber: xhci-hcd.5.auto
[    2.340658] hub 4-0:1.0: USB hub found
[    2.342983] hub 4-0:1.0: 1 port detected
[    2.348214] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.353366] ehci-exynos: EHCI EXYNOS driver
[    2.357686] exynos-ehci 12110000.usb: EHCI Host Controller
[    2.362999] exynos-ehci 12110000.usb: new USB bus registered, assigned bus number 5
[    2.375168] exynos-ehci 12110000.usb: can't setup: -110
[    2.378915] exynos-ehci 12110000.usb: USB bus 5 deregistered
[    2.384581] exynos-ehci 12110000.usb: Failed to add USB HCD
[    2.390143] exynos-ehci: probe of 12110000.usb failed with error -110
[    2.396606] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.402711] ohci-exynos: OHCI EXYNOS driver
[    2.407009] exynos-ohci 12120000.usb: USB Host Controller
[    2.412254] exynos-ohci 12120000.usb: new USB bus registered, assigned bus number 5
[    2.420836] exynos-ohci 12120000.usb: irq 97, io mem 0x12120000
[    2.479557] exynos-ohci 12120000.usb: init err (00000000 0000)
[    2.483910] exynos-ohci 12120000.usb: can't start
[    2.488693] exynos-ohci 12120000.usb: startup error -75
[    2.493832] exynos-ohci 12120000.usb: USB bus 5 deregistered
[    2.499470] exynos-ohci 12120000.usb: Failed to add USB HCD
[    2.505027] exynos-ohci: probe of 12120000.usb failed with error -75
[    2.511531] usbcore: registered new interface driver usb-storage
[    2.524541] usb3503 usb_hub_bus:usb_hub: switched to HUB mode
[    2.528805] usb3503 usb_hub_bus:usb_hub: usb3503_probe: probed in hub mode
[    2.536191] mousedev: PS/2 mouse device common for all mice
[    2.543842] device-mapper: ioctl: 4.29.0-ioctl (2014-10-28) initialised: dm-devel at redhat.com
[    2.551128] Driver 'mmcblk' needs updating - please use bus_type methods
[    2.557542] Synopsys Designware Multimedia Card Interface Driver
[    2.564048] dwmmc_exynos 12200000.mmc: IDMAC supports 32-bit address mode.
[    2.571164] usb usb2-port1: over-current condition
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://lists.linux-exynos.org/pipermail/linux-exynos/attachments/20150314/6c17abb2/attachment.asc>


More information about the Linux-exynos mailing list