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.
This should now be obsolete, alternative is
dtoverlay=ov7251,cam0https://github.com/raspberrypi/firmware/blob/4849b548c1ffda841481c54e62fff249ed00b32c/boot/overlays/README#L2930-L2942