This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: USB VBUS error

Part Number: AM3352
Other Parts Discussed in Thread: TPS65217

Tool/software: Linux

Struggling with getting USB working when transition from old TISDK without Device tree to new with Device tree support. The TISDK Im testing now is 04.01.00.06. I finally got the USB ports recognized by the kernel.

I figure I have some problem with VBUS due to the following line from the boot:

[ 2.218568] musb-hdrc musb-hdrc.0: VBUS_ERROR in a_wait_vrise (88, <AValid), retry #3, port1 0008010c

I dont see any voltage on the USB. And when I measure the voltage at USB0_DRVVBUS I see 0.8V. 

This is how the scematics look, I have tried adding 200uF at C118.

This is the output from the boot:

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.41-ge3a80a1c5c (henrik@henrik-dekstop) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #2 PREEMPT Tue Dec 19 13:19:06 CET 2017
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: TI AM335x EVM
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x83800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (neon)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/mtdblock9 rw rootfstype=jffs2
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 67492K/131072K available (8192K kernel code, 285K rwdata, 2436K rodata, 1024K init, 281K bss, 14428K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB)
[ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB)
[ 0.000000] .data : 0xc0d00000 - 0xc0d47510 ( 286 kB)
[ 0.000000] .bss : 0xc0d47510 - 0xc0d8dcf4 ( 282 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000032] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000079] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000104] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000480] clocksource_probe: no matching clocksources found
[ 0.000850] Console: colour dummy device 80x30
[ 0.000936] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[ 0.067769] pid_max: default: 32768 minimum: 301
[ 0.068093] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.068121] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.069958] CPU: Testing write buffer coherency: ok
[ 0.070728] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.072787] EFI services will not be available.
[ 0.076234] devtmpfs: initialized
[ 0.105383] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.106263] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.106327] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.114294] pinctrl core: initialized pinctrl subsystem
[ 0.117270] NET: Registered protocol family 16
[ 0.122257] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.154402] omap_hwmod: debugss: _wait_target_disable failed
[ 0.247853] cpuidle: using governor ladder
[ 0.277834] cpuidle: using governor menu
[ 0.293565] OMAP GPIO hardware version 0.1
[ 0.325092] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
[ 0.329240] No ATAGs?
[ 0.329287] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.399371] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.406108] usbcore: registered new interface driver usbfs
[ 0.406301] usbcore: registered new interface driver hub
[ 0.406566] usbcore: registered new device driver usb
[ 0.407405] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.407662] media: Linux media interface: v0.10
[ 0.407959] Linux video capture interface: v2.00
[ 0.408080] pps_core: LinuxPPS API ver. 1 registered
[ 0.408100] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.408162] PTP clock support registered
[ 0.408272] EDAC MC: Ver: 3.0.0
[ 0.410781] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.411547] Advanced Linux Sound Architecture Driver Initialized.
[ 0.414401] clocksource: Switched to clocksource timer1
[ 0.441696] NET: Registered protocol family 2
[ 0.443498] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.443560] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.443610] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.443778] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.443828] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.444166] NET: Registered protocol family 1
[ 0.445278] RPC: Registered named UNIX socket transport module.
[ 0.445308] RPC: Registered udp transport module.
[ 0.445326] RPC: Registered tcp transport module.
[ 0.445343] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.447303] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.452959] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.474211] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.476805] NFS: Registering the id_resolver key type
[ 0.476902] Key type id_resolver registered
[ 0.476922] Key type id_legacy registered
[ 0.477035] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.477767] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.482961] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.483004] io scheduler noop registered
[ 0.483025] io scheduler deadline registered
[ 0.483424] io scheduler cfq registered (default)
[ 0.486647] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.652621] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.661984] console [ttyS0] disabled
[ 0.662185] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 1.265948] console [ttyS0] enabled
[ 1.273141] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.280193] [drm] Initialized
[ 1.318060] brd: module loaded
[ 1.338035] loop: module loaded
[ 1.347249] libphy: Fixed MDIO Bus: probed
[ 1.434548] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.440725] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.448811] libphy: 4a101000.mdio: probed
[ 1.452897] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 1.463893] cpsw 4a100000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property
[ 1.472529] cpsw 4a100000.ethernet: Detected MACID = 54:4a:16:ce:70:ad
[ 1.479603] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.490624] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.497426] ehci-pci: EHCI PCI platform driver
[ 1.506559] 47401300.usb-phy supply vcc not found, using dummy regulator
[ 1.537368] mousedev: PS/2 mouse device common for all mice
[ 1.543887] i2c /dev entries driver
[ 1.551928] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.561522] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.572599] NET: Registered protocol family 10
[ 1.580423] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.588571] NET: Registered protocol family 17
[ 1.593623] Key type dns_resolver registered
[ 1.598666] omap_voltage_late_init: Voltage driver support not added
[ 1.618250] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.623483] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.633855] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 1.640523] nand: Micron MT29F4G08ABADAH4
[ 1.644660] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.652344] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 1.657954] 10 ofpart partitions found on MTD device omap2-nand.0
[ 1.664093] Creating 10 MTD partitions on "omap2-nand.0":
[ 1.669595] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.678316] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.687639] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.696638] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.705634] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.714887] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.723502] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.732173] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.741552] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.753137] 0x000000a00000-0x000010000000 : "NAND.file-system"
[ 1.900305] random: fast init done
[ 1.914868] tps65217 0-0024: TPS65217 ID 0xf version 1.2
[ 1.920363] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz
[ 1.943304] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.948820] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.958723] hub 1-0:1.0: USB hub found
[ 1.962609] hub 1-0:1.0: 1 port detected
[ 1.972709] hctosys: unable to open rtc device (rtc0)
[ 1.979941] ALSA device list:
[ 1.983033] No soundcards found.
[ 2.218568] musb-hdrc musb-hdrc.0: VBUS_ERROR in a_wait_vrise (88, <AValid), retry #3, port1 0008010c
[ 2.589331] jffs2: Empty flash at 0x0042c394 ends at 0x0042c800
[ 4.014510] jffs2: notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 4.030913] VFS: Mounted root (jffs2 filesystem) on device 31:9.
[ 4.037808] devtmpfs: mounted
[ 4.042702] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)