Integrating custom MIPI CSI camera with Jetson TX2i

By leaving ov5693.c unedited, I mean, I have not removed any of the i2c structs and has used it as is.

We have made some progress since previous post.

As mentioned in your post here Xavier - using raw CSI without i2c - #2 by ShaneCCC
we have made the following changes in tegra186-quill-p3489-1000-a00-00-base.dts:

  • Commented out camera module and camera-plugin-manager
  • Included camera-e3326
#include <t18x-common-platforms/tegra186-quill-common-p3489-1000-a00.dtsi>
#include <t18x-common-platforms/tegra186-quill-power-tree-p3489-1000-a00-00.dtsi>
/* #include <t18x-common-platforms/tegra186-quill-camera-modules.dtsi> */
#include <t18x-common-modules/tegra186-display-e3320-1000-a00.dtsi>
#include <t18x-common-modules/tegra186-camera-e3326-a00.dtsi>

/* comms dtsi file should be included after gpio dtsi file */
#include <t18x-common-plugin-manager/tegra186-quill-p3489-1000-a00-plugin-manager.dtsi>
#include <t18x-common-modules/tegra186-super-module-e2614-p2597-1000-a00.dtsi>
#include <t18x-common-plugin-manager/tegra186-quill-display-plugin-manager.dtsi>
#include <t18x-common-prod/tegra186-priv-quill-p3489-1000-a00-prod.dtsi>
/* #include <t18x-common-plugin-manager/tegra186-quill-camera-plugin-manager.dtsi> */

Further we have modified tegra186-camera-e3326-a00.dtsi file to match our sensor requirement.

We were getting following error when we checked with dmesg:

 3.671990] ov5693 2-0036: probing v4l2 sensor.
[    3.672032] ov5693 2-0036: Failed to find clocks
[    3.677243] ov5693 2-0036: unable to get platform data
[    3.682809] ov5693 2-0036: tegra camera driver registration failed

Further to which modified we found our port_index was set to 2, so we modified it to 0 (as we are using serial_a) as per this post Failed tegra camera driver registration on JetPack4.2 - #2 by JerryChang

Following which now we are getting this error:

3.140294] ov5693 2-0036: probing v4l2 sensor.
[    3.140335] ov5693 2-0036: Failed to find clocks
[    3.141993] Mass Storage Function, version: 2009/09/11
[    3.141996] LUN: removable file: (no medium)
[    3.145281] ov5693 2-0036: unable to get platform data
[    3.148162] using random self ethernet address
[    3.148164] using random host ethernet address
[    3.173556] rndis0: HOST MAC 76:88:3a:0d:69:28
[    3.173611] rndis0: MAC 76:88:3a:0d:69:29
[    3.176344] usb0: HOST MAC 76:88:3a:0d:69:2a
[    3.176367] usb0: MAC 76:88:3a:0d:69:2b
[    3.176396] tegra-xudc-new 3550000.xudc: ep 0 (type: 0, dir: out) enabled
[    3.182172] l4tbr0: port 1(rndis0) entered blocking state
[    3.182174] l4tbr0: port 1(rndis0) entered disabled state
[    3.182296] device rndis0 entered promiscuous mode
[    3.183118] ov5693 2-0036: tegra camera driver registration failed

What do we need to do?