[U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

Jagan Teki jagannadh.teki at gmail.com
Tue Jun 5 05:51:06 UTC 2018


On Tue, Jun 5, 2018 at 11:17 AM, Vasily Khoruzhick <anarsoul at gmail.com> wrote:
> On Mon, Jun 4, 2018 at 10:38 PM, Vasily Khoruzhick <anarsoul at gmail.com> wrote:
>>> This wont depend with this phy driver, better check the host driver
>>> and dts nodes which you're using.
>>
>> It starts to work if I enable ehci0 and ohci0 in sun50i-a64-pine64.dts
>> - but note that internal hub in Pinebook is connected to ehci1/ohci1,
>> not ehci0/ohci0.
>> Can you try disabling ehci0/ohci0 and check whether the other
>> controller works for you?
>
> So it works only with all of ehci0, ehci1, ohci0, ohci1 present in
> dts. ehci0/ohci0 or ehci1/ohci1 alone won't work.

Don't assume the things, here BPI-M64 without ehci0 and ohci0


Allwinner mUSB OTG (Peripheral)
Net:
Warning: usb_ether using MAC address from ROM
eth0: usb_ether
starting USB...
USB0:   USB EHCI 0.00
USB1:   USB OHCI 0.0
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
=>
=> mmc dev 1
switch to partitions #0, OK
mmc1(part 0) is current device
=> fastboot 1
musb-hdrc: peripheral reset irq lost!
** Unrecognized filesystem type **
Starting download of 32768 bytes

downloading of 32768 bytes finished
Flashing Raw Image
........ wrote 32768 bytes to 'loader1'
** Unrecognized filesystem type **
Starting download of 595352 bytes
....
downloading of 595352 bytes finished
Flashing Raw Image
........ wrote 595456 bytes to 'loader2'
=>
U-Boot SPL 2018.05-00710-gb1f2b72e39-dirty (Jun 05 2018 - 11:14:11 +0530)
DRAM: 2048 MiB
Trying to boot from MMC2
NOTICE:  BL3-1: Running on A64/H64 (1689) in SRAM A2 (@0x44000)
NOTICE:  Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):ce95c91d
NOTICE:  BL3-1: Built : 11:56:38, Mar 23 2018
NOTICE:  DT: sun50i-a64-bananapi-m64
INFO:    Configuring AXP PMIC
INFO:    PMIC: DRAM voltage: 1.50V
INFO:    PMIC: setup successful
NOTICE:  SCPI: dummy stub handler, implementation level: 000000
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9


U-Boot 2018.05-00710-gb1f2b72e39-dirty (Jun 05 2018 - 11:14:11 +0530)
Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: BananaPi-M64
DRAM:  2 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Failed (-5)
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:
Warning: usb_ether using MAC address from ROM
eth0: usb_ether
starting USB...
USB0:   USB EHCI 0.00
USB1:   USB OHCI 0.0
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
=> usb info
1: Hub,  USB Revision 2.0
 - u-boot EHCI Host Controller
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

And A64-Relic has only ehci0 and ohci0 no ehci1 and ohci1, better to
debug it from your side, what went wrong.

Jagan.


More information about the U-Boot mailing list