Date: Wed, 14 Aug 2019 22:04:08 +0900 From: Denis Polygalov <dpolyg@gmail.com> To: greg@unrelenting.technology, Emmanuel Vadot <manu@bidouilliste.com> Cc: freebsd-arm@freebsd.org Subject: Re: USB 3.0 support for Rockchip RK3328 Message-ID: <c4a54d0d-ebb8-75d5-a402-832d00d08ae7@gmail.com> In-Reply-To: <27a49a3c8a6e2029d696b359bed47ee3@unrelenting.technology> References: <20190812171248.4af265a7bd48056407f796d6@bidouilliste.com> <adebd721-0422-1274-7b38-ba67d104c2f9@gmail.com> <CCFDD654-825C-405E-80CC-9DA1DB9FBF81@unrelenting.technology> <27a49a3c8a6e2029d696b359bed47ee3@unrelenting.technology>
next in thread | previous in thread | raw e-mail | index | archive | help
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@unrelenting.technology wrote: > August 12, 2019 6:12 PM, "Emmanuel Vadot" <manu@bidouilliste.com> wrote: > >> On Mon, 12 Aug 2019 17:19:30 +0300 >> Greg V <greg@unrelenting.technology> wrote: >> >>> On August 12, 2019 4:10:07 PM GMT+03:00, Denis Polygalov <dpolyg@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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c4a54d0d-ebb8-75d5-a402-832d00d08ae7>