Made a Linux kernel driver for the Sony IMX318 image sensor, allowing for capturing raw images from the sensor and configuring sensor settings such as gain and exposure time. The driver integrates cleanly with the V4L2 framework of the Linux kernel and is compatible with the mainline Linux kernel.
The process of writing the driver is documented in detail in a blog post: emainline.gitlab.io/2022/08/24/camera.html