[Bug 293358] Support USB 2 phys on RK3588

[email protected] Sun, 22 Feb 2026 08:48:22 +0000
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293358

            Bug ID: 293358
           Summary: Support USB 2 phys on RK3588
           Product: Base System
           Version: 14.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 268262
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=268262&action=edit
Patch for issue

This adds support for USB 2 phys on the RK3588 platform.

I moved the host-port check earlier because one of the
RK3588 ports is typically otg and with the check being
done after rk_usb2phy_export_clock it caused a panic on
the second attempt to load the module since the clock
was left registered when the attach failed.

I changed the ordering of compat_data since it appears from
the code that ofw_bus_search_compatible stops on the first
match (listing the most specific model first should provide
better functionality in the case of hardware which is also
backwards compatible).

RK3588 support tested using a FriendlyElec NanoPC-T6 LTS
on FreeBSD 14 stable (with various other RK3588 patches).

-- 
You are receiving this mail because:
You are the assignee for the bug.