The HID subsystem changes were merged this week for the ongoing Linux 7.0 kernel merge window. Among the Human Interface Devices (HID) work this cycle were supporting more guitars while also adding more device IDs and different laptop quirks.
Linux 7.0 now has mainline kernel support for the Rock Band 4 guitars designed for the PlayStation 4 and PlayStation 5. At the start of the year Linux patches came for enabling the Rock Band 4 PS4/PS5 guitars via additions to the SOny HID driver. These guitars are the PDP RiffMaster and the CRKD Gibson SG in both their PS4 and PS5 modes. There are also dongle device IDs added for the CRKD Gibson SG.


Clone Hero isn’t FOSS, there’s no source available.
YARG is though.