On Sun, Jun 23, 2019 at 03:09:45PM +0100, Andre Przywara wrote:
> Hi,
>
> a minor update to v1, adding PortM support as per Icenowy's comment and
> dropping the DT change. We still need the latter for support the USB0
> port on some boards, but this takes another route now (syncing back
> from Linux).
> ---------------
>
> This series enables USB support on the H6 boards. This is mostly just
> adding some missing pieces here and there, the actual controller and PHY
> are very similar to the previous ones, if not identical.
> This is for the 2.0 ports only at the moment, USB 3.0 requires some more
> work to make U-Boot's driver compliant to the kernel's DT bindings.
>
> The Pine H64 shares a similar problem as the Pine64+ boards regarding
> the upper USB port. To enable this port, we need a patch from Paul [1]
> and changes to the DT [2]. But this is orthogonal to this series.
>
> Patch 1 is a drive-by patch to bring SUNXI_GPIO to Kconfig, as this was
> lingering in one of my branches for a while.
> Patch 2 enables GPIO support for the H6, as this is needed for the Pine
> H64 to enable the VBUS regulator.
> Patch 3 adds the clock and reset gates mappings for the USB controller and
> the PHY, the values are taken from the manual and verified against
> Linux.
> Patch 4 adds some code to the PHY driver to skip over not implemented
> PHYs, as the H6 uses a PHY0/PHY3 combination in the DT.
> Patch 5 then eventually enables USB in the existing defconfigs.
>
> Cheers,
> Andre.
>
Hello
I have tested your serie on a orangepi1+ and it works!
But on a pineH64 with an asix USb dongle I got:
U-Boot SPL 2019.07-rc4-00183-g6b5b853fd8-dirty (Jun 24 2019 - 10:44:19 +0200)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.1(release):v2.1-72-g4b9d01d5
NOTICE: BL31: Built : 11:47:12, Apr 16 2019
NOTICE: BL31: Detected Allwinner H6 SoC (1728)
NOTICE: BL31: Found U-Boot DTB at 0xc07fa00, model: Pine H64
NOTICE: PMIC: Probing AXP805
NOTICE: PMIC: AXP805 detected
U-Boot 2019.07-rc4-00183-g6b5b853fd8-dirty (Jun 24 2019 - 10:44:19 +0200)
Allwinner Technology
CPU: Allwinner H6 (SUN50I)
Model: Pine H64
DRAM: 2 GiB
MMC: mmc@4020000: 0, mmc@4022000: 1
Loading Environment from FAT... Card did not respond to voltage select!
In: serial@5000000
Out: serial@5000000
Err: serial@5000000
Net: No ethernet found.
starting USB...
Bus usb@5101000: USB EHCI 1.00
Bus usb@5101400: USB OHCI 1.0
Bus usb@5311000: USB EHCI 1.00
Bus usb@5311400: USB OHCI 1.0
scanning bus usb@5101000 for devices... 1 USB Device(s) found
scanning bus usb@5101400 for devices... 1 USB Device(s) found
scanning bus usb@5311000 for devices...
Warning: ax88179_eth MAC addresses don't match:
Address in ROM is 00:0e:c6:ac:f3:d0
Address in environment is 02:01:1b:e5:f7:26
2 USB Device(s) found
scanning bus usb@5311400 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
=> dhcp
Waiting for Ethernet connection... unable to connect.
Reset Ethernet Device
Waiting for Ethernet connection... done.
BOOTP broadcast 1
EHCI timed out on TD - token=0x14008d80
Rx: failed to receive: -5
BOOTP broadcast 2
DHCP client bound to address 192.168.66.143 (6010 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET
But the network is working (download kernel via tftp with success)
But I fear the EHCI timed out and co...
Could it be related to yours patchs ?
Anyway you could add
Tested-by: Corentin Labbe <[email protected]>
Thanks
Regards
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/linux-sunxi/20190624101438.GA20546%40Red.
For more options, visit https://groups.google.com/d/optout.