Subject: USB @ MPC8343

From: Andre Schwarz <[email-masked]>
Date: Wed, 16 Apr 2008 14:08:15 +0200

Dear List,

on my MPC8343 based board there is a "USB3300" ULPI-PHY connected to the 
processor.
It's an OTG capable PHY but host mode should be enough right now.

Since USB is not used inside bootloader it's not configured at all...
As far as I can see the setup should be done inside the kernel completely.

My dts looks like this :

                usb@23000 {
                        device_type = "usb";
                        compatible = "fsl-usb2-dr";
                        reg = <0x23000 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        interrupt-parent = <&ipic>;
                        interrupts = <38 0x8>;
                        dr_mode = "host";
                        phy_type = "ulpi";
                        port1;
                };

Since the MPC8343 has only one USB port I assume it is "port1" since the 
port1-pins are coming out of the package :-)
DR registers are located @ 0x23000

Kernel log :

fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 38, io base 0xe0023000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Freescale On-Chip EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.25-rc8-01233-g6249f9d-dirty ehci_hcd
usb usb1: SerialNumber: fsl-ehci.0
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
usbcore: registered new interface driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for 
USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual

Clocks and communication are looking fine (from an electrical point of 
view) and bus power is applied.

But : no device (mouse, memory stick, ...) gets recognized.

No interrupts either.

An hints ?

regards,
Andre Schwarz
Matrix Vision

MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler  - Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner