This will work on Raspberry Pi OS 2021-01-12 (related DT files were changed in later release).
Copy the binary device tree overlay file to /boot/overlays/:
sudo cp ov7251cam0.dtbo /boot/overlays/ov7251cam0.dtboEnable the overlay in boot/config.txt:
dtoverlay=ov7251cam0
Reboot the RPi with sudo reboot. The camera driver should run.
To compile the device tree from source use dts:
dtc -I dts -O dtb -o ov7251cam0.dtbo ov7251cam0-overlay.dtsLink to base overlay file: ov7251-overlay.dts.
https://gist.github.com/kralo/5e489247d23dd13f4564fd6baa443416