Hi
We are trying to modify the camera sensor driver for ov5693 to test a different sensor. The address of our sensor is 0x30. We are using R28.1
We replaced the camera address 0x36 by 0x30 in the dtb file as follows:
ov5693_a@36 {
reg = <0x30>;
mclk = "extperiph1";
devnode = "video0";
avdd-reg = "vana";
We checked the boot logs and we noticed that the probe function is not being called.
We assume that the update to the dtb is not correct. How do we need to update the dtb to get this to work?
Thank you
Cesar
I believe the devboard camera uses EEPROM to identify itself using plugin-manager. You would probably need to follow the sensor driver programming to disable plugin manager so that the driver will probe with I2C instead.
Download the “L4T Documentation” package from the download center for your Jetpack/l4t version, the sensor driver programming guide is one of the sections.
Thank you for your reply.
I have disabled the plugin-manager.
What would be the best example to create a dts file for our sensor?
The file mentioned in the sensor driver programming guide “tegra18x-quill-cv-camera-modules.dtsi” does not seem to exist.
Thank you
Cesar
I have an open source driver for the LI-M021-MIPI that you could reference.
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define DAXC02_RST_A TEGRA_MAIN_GPIO(R, 5)
#define DAXC02_RST_C TEGRA_MAIN_GPIO(R, 1)
/*
I2C Busses:
This file has been truncated. show original
Otherwise the r28.2 sensor-driver programming guide has almost everything you’d want to know
What does your hardware look like?
Thank you,
Would it be possible to modify the existing ov5693 entries in the dts file instead of creating a new dts file?
Thank you
Cesar
Sure, you could even modify it in place on the TX2 itself
You should take a look at this thread, seems to be attempting something similar:
https://devtalk.nvidia.com/default/topic/1030747/i-d-like-to-modify-camera-device-tree-configuration-ov5693-on-tx2-/?offset=4