whether or not ov5693 can work on agx-xavier without modifying anything

Hi, I tried to use the sensor ov5693 to work on agx-xavier, but the default driver didn’t work, whether I need to modify something, or not.

hello wjv321,

ov5693 sensor is supported by default,
please also access L4T Sources via download center,
you may check below for ov5693 sensor driver and also sensor device tree for reference,
$l4t-r32.2/public_sources/kernel/nvidia/drivers/media/i2c/ov5693.c
$l4t-r32.2/public_sources/hardware/nvidia/platform/t19x/common/kernel-dts/t19x-common-modules/tegra194-camera-e3326-a00.dtsi

may I know is there any failure messages for reference?
suggest you should contact with your sensor vendor, or you might also check with Jetson Preferred Partners for further support.
thanks

Hi, JerryChang, thanks for you reply.I setted CONFIG_VIDEO_OV5693=m, and insmod ov5693.ko, ov5693_probe didn’t run.If I setted CONFIG_VIDEO_OV5693=y, and insmod it, it didn’t run either.

hello wjv321,

ov5693 sensor driver is by default built-in with the JetPack release image. it should detected by default.
we also used the plugin manager for device registration.
plugin manager read the onboard eeprom to loading the device tree, you might also disable that if your camera board did not have eeprom.
thanks

Hi, JerryChang, I tryed to modify tegra194-p2822-camera-modules.dtsi, change status = disable to status = okay. Kernel startup log printed error like this:

[ 5.140646] i2c /dev entries driver
[ 5.143547] pca954x 2-0077: vcc-pullup regulator not found
[ 5.143580] pca954x 2-0077: pca954x_probe: forcing device bus number, start 30.
[ 5.143587] pca954x 2-0077: device detect skipped.
[ 5.144024] i2c i2c-30: Failed to register i2c client ov5693 at 0x36 (-16)
[ 5.144033] i2c i2c-30: of_i2c: Failure registering /i2c@3180000/tca9548@77/i2c@0/ov5693_a@36
[ 5.144041] i2c i2c-30: Failed to create I2C device for /i2c@3180000/tca9548@77/i2c@0/ov5693_a@36
[ 5.144062] i2c i2c-2: Added multiplexed i2c bus 30
[ 5.144668] i2c i2c-31: Failed to register i2c client ov5693 at 0x36 (-16)
[ 5.144677] i2c i2c-31: of_i2c: Failure registering /i2c@3180000/tca9548@77/i2c@1/ov5693_b@36
[ 5.144685] i2c i2c-31: Failed to create I2C device for /i2c@3180000/tca9548@77/i2c@1/ov5693_b@36
[ 5.144703] i2c i2c-2: Added multiplexed i2c bus 31
[ 5.145073] i2c i2c-32: Failed to register i2c client ov5693 at 0x36 (-16)
[ 5.145081] i2c i2c-32: of_i2c: Failure registering /i2c@3180000/tca9548@77/i2c@2/ov5693_c@36
[ 5.145089] i2c i2c-32: Failed to create I2C device for /i2c@3180000/tca9548@77/i2c@2/ov5693_c@36
[ 5.145107] i2c i2c-2: Added multiplexed i2c bus 32
[ 5.145410] i2c i2c-33: Failed to register i2c client ov5693 at 0x36 (-16)
[ 5.145417] i2c i2c-33: of_i2c: Failure registering /i2c@3180000/tca9548@77/i2c@3/ov5693_d@36
[ 5.145424] i2c i2c-33: Failed to create I2C device for /i2c@3180000/tca9548@77/i2c@3/ov5693_d@36
[ 5.145439] i2c i2c-2: Added multiplexed i2c bus 33
[ 5.145788] i2c i2c-34: Failed to register i2c client ov5693 at 0x36 (-16)
[ 5.145794] i2c i2c-34: of_i2c: Failure registering /i2c@3180000/tca9548@77/i2c@4/ov5693_e@36
[ 5.145801] i2c i2c-34: Failed to create I2C device for /i2c@3180000/tca9548@77/i2c@4/ov5693_e@36
[ 5.145816] i2c i2c-2: Added multiplexed i2c bus 34
[ 5.146109] i2c i2c-35: Failed to register i2c client ov5693 at 0x36 (-16)
[ 5.146116] i2c i2c-35: of_i2c: Failure registering /i2c@3180000/tca9548@77/i2c@5/ov5693_g@36
[ 5.146122] i2c i2c-35: Failed to create I2C device for /i2c@3180000/tca9548@77/i2c@5/ov5693_g@36
[ 5.146156] i2c i2c-2: Added multiplexed i2c bus 35
[ 5.146478] i2c i2c-2: Added multiplexed i2c bus 36
[ 5.146710] i2c i2c-2: Added multiplexed i2c bus 37
[ 5.146718] pca954x 2-0077: registered 8 multiplexed busses for I2C switch pca9548
[ 5.147001] pca954x 2-0070: vcc-pullup regulator not found
[ 5.147016] pca954x 2-0070: pca954x_probe: forcing device bus number, start 30.
[ 5.147023] pca954x 2-0070: device detect skipped.
[ 5.147146] couldn’t get idr

The camera module does not have eeprom.

hello wjv321,

you’ll need to Using the Main Platform Device Tree File for the camera board without eeprom.

were you working with 6-cam camera board?
please check below device tree for six ov5693 reference drivers.
please also contact with your sensor vendor for correct i2c configurations.
thanks

$l4t-r32.2/public_sources/kernel_src/hardware/nvidia/platform/t19x/common/kernel-dts/t19x-common-modules/tegra194-camera-e3333-a00.dtsi

Hi, JerryChang, thanks a lot for your replies.I will try as your replies.