Hi,

On 19/03/18 15:25, Martin Lucina wrote:
> Hi,
> 
> On Monday, 19.03.2018 at 11:59, Andre Przywara wrote:
>>> Any ideas on what I need to do to get working Ethernet based on the other
>>> information I sent last week? Or at least USB -- might that work with just
>>> the relevant bits from the Pine64 DTB? If so, which ones?
>>
>> I pushed a branch with the DT changes (DRAM voltage, USB, Ethernet):
>> https://github.com/apritzel/linux/commits/olinuxino
>>
>> It's probably wrong, but a reasonable experimentation base. Would be
>> glad if you could give it a try.
> 
> I've built this tree and have had a play with it, combined with the ATF
> from the Github issue and the CONFIG_DRAM_ZQ value mentioned there. Here
> are the results so far:
> 
> PMIC setup: Success on cold and warm boot, DRAM voltage matches on cold and
> warm boot (1.36V).
> 
> USB: Controllers show up in dmesg and /sys/bus/usb, but plugging an USB
> flash drive into USB1 gives no results. I've not tried USB0.
> 
> Relevant bits of the dmesg:
> 
> [    0.192746] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
> [    0.228741] ehci-platform: EHCI generic platform driver
> [    0.228993] ehci-platform 1c1a000.usb: EHCI Host Controller
> [    0.229021] ehci-platform 1c1a000.usb: new USB bus registered, assigned 
> bus number 1
> [    0.229591] ehci-platform 1c1a000.usb: irq 11, io mem 0x01c1a000
> [    0.244296] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
> [    0.244981] hub 1-0:1.0: USB hub found
> [    0.245023] hub 1-0:1.0: 1 port detected
> [    0.245554] ehci-orion: EHCI orion driver
> [    0.245715] ehci-exynos: EHCI EXYNOS driver
> [    0.245802] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [    0.245841] ohci-pci: OHCI PCI platform driver
> [    0.245928] ohci-platform: OHCI generic platform driver
> [    0.246099] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
> [    0.246123] ohci-platform 1c1a400.usb: new USB bus registered, assigned 
> bus number 2
> [    0.246407] ohci-platform 1c1a400.usb: irq 12, io mem 0x01c1a400
> [    0.309107] hub 2-0:1.0: USB hub found
> [    0.309144] hub 2-0:1.0: 1 port detected
> [    0.310511] musb-sunxi 1c19000.usb: Invalid or missing 'dr_mode' property
> [    0.310530] musb-sunxi: probe of 1c19000.usb failed with error -22

Can you add:
        dr_mode = "otg";
to the usb_otg node?
According to the generic binding doc this should be the default if not
specified, but the sunxi-musb driver requires this property, explicitly.

And on the way, can you drop the usb0_vbus-supply property from the
usbphy node, to see if that makes a difference? Maybe the polarity of
the pin is messed up?

Cheers,
Andre.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to