Page MenuHomeFreeBSD

dwc3: Handle optional clocks
ClosedPublic

Authored by manu on Nov 15 2022, 12:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 23, 6:09 PM
Unknown Object (File)
Mon, Sep 23, 9:28 AM
Unknown Object (File)
Sun, Sep 22, 7:45 PM
Unknown Object (File)
Thu, Sep 19, 1:30 AM
Unknown Object (File)
Tue, Sep 17, 4:22 PM
Unknown Object (File)
Tue, Sep 17, 10:54 AM
Unknown Object (File)
Tue, Sep 17, 4:07 AM
Unknown Object (File)
Thu, Sep 12, 1:49 PM
Subscribers

Details

Summary

Usually dwc3 needs a glue node that contain the SoC specific clocks/resets.
For some reason the RK3328 DTS doesn't have this glue node and the clocks
are specified in the dwc3 node directly.
The bindings says that it is allowed but doesn't specified some strict names
for them.
Add a specific case for RK3328 based on the compatible string.

Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48359
Build 45245: arc lint + arc unit

Event Timeline

manu requested review of this revision.Nov 15 2022, 12:58 PM
andrew added inline comments.
sys/dev/usb/controller/dwc3.c
405

Is there a reason to put this here rather than using a subclass?

sys/dev/usb/controller/dwc3.c
405

Because this is the only difference and other rockchip SoC (haven't looked) will have the same clock name (other socs too).
So it's easier.

This revision is now accepted and ready to land.Nov 15 2022, 3:27 PM
This revision was automatically updated to reflect the committed changes.