Forum: Mikrocontroller und Digitale Elektronik Probleme mit phyCore AM3352 und Cypress USB, MMC2


von Tuxi (Gast)


Angehängte Dateien:

Lesenswert?

Hi, i also have an issue with this chip on a custom Board connected to 
an phyCORE-AM3352 (Phytec).

My schematic is attached. The IOUSBEN signals are connected to some 
GPIOs.

My board file looks like this:
 /* pinmux for usb0 drvvbus */
static struct pinmux_config usb0_pin_mux[] = {
  {"usb0_drvvbus.usb0_drvvbus",  OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},
  {NULL, 0},
};

/* pinmux for usb1 drvvbus */
static struct pinmux_config usb1_pin_mux[] = {
  {"gpmc_ad8.gpio0_22",  OMAP_MUX_MODE7 |  AM33XX_PULL_ENBL |
          AM33XX_PIN_OUTPUT_PULLUP},
  {"gpmc_ad9.gpio0_23",  OMAP_MUX_MODE7 |  AM33XX_PULL_ENBL |
          AM33XX_PIN_OUTPUT_PULLUP},
  {"lcd_vsync.gpio2_22",  OMAP_MUX_MODE7 |  AM33XX_PULL_ENBL |
          AM33XX_PIN_OUTPUT_PULLUP},
  {"lcd_ac_bias_en.gpio2_25",  OMAP_MUX_MODE7 |  AM33XX_PULL_ENBL |
          AM33XX_PIN_OUTPUT_PULLUP},
  {"usb1_drvvbus.usb1_drvvbus",  OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},
  {NULL, 0},
};



static void usb0_init(void)
{
  setup_pin_mux(usb0_pin_mux);
  return;
}

static void usb1_init(void)
{
  setup_pin_mux(usb1_pin_mux);
  return;
}


static struct omap_musb_board_data musb_board_data = {
 .interface_type = MUSB_INTERFACE_ULPI,
 /*
 * mode[0:3] = USB0PORT's mode
 * mode[4:7] = USB1PORT's mode
 * PCM051 has USB0 in OTG mode and USB1 in host mode.
 */
 .mode = (MUSB_HOST << 4) | MUSB_OTG,
 .power = 500,
 .instances = 1,
 };


The inits are called correctly.
First i get this message polling:
ti81xx_interrupt 1146: VBUS error workaround (delay coming)

Then i used this patch:
6378.0001-Revert-usb-musb-ti81xx-fix-for-handling-vbus-error.zip
from Bin Liu in this Forum. It stopped polling but is still in the dmesg 
log.

Then I also tried to not use the USB_DRVV Pin and connected the Reset 
Pin directly to 3.3V and tried this hack:

