Page MenuHomeFreeBSD

dwcotg.4: Initial stub manual draft
AcceptedPublic

Authored by ziaee on Thu, Oct 23, 2:04 AM.
Tags
None
Referenced Files
F136672048: D53287.diff
Tue, Nov 18, 8:24 PM
Unknown Object (File)
Mon, Nov 17, 11:28 PM
Unknown Object (File)
Mon, Nov 17, 11:27 PM
Unknown Object (File)
Mon, Nov 17, 6:33 PM
Unknown Object (File)
Sat, Nov 15, 10:17 PM
Unknown Object (File)
Fri, Nov 14, 4:49 AM
Unknown Object (File)
Wed, Nov 12, 12:27 PM
Unknown Object (File)
Wed, Nov 12, 12:26 PM

Details

Summary

Nobody seems to realize this is here, or that we have a driver such that you
can connect a raspberry pi 0/3/4/5 with a single usb cable to your laptop
supplying power, ethernet, and a serial console. Therefore, write a stub
manual to create visibility in apropos and the HW Relnotes.

I can't figure out how to use this yet. Val Packett told me it has something
to do with usb_template. Hopefully someone who knows more will come forth in
the review.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68437
Build 65320: arc lint + arc unit

Event Timeline

ziaee requested review of this revision.Thu, Oct 23, 2:04 AM

Added everyone who it seems might know how to use this from bugs.

I have not succeeded in using this myself, but I have never tried too hard.

There is an entire chapter in the handbook dedicated to the OTG features: https://docs.freebsd.org/en/books/handbook/usb-device-mode/

The "OTG" here is just part of the name of the hardware block in the SoC that provides the USB controller, which is not guaranteed to actually support OTG (role switching) or the device role at all in any particular implementation. I don't remember how exactly it was used on which RPi board… I *thiiink* it was used as the USB 2.0 host controller pre-RPi4, then when XHCI was added, it was moved to the upstream-facing Type-C port? Something like that..??

It does not have anything to do with UART whatsoever; also Synopsys is spelled with a "y".

It does not have anything to do with UART whatsoever

But, when I use it with raspbian, I can call in with cu(1) to it,
so doesn't that make it a UART?

dwcotg is a USB controller - functionally similar to ehci(4), ohci(4), uhci(4) or xhci(4) except that it also supports OTG functionality. When you use cu(1) to connect to the device in OTG mode, you're connecting to a device behind the controller, not the controller itself. usb_template(4) documents the OTG devices that FreeBSD supports, though the available ones depend on the SoC.

English LGTM. I can't speak to accuracy or relevance.

This revision is now accepted and ready to land.Tue, Nov 18, 5:42 AM

The English might be OK but the content is completely wrong. I would respectfully suggest that having accurate content should come before language issues.

Nobody is pushing this until the content is verified.

ziaee retitled this revision from dwcotg.4: Initial stub manual to dwcotg.4: Initial stub manual draft.Tue, Nov 18, 9:48 AM