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/AM3358: 4G USB Simcom module IC detect issue

Part Number: AM3358
Other Parts Discussed in Thread: AM3352, TPS65217, TPS2051, TPD4S012

Tool/software: Linux

Hello Ti ,

we interfaced simcom 7600 module to  OCTAVO AM3358  of USB1  . am335x unable to detect  module  through USB1 .

we have sim7600 usb dongle , I placed dongle on USB0  of beaglebone Usb  , it has detected  simcom model  and shown in dmesg and lsusb .

In our custom board , we placed the module to USB1 . 

In dmesg log , observed error related to usb1 error

[ 2.712922] usb 1-1: device descriptor read/64, error -71
[ 2.932785] usb 1-1: device descriptor read/64, error -71
[ 3.265047] usb 1-1: device descriptor read/64, error -71
[ 3.485000] usb 1-1: device descriptor read/64, error -71
[ 4.113057] usb 1-1: device not accepting address 4, error -71
[ 4.640914] usb 1-1: device not accepting address 5, error -71
[ 4.653054] usb usb1-port1: unable to enumerate USB device

kernel version : 4.14.79-gbde58ab01e .

  • Hi,
    Is USB11_DP and USB1_DM directly connected between SoC and USB dongle? No cables, no connectors, nothing else in signal path?
  • Hello DK,

    yes it is directly connected to module from  am3358 processor

  • Hello DK ,

    previously  i posted title mistakenly as usb dongle , we interface simcom 7600 module directly to am3358 . 


    posting dmesg for reference related to usb 1 error ,.

    I checked the module , externally by uart to see AT message , it responded OK response . so module is working fine in board .

    why kernel is unable to detect the module through USB1 ?


    In am335x-bone-common.dtsi file ,

    usb related settings of device tree -

    &usb {
    status = "okay";
    };

    &usb_ctrl_mod {
    status = "okay";
    };

    &usb0_phy {
    status = "okay";
    };

    &usb1_phy {
    status = "okay";
    };

    &usb0 {
    status = "okay";
    dr_mode = "peripheral";
    };

    &usb1 {
    status = "okay";
    dr_mode = "host";
    };

    should i change anything in device tree source files ?

    root@am335x-evm:~# dmesg
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 4.14.79-gbde58ab01e (root@sitara) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Mon May 20 12:05:24 IST 2019
    [ 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 BeagleBone Black
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] efi: Getting EFI parameters from FDT:
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] cma: Reserved 48 MiB at 0x9d000000
    [ 0.000000] On node 0 totalpages: 131072
    [ 0.000000] free_area_init_node: node 0, pgdat c0d4d4b0, node_mem_map dcb61000
    [ 0.000000] Normal zone: 1152 pages used for memmap
    [ 0.000000] Normal zone: 0 pages reserved
    [ 0.000000] Normal zone: 131072 pages, LIFO batch:31
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (sgx neon)
    [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=a07672d2-02 rw rootfstype=ext4 rootwait
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 456928K/524288K available (8192K kernel code, 319K rwdata, 2484K rodata, 1024K init, 267K bss, 18208K reserved, 49152K cma-reserved, 0K highmem)
    [ 0.000000] Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
    lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    .text : 0xc0008000 - 0xc0900000 (9184 kB)
    .init : 0xc0c00000 - 0xc0d00000 (1024 kB)
    .data : 0xc0d00000 - 0xc0d4fd40 ( 320 kB)
    .bss : 0xc0d4fd40 - 0xc0d92a8c ( 268 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Tasks RCU enabled.
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 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.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000031] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000041] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000190] timer_probe: no matching timers found
    [ 0.000377] Console: colour dummy device 80x30
    [ 0.000403] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [ 0.000409] This ensures that you still see kernel messages. Please
    [ 0.000414] update your kernel commandline.
    [ 0.000443] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [ 0.089233] pid_max: default: 32768 minimum: 301
    [ 0.089402] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.089416] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.090117] CPU: Testing write buffer coherency: ok
    [ 0.090178] CPU0: Spectre v2: using BPIALL workaround
    [ 0.090800] Setting up static identity map for 0x80100000 - 0x80100060
    [ 0.090936] Hierarchical SRCU implementation.
    [ 0.091238] EFI services will not be available.
    [ 0.092452] devtmpfs: initialized
    [ 0.099169] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
    [ 0.099717] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.100006] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.100028] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.103345] pinctrl core: initialized pinctrl subsystem
    [ 0.104001] DMI not present or invalid.
    [ 0.104381] NET: Registered protocol family 16
    [ 0.106375] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.118796] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.171129] cpuidle: using governor ladder
    [ 0.171161] cpuidle: using governor menu
    [ 0.174820] gpio gpiochip0: (gpio): added GPIO chardev (254:0)
    [ 0.174902] gpiochip_setup_dev: registered GPIOs 0 to 31 on device: gpiochip0 (gpio)
    [ 0.174960] OMAP GPIO hardware version 0.1
    [ 0.175656] gpio gpiochip1: (gpio): added GPIO chardev (254:1)
    [ 0.175726] gpiochip_setup_dev: registered GPIOs 32 to 63 on device: gpiochip1 (gpio)
    [ 0.176381] gpio gpiochip2: (gpio): added GPIO chardev (254:2)
    [ 0.176452] gpiochip_setup_dev: registered GPIOs 64 to 95 on device: gpiochip2 (gpio)
    [ 0.177078] gpio gpiochip3: (gpio): added GPIO chardev (254:3)
    [ 0.177164] gpiochip_setup_dev: registered GPIOs 96 to 127 on device: gpiochip3 (gpio)
    [ 0.183808] No ATAGs?
    [ 0.183823] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.195174] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.195680] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator0[0]'
    [ 0.197885] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [ 0.197941] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
    [ 0.198048] media: Linux media interface: v0.10
    [ 0.198091] Linux video capture interface: v2.00
    [ 0.198184] pps_core: LinuxPPS API ver. 1 registered
    [ 0.198192] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.198212] PTP clock support registered
    [ 0.198242] EDAC MC: Ver: 3.0.0
    [ 0.198711] dmi: Firmware registration failed.
    [ 0.199088] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.199555] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.200638] clocksource: Switched to clocksource timer1
    [ 0.207622] NET: Registered protocol family 2
    [ 0.208292] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.208338] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.208377] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.208469] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.208486] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.208623] NET: Registered protocol family 1
    [ 0.209037] RPC: Registered named UNIX socket transport module.
    [ 0.209050] RPC: Registered udp transport module.
    [ 0.209056] RPC: Registered tcp transport module.
    [ 0.209061] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.209075] PCI: CLS 0 bytes, default 64
    [ 0.210041] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [ 0.210153] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.211597] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [ 0.215252] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.216032] NFS: Registering the id_resolver key type
    [ 0.216075] Key type id_resolver registered
    [ 0.216082] Key type id_legacy registered
    [ 0.216129] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.217972] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [ 0.217991] io scheduler noop registered
    [ 0.217999] io scheduler deadline registered
    [ 0.218192] io scheduler cfq registered (default)
    [ 0.218201] io scheduler mq-deadline registered
    [ 0.218208] io scheduler kyber registered
    [ 0.219273] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.221530] of_get_named_gpiod_flags: parsed 'enable-gpios' property of node '/clk_mcasp0[0]' - status (0)
    [ 0.263495] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 0.266233] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [ 0.900059] console [ttyS0] enabled
    [ 0.905254] omap_rng 48310000.rng: Random Number Generator ver. 20
    [ 0.922498] brd: module loaded
    [ 0.931464] loop: module loaded
    [ 0.936392] mdio_bus fixed-0: GPIO lookup for consumer reset
    [ 0.936403] mdio_bus fixed-0: using lookup tables for GPIO lookup
    [ 0.936410] mdio_bus fixed-0: lookup for GPIO reset failed
    [ 0.936432] libphy: Fixed MDIO Bus: probed
    [ 0.955780] mdio_bus 4a101000.mdio: GPIO lookup for consumer reset
    [ 0.955792] mdio_bus 4a101000.mdio: using lookup tables for GPIO lookup
    [ 0.955799] mdio_bus 4a101000.mdio: lookup for GPIO reset failed
    [ 1.010713] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [ 1.018414] davinci_mdio 4a101000.mdio: no live phy, scanning all
    [ 1.024994] davinci_mdio: probe of 4a101000.mdio failed with error -5
    [ 1.032170] cpsw 4a100000.ethernet: Detected MACID = 34:03:de:86:47:31
    [ 1.038827] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [ 1.045265] cpsw 4a100000.ethernet: ALE Table size 1024
    [ 1.050548] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [ 1.059192] i2c /dev entries driver
    [ 1.063231] IR NEC protocol handler initialized
    [ 1.067786] IR RC5(x/sz) protocol handler initialized
    [ 1.072894] IR RC6 protocol handler initialized
    [ 1.077441] IR JVC protocol handler initialized
    [ 1.081998] IR Sony protocol handler initialized
    [ 1.086632] IR SANYO protocol handler initialized
    [ 1.091362] IR Sharp protocol handler initialized
    [ 1.096081] IR MCE Keyboard/mouse protocol handler initialized
    [ 1.101946] IR XMP protocol handler initialized
    [ 1.107899] cpuidle: enable-method property 'ti,am3352' found operations
    [ 1.115032] sdhci: Secure Digital Host Controller Interface driver
    [ 1.121272] sdhci: Copyright(c) Pierre Ossman
    [ 1.126055] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [ 1.126063] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [ 1.126094] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [ 1.126166] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.130857] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [ 1.130862] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [ 1.130872] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [ 1.130880] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [ 1.130886] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [ 1.130893] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [ 1.191416] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [ 1.191428] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [ 1.191441] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'
    [ 1.191449] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'
    [ 1.191455] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [ 1.191461] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
    [ 1.191470] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [ 1.191476] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [ 1.191482] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'
    [ 1.191489] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'
    [ 1.191494] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [ 1.191499] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
    [ 1.250873] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 1.257216] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led2[0]' - status (0)
    [ 1.257230] no flags found for gpios
    [ 1.257358] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led3[0]' - status (0)
    [ 1.257364] no flags found for gpios
    [ 1.257472] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led4[0]' - status (0)
    [ 1.257477] no flags found for gpios
    [ 1.257556] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led5[0]' - status (0)
    [ 1.257561] no flags found for gpios
    [ 1.257920] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.271848] NET: Registered protocol family 10
    [ 1.277511] Segment Routing with IPv6
    [ 1.281423] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [ 1.291259] NET: Registered protocol family 17
    [ 1.296046] Key type dns_resolver registered
    [ 1.300581] omap_voltage_late_init: Voltage driver support not added
    [ 1.315965] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 1.328721] mmc0: new high speed SDHC card at address aaaa
    [ 1.334736] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
    [ 1.341830] mmc1: new high speed MMC card at address 0001
    [ 1.347403] mmcblk0: p1 p2
    [ 1.352195] mmcblk1: mmc1:0001 008G30 7.28 GiB
    [ 1.357155] mmcblk1boot0: mmc1:0001 008G30 partition 1 4.00 MiB
    [ 1.363742] mmcblk1boot1: mmc1:0001 008G30 partition 2 4.00 MiB
    [ 1.369846] mmcblk1rpmb: mmc1:0001 008G30 partition 3 4.00 MiB
    [ 1.375713] random: fast init done
    [ 1.386522] tps65217 0-0024: TPS65217 ID 0x6 version 1.2
    [ 1.393653] tda998x 0-0070: Error -121 writing to cec:0xff
    [ 1.399238] tda998x 0-0070: set_page 000a err -121
    [ 1.470713] tda998x 0-0070: set_page 000a err -121
    [ 1.540702] tda998x 0-0070: set_page 0001 err -121
    [ 1.545565] tda998x 0-0070: set_page 0001 err -121
    [ 1.550434] tda998x 0-0070: set_page 0200 err -121
    [ 1.555313] tda998x 0-0070: set_page 0201 err -121
    [ 1.560173] tda998x 0-0070: set_page 0202 err -121
    [ 1.565048] tda998x 0-0070: set_page 0203 err -121
    [ 1.569908] tda998x 0-0070: set_page 0204 err -121
    [ 1.574777] tda998x 0-0070: set_page 0205 err -121
    [ 1.579633] tda998x 0-0070: set_page 020e err -121
    [ 1.584512] tda998x 0-0070: set_page 0211 err -121
    [ 1.589372] tda998x 0-0070: set_page 0207 err -121
    [ 1.594245] tda998x 0-0070: set_page 0208 err -121
    [ 1.599106] tda998x 0-0070: set_page 0209 err -121
    [ 1.603979] tda998x 0-0070: set_page 020a err -121
    [ 1.608839] tda998x 0-0070: set_page 0206 err -121
    [ 1.613712] tda998x 0-0070: set_page 0027 err -121
    [ 1.618572] tda998x 0-0070: set_page 0000 err -121
    [ 1.623446] tda998x 0-0070: set_page 0002 err -121
    [ 1.628411] tilcdc 4830e000.lcdc: failed to bind 0-0070 (ops tda998x_ops): -6
    [ 1.635828] tilcdc 4830e000.lcdc: master bind failed: -6
    [ 1.641421] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.648776] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
    [ 1.656551] hctosys: unable to open rtc device (rtc0)
    [ 1.662289] ALSA device list:
    [ 1.665279] No soundcards found.
    [ 2.949860] EXT4-fs (mmcblk0p2): recovery complete
    [ 2.958748] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 2.967019] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [ 2.983756] devtmpfs: mounted
    [ 2.988357] Freeing unused kernel memory: 1024K
    [ 3.296064] systemd[1]: System time before build time, advancing clock.
    [ 3.366276] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -ID)
    [ 3.387783] systemd[1]: Detected architecture arm.
    [ 3.426220] systemd[1]: Set hostname to <am335x-evm>.
    [ 3.786219] systemd[1]: /lib/systemd/system/gadget-init.service:15: Unknown lvalue 'ExecStopPre' in section 'Service'
    [ 4.087895] random: systemd: uninitialized urandom read (16 bytes read)
    [ 4.095070] systemd[1]: Listening on Network Service Netlink Socket.
    [ 4.133039] random: systemd: uninitialized urandom read (16 bytes read)
    [ 4.140478] systemd[1]: Listening on udev Control Socket.
    [ 4.170945] random: systemd: uninitialized urandom read (16 bytes read)
    [ 4.182728] systemd[1]: Created slice User and Session Slice.
    [ 4.211728] systemd[1]: Listening on Journal Socket.
    [ 4.241696] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [ 4.282097] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [ 5.031169] cryptodev: loading out-of-tree module taints kernel.
    [ 5.058613] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ 5.072344] cryptodev: driver 1.9 loaded.
    [ 5.105366] usbcore: registered new interface driver usbfs
    [ 5.105422] usbcore: registered new interface driver hub
    [ 5.111236] usbcore: registered new device driver usb
    [ 5.171915] usbcore: registered new interface driver usbserial
    [ 5.208992] usbcore: registered new interface driver ftdi_sio
    [ 5.225137] usbserial: USB Serial support registered for FTDI USB Serial Device
    [ 5.681073] systemd-journald[66]: Received request to flush runtime journal from PID 1
    [ 10.571119] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 11.159624] alloc_contig_range: [9d040, 9d041) PFNs busy
    [ 11.184790] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [ 11.429955] alloc_contig_range: [9d040, 9d041) PFNs busy
    [ 11.550464] omap_rtc 44e3e000.rtc: char device (253:0)
    [ 11.550585] omap_rtc 44e3e000.rtc: registered as rtc0
    [ 12.022053] random: crng init done
    [ 12.063282] random: 7 urandom warning(s) missed due to ratelimiting
    [ 15.489576] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 15.732880] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 15.920007] omap-aes 53500000.aes: will run requests pump with realtime priority
    [ 16.166286] remoteproc remoteproc0: wkup_m3 is available
    [ 16.183575] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.sgx on minor 0
    [ 16.233787] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [ 16.281460] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    [ 16.435810] PM: Cannot get wkup_m3_ipc handle
    [ 17.166620] PM: Cannot get wkup_m3_ipc handle
    [ 17.171822] remoteproc remoteproc0: powering up wkup_m3
    [ 17.193850] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224628
    [ 17.208826] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [ 17.208855] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [ 18.746218] net eth0: initializing cpsw version 1.12 (0)
    [ 18.762541] libphy: PHY 4a101000.mdio:00 not found
    [ 18.767381] net eth0: phy "4a101000.mdio:00" not found on slave 0, err -19
    [ 18.835601] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 20.081759] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 22.611138] udc-core: couldn't find an available UDC - added [g_multi] to list of pending drivers
    [ 25.187502] PM: bootloader does not support rtc-only!
    [ 25.248569] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer reset
    [ 25.248584] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [ 25.248606] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 25.248614] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 25.248621] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [ 25.248628] am335x-phy-driver 47401300.usb-phy: lookup for GPIO reset failed
    [ 25.248637] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer vbus-detect
    [ 25.248642] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [ 25.248649] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 25.248656] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 25.248662] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [ 25.248667] am335x-phy-driver 47401300.usb-phy: lookup for GPIO vbus-detect failed
    [ 25.248743] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 25.552470] using random self ethernet address
    [ 25.556957] using random host ethernet address
    [ 25.668794] using host ethernet address: 34:03:DE:86:47:33
    [ 25.668874] using random self ethernet address
    [ 25.766874] using random host ethernet address
    [ 25.794725] using host ethernet address: 34:03:DE:86:47:33
    [ 25.801618] usb0: HOST MAC 34:03:de:86:47:33
    [ 25.837259] pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [ 25.918089] usb0: MAC 8e:bf:f1:94:57:3f
    [ 25.959822] Mass Storage Function, version: 2009/09/11
    [ 25.973084] LUN: removable file: (no medium)
    [ 25.977672] LUN: removable read only file: /dev/mmcblk0p1
    [ 26.067161] remoteproc remoteproc1: 4a334000.pru is available
    [ 26.067258] pru-rproc 4a334000.pru: PRU rproc node /ocp/pruss_soc_bus@4a326004/pruss@0/pru@34000 probed successfully
    [ 26.084957] remoteproc remoteproc2: 4a338000.pru is available
    [ 26.085051] pru-rproc 4a338000.pru: PRU rproc node /ocp/pruss_soc_bus@4a326004/pruss@0/pru@38000 probed successfully
    [ 26.173875] Number of LUNs=1
    [ 26.199482] g_multi gadget: Multifunction Composite Gadget
    [ 26.217368] g_multi gadget: g_multi ready
    [ 26.237037] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer reset
    [ 26.237052] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
    [ 26.237070] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 26.237079] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 26.237085] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
    [ 26.237092] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO reset failed
    [ 26.237101] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer vbus-detect
    [ 26.237106] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
    [ 26.237113] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 26.237120] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 26.237126] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
    [ 26.237131] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO vbus-detect failed
    [ 26.237207] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    [ 26.269183] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 26.322849] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 26.330515] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 26.341841] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 26.349112] usb usb1: Product: MUSB HDRC host driver
    [ 26.360548] usb usb1: Manufacturer: Linux 4.14.79-gbde58ab01e musb-hcd
    [ 26.369442] usb usb1: SerialNumber: musb-hdrc.1
    [ 26.379891] hub 1-0:1.0: USB hub found
    [ 26.387425] hub 1-0:1.0: 1 port detected
    [ 26.578671] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
    [ 26.831050] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [ 26.981002] usb 1-1: device descriptor read/64, error -71
    [ 27.251034] usb 1-1: device descriptor read/64, error -71
    [ 27.521025] usb 1-1: new high-speed USB device number 3 using musb-hdrc
    [ 27.671044] usb 1-1: device descriptor read/64, error -71
    [ 27.941014] usb 1-1: device descriptor read/64, error -71
    [ 28.061019] usb usb1-port1: attempt power cycle
    [ 28.551021] usb 1-1: new high-speed USB device number 4 using musb-hdrc
    [ 29.141007] usb 1-1: new high-speed USB device number 5 using musb-hdrc
    [ 132.861122] NET: Registered protocol family 15
    [ 133.028715] Initializing XFRM netlink socket

  • Hello Dk sir ,

    waiting for your response for issue
  • Hello sir ,

    as USB1_DRVvBUS in our board is not connected like in beagle bone , is it problem ?

    should we configure anything in kernel for USB1_DRVvBUS.

    as we direcly connected modem  to am3358

  • Hello Dk sir ,

    waiting for your response for issue
  • hello dk sir , waiting for your response
  • Hi,
    Please post scope images of your USB1 initialization. Specifically I'd like to see the timing relationship of VBUS to the USB1_DP signal rising.
  • Sir , 

    Is hardware connection fine ?

    USB1_DRVVBUS line is not connected as per beaglebone ? is it ok . as we given directly 5v power supply to  usb1_vbus to module .

  • Hello Dk  ,

    Yellow line is 5v VBUS_USB1   and blue line is USB1_DP line .

     

  • Thank you.

    I'm looking to see the relationship of the initial rise of USB1_DP and USB1_VBUS. Please set the scope to 1V @ 20ms/div and the trigger as USB1_DP rising @ 1.5V. Do you have access to a 4-channel scope? Ideally I'd also like to see USB1_DRVVBUS in the same plot.

  • Dk,

    on USB1_DRVVBUS getting 3.3v . but left unconnected as we provide 5v usb1_vbus pin directly to module .

    on USB1_VBUS . 5v  supply is directly connected from supply .

    on USB1_DP  line  is it noise ?

    Is hardware connections are fine ?

  • Hello Manoj,

    USB1_DP doesn't appear to be noise. I believe it is the pull-up being applied by the Simcom module, which is why I wanted to see its initial rise in relation to VBUS.

    As for your HW question: Directly connecting USBn_VBUS to sys5V is not the typical application. VBUS is expected to be controlled by USBn_DRVVBUS. The way you have connected it can work, but it will need a SW patch. I will need my SW counterpart to provide this.

  • Manoj,

    Please see this post with patches that will help you with the VBUS connection to 5V. 

    https://e2e.ti.com/support/processors/f/791/p/574351/2107145#2107145

    You may need to port these patches to your specific kernel version.

    Please see if these help you get beyond the issues that you are seeing.

    Thank you.

  • With reference to post , I read this command  of USB1 register

     getting 2 type of messages for this command when i tried to read multiple times . 

    1) root@am335x-evm:~# devmem2 0x47401c60 b

    /dev/mem opened.[ 3346.945577] Unhandled fault: external abort on non-linefetch0
    [ 3346.954364] pgd = d8258000
    [ 3346.957084] [b6f79c60] *pgd=9820e831, *pte=47401303, *ppte=47401a33

    Written 0x1; readback 0x19

    Memory mapped at address 0xb6f79000.
    Bus error (core dumped).

    2) root@arm:~# ./devmem2 0x47401c60 b 1
    /dev/mem opened.
    Memory mapped at address 0xb6f2f000.
    Value at address 0x47401C60 (0xb6f2fc60): 0x19
    Written 0x1; readback 0x19

    when module is connected  getting ,

    2) root@arm:~# ./devmem2 0x47401c60 b 1
    /dev/mem opened.
    Memory mapped at address 0xb6f2f000.
    Value at address 0x47401C60 (0xb6f2fc60): 0x5D

    what is the cause of error ?

    How to apply patches to ti sdk linux kernel  ? I am begginer related to linux kernel .please provide me necessary steps regarding this

  • Hi RonB , Dk .

    I checked the kernel in sdk , the patches you suggested are already applied .

    so in the next step  i checked this values .

    root@am335x-evm:~# devmem2 0x47401c60 b 1
    /dev/mem opened.
    Memory mapped at address 0xb6ffb000.
    Read at address 0x47401C60 (0xb6ffbc60): 0x5D
    Write at address 0x47401C60 (0xb6ffbc60): 0x01, readback 0x01


    root@am335x-evm:~# devmem2 0x47401c01 b
    /dev/mem opened.
    Memory mapped at address 0xb6fc7000.
    Read at address 0x47401C01 (0xb6fc7c01): 0xF2


    root@am335x-evm:~# devmem2 0x47401c60 b

    /dev/mem opened. 

    Memory mapped at address 0xb6f68000.
    Read at address 0x47401C60 (0xb6f68c60): 0x5D
    root@am335x-evm:~# lsusb -t
    /: Bus 01.Port 1: Dev 1, class="root_hub", Driver=musb-hdrc/1p, 480M

    but error is common 

    root@am335x-evm:~# [ 62.950965] usb 1-1: new high-speed USB device number 2 uc
    [ 63.100902] usb 1-1: device descriptor read/64, error -71
    [ 63.370927] usb 1-1: device descriptor read/64, error -71
    [ 63.640906] usb 1-1: new high-speed USB device number 3 using musb-hdrc
    [ 63.790930] usb 1-1: device descriptor read/64, error -71
    [ 64.060898] usb 1-1: device descriptor read/64, error -71
    [ 64.180900] usb usb1-port1: attempt power cycle
    [ 64.670908] usb 1-1: new high-speed USB device number 4 using musb-hdrc
    [ 65.260923] usb 1-1: new high-speed USB device number 5 using musb-hdrc

  • I done a sample test on beagle bone which is related to my problem ,

    I had made both USB0  and USB1  as host  in kernel. 

    I placed my simcom usb dongle in USB1  it detected and showed in lsusb .

    but when i placed same dongle in USB0   , i got the same error which i got in my custom board through USB1 port .

    [ 2.932785] usb 1-1: device descriptor read/64, error -71
    [ 3.265047] usb 1-1: device descriptor read/64, error -71
    [ 3.485000] usb 1-1: device descriptor read/64, error -71
    [ 4.113057] usb 1-1: device not accepting address 4, error -71
    [ 4.640914] usb 1-1: device not accepting address 5, error -71
    [ 4.653054] usb usb1-port1: unable to enumerate USB device.

    but when i placed pen drive it detected in USB0 .

    so as per my observation 

    in USB0  schematic of beaglebone , TPS2051  is not placed  though USB0 and in our custom board aslo we not placed TPS2051 as given 5v vbus directly same as usb0 in beaglebone .

    why  TPS2051 is mandatory ? cant we connect with out it .

  • waiting for response 

  • Manoj,

    In your BBB test, how are you inserting a pen drive into a USB Device socket (USB0)?

    In this same test, how is the pen drive being powered? There is no VBUS at all to this socket.

  • I am connecting through otg cable in usb0 .

    as per schematic of beaglebone ,  usb0 vbus is directly powered with 5v , so in our custom board , we also powered usb1 vbus with 5v directly .

    I think in  beaglbone  , in usb0 socket on pin of VB of USB0 socket ,gets 5v .  

      TPS2051  is not placed  though USB0 and in our custom board aslo we not placed TPS2051 as given 5v vbus directly  to USB1 same as usb0 in beaglebone .

  • Hi,

    Please provide the link of the Beaglebone schematic you referred, I'd like to check how its USB0 vbus is powered with 5V. As far as I know, Beaglebone USB0 is directly connected to the vbus pin of the usb receptacle, and it is unable to work in host mode.

    In your board how the 4G module is powered? Can your board USB1 enable any other usb devices such as a thumb drive?

  • Attached the schematic of beaglebone .

    USB0_VBUS  directly powered with USB_DC in schematic and i checked usb0_id pin it getting grounded when i connected a otg cable to usb0 port .

    we supplied 3.3v to module and given 5v directly to USB1_VBUS pin  2262.BBB_SCH.pdf

  • manoj sai said:
    USB0_VBUS  directly powered with USB_DC in schematic and i checked usb0_id pin it getting grounded when i connected a otg cable to usb0 port .

    Not correct, no power is provided with USB_DC. The pin 12 (USB_DC) of TPS65217 is an input pin. Again, BBB USB0 port cannot be used in host mode.

  • Able to see 5v on VB pin of USB0 connector . and pen drive is also detected when placed to  USB0  connector through otg cable .

    I changed the USB0  to  host mode in linux kernel  in sdk .

  • On Beaglebone Black, not on your board?

    No matter how you change the software, I don't understand how its USB0 port would work in host mode. Where is the 5V VBUS power come from? There is no VBUS power source for USB0 on the Beaglebone Black board.

  • we soldered  5v line  to VBUS of TPD4S012 ic