diff --git a/arch/arm/mach-omap2/omap_phy_internal.c 
b/arch/arm/mach-omap2/omap_phy_internal.c
index 13bfef3..e41b224 100644
--- a/arch/arm/mach-omap2/omap_phy_internal.c
+++ b/arch/arm/mach-omap2/omap_phy_internal.c
@@ -288,8 +288,17 @@ void ti81xx_musb_phy_power(u8 id, u8 on , bool 
wkup)
                                                TI816X_USBPHY0_NORMAL_MODE;
                        usbphycfg &= ~TI816X_USBPHY_REFCLK_OSC;
                } else if (cpu_is_am33xx()) {
-                       usbphycfg &= ~(USBPHY_CM_PWRDN | 
USBPHY_OTG_PWRDN);
-                       usbphycfg |= (USBPHY_OTGVDET_EN | 
USBPHY_OTGSESSEND_EN);
+                       usbphycfg &= ~(USBPHY_CM_PWRDN | 
USBPHY_OTG_PWRDN | USBPHY_OTGVDET_EN);
+
+                       /* HACK: If USB0 port is in host-only mode, 
clear its
+                        * USBPHY_OTGVDET_EN bit to ignore first VBUS 
sensing.
+                        * Change 0 to 1 if USB1 port is in host-only 
mode.
+                        */
+                       if (id == 0)
+                               usbphycfg |= USBPHY_OTGSESSEND_EN;
+                       else
+                               usbphycfg |= (USBPHY_OTGVDET_EN | 
USBPHY_OTGSESSEND_EN);
+
                        usbwkupctrl = AM33XX_USB_WKUP_CTRL_DISABLE;
                }
        } else {

Nothing helped. I disabled the hack and soldered all changes back. My 
Board looks like the schematic.
Linux posted with cat /proc/drivers/musb_hdrc.1

root@phyCORE-AM335x:~  cat /proc/driver/musb_hdrc.1
Status: MHDRC, Mode=Host (Power=e0, DevCtl=88)
OTG state: a_wait_vfall; inactive
Options: pio, otg (peripheral+host), [eps=16]
Peripheral address: 00
Root port status: 00000100

dmesg said:
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on. 
Total pages: 65024
[    0.000000] Kernel command line: console=ttyO0,115200 
ip=none:::::eth0: root=/dev/mmcblk0p2 rootfstype=ext3 rootwait
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 
bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 
bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 254280k/254280k available, 7864k reserved, 0K 
highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04bb000   (4812 kB)
[    0.000000]       .init : 0xc04bb000 - 0xc04ef000   ( 208 kB)
[    0.000000]       .data : 0xc04f0000 - 0xc05451f8   ( 341 kB)
[    0.000000]        .bss : 0xc054521c - 0xc057083c   ( 174 kB)
[    0.000000] NR_IRQS:396
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 
interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER2 at 25000000 Hz
[    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps 
every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000122] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.058746] pid_max: default: 32768 minimum: 301
[    0.058898] Security Framework initialized
[    0.058990] Mount-cache hash table entries: 512
[    0.059417] CPU: Testing write buffer coherency: ok
[    0.060241] devtmpfs: initialized
[    0.080505] omap_hwmod: gfx: failed to hardreset
[    0.096923] omap_hwmod: pruss: failed to hardreset
[    0.098114] print_constraints: dummy:
[    0.098541] NET: Registered protocol family 16
[    0.101013] OMAP GPIO hardware version 0.1
[    0.103729] omap_mux_init: Add partition: #1: core, flags: 0
[    0.104095] The board is a PCM051 phyCORE-AM335x
[    0.104309]  omap_hsmmc.0: alias fck already exists
[    0.106872]  omap_i2c.1: alias fck already exists
[    0.108673]  omap2_mcspi.1: alias fck already exists
[    0.108978]  omap2_mcspi.2: alias fck already exists
[    0.109283]  edma.0: alias fck already exists
[    0.109313]  edma.0: alias fck already exists
[    0.109344]  edma.0: alias fck already exists
[    0.134246] bio: create slab <bio-0> at 0
[    0.136535] SCSI subsystem initialized
[    0.138702] usbcore: registered new interface driver usbfs
[    0.139129] usbcore: registered new interface driver hub
[    0.139373] usbcore: registered new device driver usb
[    0.139556] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, 
plat_mode=0x3
[    0.139862] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, 
plat_mode=0x1
[    0.141113] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[    0.142333] tps65910 1-002d: JTAGREVNUM 0x1
[    0.146240] print_constraints: VRTC:
[    0.147735] print_constraints: VIO: at 1500 mV
[    0.150085] print_constraints: VDD1: 600 <--> 1500 mV at 1100 mV 
normal
[    0.152404] print_constraints: VDD2: at 1100 mV
[    0.153472] print_constraints: VDD3: 5000 mV
[    0.154937] print_constraints: VDIG1: at 1800 mV
[    0.156372] print_constraints: VDIG2: at 1800 mV
[    0.157836] print_constraints: VPLL: at 1800 mV
[    0.159301] print_constraints: VDAC: at 1800 mV
[    0.160766] print_constraints: VAUX1: at 1800 mV
[    0.162231] print_constraints: VAUX2: at 3300 mV
[    0.163696] print_constraints: VAUX33: at 3300 mV
[    0.165161] print_constraints: VMMC: at 3300 mV
[    0.183563] cfg80211: Calling CRDA to update world regulatory domain
[    0.184844] Switching to clocksource gp timer
[    0.205932] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.206085] musb-hdrc musb-hdrc.0: dma type: pio
[    0.206420] MUSB0 controller's USBSS revision = 4ea20800
[    0.206451] musb0: Enabled SW babble control
[    0.206481] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk 
combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[    0.206512] musb-hdrc: MHDRC RTL version 2.0
[    0.206512] musb-hdrc: setup fifo_mode 4
[    0.206542] musb-hdrc: 28/31 max ep, 16384/16384 memory
[    0.206573] musb-hdrc.0: bulk split disabled
[    0.206573] musb-hdrc.0: bulk combine disabled
[    0.207122] musb-hdrc musb-hdrc.0: USB OTG mode controller at 
d083c000 using PIO, IRQ 18
[    0.207305] musb-hdrc musb-hdrc.1: dma type: pio
[    0.207641] MUSB1 controller's USBSS revision = 4ea20800
[    0.207672] musb1: Enabled SW babble control
[    0.207672] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk 
combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[    0.207702] musb-hdrc: MHDRC RTL version 2.0
[    0.207702] musb-hdrc: setup fifo_mode 4
[    0.207733] musb-hdrc: 28/31 max ep, 16384/16384 memory
[    0.207763] musb-hdrc.1: bulk split disabled
[    0.207763] musb-hdrc.1: bulk combine disabled
[    0.207794] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    0.207885] musb-hdrc musb-hdrc.1: new USB bus registered, assigned 
bus number 1
[    0.208038] usb usb1: New USB device found, idVendor=1d6b, 
idProduct=0002
[    0.208068] usb usb1: New USB device strings: Mfr=3, Product=2, 
SerialNumber=1
[    0.208068] usb usb1: Product: MUSB HDRC host driver
[    0.208068] usb usb1: Manufacturer: Linux 3.2.0-SMA musb-hcd
[    0.208099] usb usb1: SerialNumber: musb-hdrc.1
[    0.209136] hub 1-0:1.0: USB hub found
[    0.209167] hub 1-0:1.0: 1 port detected
[    0.209808] musb-hdrc musb-hdrc.1: USB Host mode controller at 
d083e800 using PIO, IRQ 19
[    0.210296] NET: Registered protocol family 2
[    0.210510] IP route cache hash table entries: 2048 (order: 1, 8192 
bytes)
[    0.210815] TCP established hash table entries: 8192 (order: 4, 65536 
bytes)
[    0.211029] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.211120] TCP: Hash tables configured (established 8192 bind 8192)
[    0.211151] TCP reno registered
[    0.211151] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.211181] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.211395] NET: Registered protocol family 1
[    0.211669] NetWinder Floating Point Emulator V0.97 (double 
precision)
[    0.223999] VFS: Disk quotas dquot_6.5.2
[    0.224060] Dquot-cache hash table entries: 1024 (order 0, 4096 
bytes)
[    0.224426] msgmni has been set to 496
[    0.225402] io scheduler noop registered
[    0.225433] io scheduler deadline registered
[    0.225494] io scheduler cfq registered (default)
[    0.226654] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.228576] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a 
OMAP UART0
[    0.858093] ti81xx_interrupt 1139: VBUS error workaround (delay 
coming)
[    0.865081] console [ttyO0] enabled
[    0.869445] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a 
OMAP UART1
[    0.877380] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a 
OMAP UART2
[    0.885253] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a 
OMAP UART3
[    0.893157] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a 
OMAP UART4
[    0.901031] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a 
OMAP UART5
[    0.920227] brd: module loaded
[    0.929626] loop: module loaded
[    0.933013] at24 1-0052: 4096 byte 24c32 EEPROM, writable, 32 
bytes/write
[    0.942321] Fixed MDIO Bus: probed
[    0.945953] CAN device driver interface
[    0.949981] CAN bus driver for Bosch D_CAN controller 1.0
[    0.956176] ------------[ cut here ]------------
[    0.961059] WARNING: at fs/sysfs/dir.c:481 sysfs_add_one+0x88/0xa8()
[    0.967773] sysfs: cannot create duplicate filename 
'/class/mdio_bus/0'
[    0.974731] Modules linked in:
[    0.977935] Backtrace:
[    0.980560] [<c0017d78>] (dump_backtrace+0x0/0x10c) from [<c0384740>] 
(dump_stack+0x18/0x1c)
[    0.989440]  r6:c00f8384 r5:00000009 r4:cf01dd28 r3:c0510014
[    0.995422] [<c0384728>] (dump_stack+0x0/0x1c) from [<c003debc>] 
(warn_slowpath_common+0x54/0x6c)
[    1.004760] [<c003de68>] (warn_slowpath_common+0x0/0x6c) from 
[<c003df78>] (warn_slowpath_fmt+0x38/0x40)
[    1.014739]  r8:00000001 r7:cf029000 r6:cf029000 r5:cf1c2b80 
r4:ffffffef
[    1.021636] r3:00000009
[    1.024414] [<c003df40>] (warn_slowpath_fmt+0x0/0x40) from 
[<c00f8384>] (sysfs_add_one+0x88/0xa8)
[    1.033752]  r3:cf029000 r2:c0458a00
[    1.037536] [<c00f82fc>] (sysfs_add_one+0x0/0xa8) from [<c00f8c24>] 
(sysfs_do_create_link+0xf8/0x1e0)
[    1.047241]  r7:cf01dd80 r6:cf0acbd0 r5:cf1c2b80 r4:cf1c2cc0
[    1.053222] [<c00f8b2c>] (sysfs_do_create_link+0x0/0x1e0) from 
[<c00f8d20>] (sysfs_create_link+0x14/0x18)
[    1.063293] [<c00f8d0c>] (sysfs_create_link+0x0/0x18) from 
[<c01a4a84>] (device_add+0x300/0x594)
[    1.072570] [<c01a4784>] (device_add+0x0/0x594) from [<c01a4d34>] 
(device_register+0x1c/0x20)
[    1.081542] [<c01a4d18>] (device_register+0x0/0x20) from [<c01cb87c>] 
(mdiobus_register+0x80/0x174)
[    1.091064]  r4:cf1b9004 r3:cf1bf1c0
[    1.094848] [<c01cb7fc>] (mdiobus_register+0x0/0x174) from 
[<c037e984>] (davinci_mdio_probe+0x1e4/0x2d0)
[    1.104827]  r8:00000000 r7:cf06df80 r6:cf06a808 r5:cf1bf300 
r4:cf06a800
[    1.111724] r3:00000000
[    1.114501] [<c037e7a0>] (davinci_mdio_probe+0x0/0x2d0) from 
[<c01a86e4>] (platform_drv_probe+0x20/0x24)
[    1.124481]  r7:c052676c r6:c053f288 r5:c0569ab0 r4:cf06a808
[    1.130462] [<c01a86c4>] (platform_drv_probe+0x0/0x24) from 
[<c01a7344>] (driver_probe_device+0xb4/0x2c8)
[    1.140533] [<c01a7290>] (driver_probe_device+0x0/0x2c8) from 
[<c01a75ec>] (__driver_attach+0x94/0x98)
[    1.150329]  r8:00000000 r7:cf1beb40 r6:cf06a83c r5:c052676c 
r4:cf06a808
[    1.157409] [<c01a7558>] (__driver_attach+0x0/0x98) from [<c01a609c>] 
(bus_for_each_dev+0x4c/0x94)
[    1.166839]  r6:c01a7558 r5:c052676c r4:00000000 r3:c01a7558
[    1.172821] [<c01a6050>] (bus_for_each_dev+0x0/0x94) from 
[<c01a6f6c>] (driver_attach+0x24/0x28)
[    1.182067]  r6:c05252c8 r5:c052676c r4:c052676c
[    1.186950] [<c01a6f48>] (driver_attach+0x0/0x28) from [<c01a6bc0>] 
(bus_add_driver+0x188/0x270)
[    1.196197] [<c01a6a38>] (bus_add_driver+0x0/0x270) from [<c01a78b0>] 
(driver_register+0x80/0x144)
[    1.205657] [<c01a7830>] (driver_register+0x0/0x144) from 
[<c01a88fc>] (platform_driver_register+0x4c/0x60)
[    1.215911] [<c01a88b0>] (platform_driver_register+0x0/0x60) from 
[<c04da950>] (davinci_mdio_init+0x14/0x1c)
[    1.226287] [<c04da93c>] (davinci_mdio_init+0x0/0x1c) from 
[<c0008764>] (do_one_initcall+0x128/0x1a8)
[    1.235992] [<c000863c>] (do_one_initcall+0x0/0x1a8) from 
[<c04bb88c>] (kernel_init+0x84/0x120)
[    1.245147] [<c04bb808>] (kernel_init+0x0/0x120) from [<c0040c9c>] 
(do_exit+0x0/0x654)
[    1.253479]  r5:c04bb808 r4:00000000
[    1.257293] ---[ end trace 17a705f9df929b66 ]---
[    1.262512] mii_bus 0 failed to register
[    1.266723] davinci_mdio: probe of davinci_mdio.0 failed with error 
-22
[    1.273864] PPP generic driver version 2.4.2
[    1.279144] usbcore: registered new interface driver rtl8192cu
[    1.285522] usbcore: registered new interface driver cdc_ether
[    1.291687] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) 
Driver
[    1.298797] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.305755] usbcore: registered new interface driver cdc_acm
[    1.311706] cdc_acm: USB Abstract Control Model driver for USB modems 
and ISDN adapters
[    1.320312] usbcore: registered new interface driver cdc_wdm
[    1.326263] Initializing USB Mass Storage driver...
[    1.331634] usbcore: registered new interface driver usb-storage
[    1.337982] USB Mass Storage support registered.
[    1.343048] usbcore: registered new interface driver libusual
[    1.349273] usbcore: registered new interface driver ums_eneub6250
[    1.355957] usbcore: registered new interface driver ums-sddr09
[    1.362365] usbcore: registered new interface driver ums-sddr55
[    1.369018] usbcore: registered new interface driver usbserial
[    1.375305] USB Serial support registered for generic
[    1.380828] usbcore: registered new interface driver 
usbserial_generic
[    1.387725] usbserial: USB Serial Driver core
[    1.392456] USB Serial support registered for DeLorme Earthmate USB
[    1.399230] USB Serial support registered for HID->COM RS232 Adapter
[    1.406066] USB Serial support registered for Nokia CA-42 V2 Adapter
[    1.412933] usbcore: registered new interface driver cypress
[    1.418914] cypress_m8: v1.10:Cypress USB to Serial Driver
[    1.424835] USB Serial support registered for FTDI USB Serial Device
[    1.431823] usbcore: registered new interface driver ftdi_sio
[    1.437896] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[    1.444183] USB Serial support registered for IPWireless converter
[    1.450897] usbcore: registered new interface driver ipwtty
[    1.456756] ipw: v0.4:IPWireless tty driver
[    1.461303] USB Serial support registered for GSM modem (1-port)
[    1.467926] usbcore: registered new interface driver option
[    1.473785] option: v0.7.2:USB Driver for GSM modems
[    1.479187] USB Serial support registered for Qualcomm USB modem
[    1.485717] usbcore: registered new interface driver qcserial
[    1.491912] USB Serial support registered for Sierra USB modem
[    1.498260] usbcore: registered new interface driver sierra
[    1.504119] sierra: v.1.7.16:USB Driver for Sierra Wireless USB 
modems
[    1.511199] usbcore: registered new interface driver cypress_cy7c63
[    1.518463] mousedev: PS/2 mouse device common for all mice
[    1.525665] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as 
rtc0
[    1.541046] tps65910-rtc tps65910-rtc: rtc core: registered 
tps65910-rtc as rtc1
[    1.550750] i2c /dev entries driver
[    1.557128] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.565887] cpuidle: using governor ladder
[    1.570770] cpuidle: using governor menu
[    1.575256] sdhci: Secure Digital Host Controller Interface driver
[    1.581756] sdhci: Copyright(c) Pierre Ossman
[    1.591522] usbcore: registered new interface driver usbhid
[    1.597412] usbhid: USB HID core driver
[    1.601715] usbcore: registered new interface driver r8712u
[    1.608612] oprofile: hardware counters not available
[    1.613922] oprofile: using timer interrupt.
[    1.618469] nf_conntrack version 0.5.0 (3973 buckets, 15892 max)
[    1.625305] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.631042] TCP cubic registered
[    1.634460] NET: Registered protocol family 17
[    1.639160] can: controller area network core (rev 20090105 abi 8)
[    1.645751] NET: Registered protocol family 29
[    1.650421] can: raw protocol (rev 20090105)
[    1.654907] can: broadcast manager protocol (rev 20090105 t)
[    1.660888] Registering the dns_resolver key type
[    1.665924] VFP support v0.3: implementor 41 architecture 3 part 30 
variant c rev 3
[    1.673980] ThumbEE CPU extension supported.
[    1.679290] Power Management for AM33XX family
[    1.689544] Detected MACID=1c:ba:8c:97:c3:ed
[    1.696441] input: gpio-keys as 
/devices/platform/gpio-keys/input/input0
[    1.710021] tps65910-rtc tps65910-rtc: setting system clock to 
2000-01-01 05:00:11 UTC (946702811)
[    1.722137] PHY 0:00 not found
[    1.725372] PHY 0:02 not found
[    1.766326] mmc0: host does not support reading read-only switch. 
assuming write-enable.
[    1.776824] mmc0: new high speed SDHC card at address 0007
[    1.783355] mmcblk0: mmc0:0007 SD4GB 3.70 GiB
[    1.790191]  mmcblk0: p1 p2
[    2.745971] IP-Config: Guessing netmask 255.0.0.0
[    2.751281] IP-Config: Complete:
[    2.754699]      device=eth0, addr=109.0.0.0, mask=255.0.0.0, 
gw=255.255.255.255,
[    2.762420]      host=109.0.0.0, domain=, nis-domain=(none),
[    2.768432]      bootserver=255.255.255.255, 
rootserver=255.255.255.255, rootpath=
[    6.790527] kjournald starting.  Commit interval 5 seconds
[    6.800750] EXT3-fs (mmcblk0p2): using internal journal
[    6.806335] EXT3-fs (mmcblk0p2): recovery complete
[    6.827575] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data 
mode
[    6.834960] VFS: Mounted root (ext3 filesystem) on device 179:2.
[    6.843780] devtmpfs: mounted
[    6.847686] Freeing init memory: 208K
>[    7.304687] udevd[589]: starting version 182

