Power & Source of Big Ideas

Anyone has DTS config for ov13850 camera?

Moderators: chensy, FATechsupport

Hi, does anybody have a working Linux kernel DTS config for ov13850 camera?

Thanks!
from ov13850 issue - git commit

some useful info can be also found on firefly rk3399 camera page - maybe not everything is actual for friendly arm board.
Does this actually work for you?

I've tried this already, same "ERR: no active sensor configuration" as before.

I believe FriendlyARM does not respect the wiring of the Rockchip spec. If you lookup for used lane numbers in the M4's own MIPI spec, they do not seem to properly correspond to e.g. power or reset lanes.

FA seem to have camera working on Android, but only with emmc, and there they use fancy XML configs instead of DTS.
I'm pretty sure though, that the driver loads at 0x10 register, which could be seen in "i2cdetect 1" command output. And if I change 0x10 to 0x30, i2cdetect output changes accordingly.

Maybe we also need to send proper signals to gpio ports, in order to power on the camera?
More diagnostics with "cat /sys/kernel/debug/gpio" effectively reveals that none of camera gpios described in DTS node have been set. This probably suggests that error occurs earlier than they could be assigned.
I don't have that camera ;)
I have this camera, but it was not working. Now a new camera is coming to me, I think it should earn. As soon as it arrives, plug it in and write about the results.
For information - the manufacturer has released new versions of operating systems "... 20181219.img"
Try it, maybe there are corrected errors.
Camera can technically switch on/off.

But what ultimately fails is a call to "i2c_transfer" from the following context:

Code: Select all

static int ov13850_check_camera_id(struct ov_camera_module *cam_mod)
{
   u32 pidh, pidl;
   int ret = 0;

   ov_camera_module_pr_debug(cam_mod, "\n");

   ret |= ov_camera_module_read_reg(cam_mod, 1, ov13850_PIDH_ADDR, &pidh);
   ret |= ov_camera_module_read_reg(cam_mod, 1, ov13850_PIDL_ADDR, &pidl);
...
}
Well, power on/off only means assignment of some PM and pin states. We don't really get any "power on" confirmation from the camera on this step. In the context of further camera register read failure, this leaves an option that an assigned PM or pins state is invalid.

What also looks suspicious is this message:

Code: Select all

cif_isp10_pltfrm_dev_init ERR: could not get default pin state
isp1 driver (ov13850.c) fails in the same way during camera register write attempt through "i2c_master_send".
pavelectric wrote:
I have this camera, but it was not working. Now a new camera is coming to me, I think it should earn. As soon as it arrives, plug it in and write about the results.
For information - the manufacturer has released new versions of operating systems "... 20181219.img"
Try it, maybe there are corrected errors.


You were right, Pavel, in rk3399-sd-friendlycore-bionic-4.4-arm64-20181219.img camera magically starts to work! Thanks for this info. I wonder which kernel version is it in this new release.
marcusmae wrote:
You were right, Pavel, in rk3399-sd-friendlycore-bionic-4.4-arm64-20181219.img camera magically starts to work! Thanks for this info. I wonder which kernel version is it in this new release.


As for the kernel - everything is simple - 4.4.143, which means no changes.

Those who are too lazy to go to WiKi:

17.1 2018-12-19 FriendlyCore is updated as follows:

1) Added OV13850 and wide dynamic OV4689 camera support
2) Added ffmpeg support, provides static libraries and header files, supports 4K hardware decoding (does not support hardware encoding)
3) Added mpv player, supports 4K hardware decoding

FriendlyDesktop is updated as follows:

1) Added OV13850 and wide dynamic OV4689 camera support
2) Add Chrome-browser browser, support web page 1080P hardware decoding, support WebGL
3) Added ffmpeg support, provides static libraries and header files, supports 4K hardware decoding (does not support hardware encoding)
4) Fix the volume adjustment Issue
5) Set the audio output channel to HDMI by default (can be modified by /etc/pulse/default.pa)
6) Optimize the local player, associated with the mp4 file
7) Automatically enable swap partitioning for NEO4
8) Fix the issue of hostapd related issues
9) Adjust DPMS settings, turn off automatic sleep by default


So they hear us!
Thanks to the manufacturer for the work :)
Of course, we are looking forward to the appearance of the OV4689 camera in hardware and the fulfillment of the wishes of the majority of owners and potential buyers - solutions with PCIx (HAT, SHIELD...anything)
Very insteresting. Certainly this part. I'll have to check it out. Thanks for the info.
pavelectric wrote:
2) Added ffmpeg support, provides static libraries and header files, supports 4K hardware decoding (does not support hardware encoding)
3) Added mpv player, supports 4K hardware decoding
pavelectric wrote:
marcusmae wrote:
You were right, Pavel, in rk3399-sd-friendlycore-bionic-4.4-arm64-20181219.img camera magically starts to work! Thanks for this info. I wonder which kernel version is it in this new release.


As for the kernel - everything is simple - 4.4.143, which means no changes.


There must be changes into the kernel, since all camera stuff (driver, dts) comes as a part of kernel sourcee code.

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 2865 on Sun Nov 10, 2019 5:27 am

Users browsing this forum: No registered users and 2 guests