Right now for buggy HID hardware or other input devices not exactly aligning to specs or having known hardware workarounds required, a new Linux kernel driver tends to be needed or at least quirks to be added to existing kernel driver code
A patch is undergoing work to add Steam Deck IMU support to the HID-Steam kernel driver for supporting the accelerometer and gyroscope sensors of the Steam Deck controller.