From postmarketOS

As hardware is complicated, Hardware Abstraction Layers, which are used for higher-in-the-stack applications to use, are needed.

Recently the "libcamera" library was started to basically create a HAL for camera APIs.

A "libsensor" would also be great, handling IIO sensors and sensors on the DSP via qmi/libqmi. For libsensor there are many projects implementing something like that (excluding the qmi part): , , , and probably many more