lsusb this:

root@phyCORE-AM335x:~ lsusb
Bus 001 Device 001: ID 1d6b:0002


Can anybody help me?

At boot time USB_DRVV changed shortly to high and then back to low.
USB_VBUS is already high at this time and goes low when the USB_DRVV 
signal went low.
After this VBUS is going back to high. I can't figue my issue out.
I think my schematics are ok.




MMC2:

Hi,

I have also an issue with mmc2 @ an AM3352 phyCore and a custom Board.

My muxing and initialisation looks like this:

static struct omap2_hsmmc_info am335x_mmc[] __initdata = {
 {
  .mmc            = 1,
  .caps           = MMC_CAP_4_BIT_DATA,
  .gpio_cd        = GPIO_TO_PIN(0, 6),
  .gpio_wp = -EINVAL,
  .ocr_mask       = MMC_VDD_32_33 | MMC_VDD_33_34, /* 3V3 */
 },
 {
  .mmc = 2,
  .name = "EX_SD",
  .caps = MMC_CAP_4_BIT_DATA,
  .nonremovable = false,
  .gpio_cd = GPIO_TO_PIN(3, 16),
  .gpio_wp = -EINVAL,
  .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, /* 3V3 */
 },
 {
  .mmc            = 0, /* will be set at runtime */
 },
 {}      /* Terminator */
};



