I am trying to write a Linux driver for a LiDAR device. I am working with a NVIDIA Jetson. It looks like the MIPI CSI2 interface has the necessary throughput to support our device. This will be my first Linux driver. :).
Would the proper approach be to write a driver that interfaces with the V4L2 subsystems? Our device does not have standard video characteristics but I guess I could try to work out some way to encode our data into a video format. That seems wrong. It would be easier if there were some kind of general purpose IO I could put on the CSI lanes but I don’t know how to directly access the hardware. (OR even if I want to). Does anyone have an opinion on how to approach this problem? Even better would be a link to a GPIO - over MIPI CSI2 driver implementation. I have looked hard and can’t find anything.