USB 3.0 support for Rockchip RK3328
Denis Polygalov
dpolyg at gmail.com
Wed Aug 14 13:04:16 UTC 2019
After application of this patch:
https://patchwork.kernel.org/patch/10853381/
and recompiling kernel I got this in dmesg:
# dmesg | egrep 'usb|dwc|USB'
dwc0: <Rockchip Gigabit Ethernet Controller> mem 0xff540000-0xff54ffff
irq 43 on ofwbus0
miibus0: <MII bus> on dwc0
dwc0: Ethernet address: 82:d6:05:ce:da:87
dwcotg0: <DWC OTG 2.0 integrated USB controller> mem
0xff580000-0xff5bffff irq 45 on ofwbus0
usbus0 on dwcotg0
usbus1 on ohci0
usbus0: 480Mbps High Speed USB v2.0
usbus1: 12Mbps Full Speed USB v1.0
ugen1.1: <Generic OHCI root HUB> at usbus1
uhub0 on usbus1
uhub0: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen0.1: <DWCOTG OTG Root HUB> at usbus0
uhub1 on usbus0
uhub1: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
Root mount waiting for: usbus1 usbus0
dwc0: link state changed to DOWN
dwc0: link state changed to UP
but no response to connection of any USB device.
Also I noticed that 'gpioctl -f /dev/gpioc4 26 1'
make sense only for ROCKPro64 which is not what I have:
# ls /dev/gp*
/dev/gpioc0 /dev/gpioc1 /dev/gpioc2 /dev/gpioc3
Is there some similar magic command to turn on USB parts on ROCK64?
Regards,
Denis.
On 13/08/2019 4:53 am, greg at unrelenting.technology wrote:
> August 12, 2019 6:12 PM, "Emmanuel Vadot" <manu at bidouilliste.com> wrote:
>
>> On Mon, 12 Aug 2019 17:19:30 +0300
>> Greg V <greg at unrelenting.technology> wrote:
>>
>>> On August 12, 2019 4:10:07 PM GMT+03:00, Denis Polygalov <dpolyg at gmail.com> wrote:
>>> Hi. I'm testing this patch:
>>>
>>> https://reviews.freebsd.org/D19335
>>>
>>> on my ROCK64 (v2.0) board. Not ROCKPro(!)
>>>
>>> Any ideas how to make this work please?
>>>
>>> Looks like the devicetree that's in the freebsd repo right now does not have the usb3 node.
>>>
>>> Google for rk3328 dwc3 usb3, apply the related dts changes (or just download the whole dts from a
>>> newer Linux version), rebuild the dtb and boot with the new dtb.
>>
>> Only the vendor DTS have something related to usb3 with a compatible
>> "rockchip,rk3328-xhci".
>> This controller isn't documented in the TRM so I don't know much about
>> it, based on the property of the dts node I guess it's a dwc3 because
>> there is some snps props but ...
>
> I'm talking about this patch:
>
> http://lkml.iu.edu/hypermail/linux/kernel/1708.2/01066.html
>
> that mentions rockchip,rk3328-dwc3
>
> so I guess it wasn't upstreamed
>
More information about the freebsd-arm
mailing list