/* Module pin mux for mmc0 */
static struct pinmux_config mmc0_pin_mux[] = {
 {"mmc0_dat3.mmc0_dat3", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
 {"mmc0_dat2.mmc0_dat2", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
 {"mmc0_dat1.mmc0_dat1", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
 {"mmc0_dat0.mmc0_dat0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
 {"mmc0_clk.mmc0_clk", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
 {"mmc0_cmd.mmc0_cmd", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
 {"spi0_cs1.mmc0_sdcd",  OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP},
 {NULL, 0},
};

/* Module pin mux for mmc2 */
static struct pinmux_config mmc2_pin_mux[] = {
 {"gpmc_ad12.mmc2_dat0", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
 {"gpmc_ad13.mmc2_dat1", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
 {"gpmc_ad14.mmc2_dat2", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
 {"gpmc_ad15.mmc2_dat3", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
 {"gpmc_csn3.mmc2_cmd", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
 {"mii1_rxd1.mmc2_clk", OMAP_MUX_MODE6 | AM33XX_PIN_INPUT_PULLUP},
 {"mcasp0_axr0.mmc2_sdcd", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLUP},
 {NULL, 0},
};

static void mmc0_init(void)
{
 setup_pin_mux(mmc0_pin_mux);
 setup_pin_mux(mmc2_pin_mux);
 omap2_hsmmc_init(am335x_mmc);
 return;
}

The inti is called @ boot time.



@ Kernel Booting mmc0 works like a charm. The Kernel and Barebox is 
booting from it.

But mmc2 doesn't work. I looked at the cmd and clk line. cmd line is @ 
everytime high due to a 10k Pullup in the Schematic.

Unfortunatly the clk line is @ everytime low. Nothing happens there. And 
after booting only mmc0 is available. Where is the Problem?? clk is 
directly connected to the SD-Card without any pullup/down. I tested it 
with plugging in an SD-Card before and after Kernel booting... nothing. 
:-(

Can somebody help me?



Tut mir leid das ich hier alles auf Englisch geposted habe. Wollte nur 
nicht nochmal alles schreiben. Hab halt auch bereits im TI Forum und im 
Cypress Forum angefragt. Vielleicht kann ja hier jemand helfen.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.