Firefly Open Source Community

Title: ov13850 address [Print This Page]

Author: acidpero    Time: 12/28/2018 09:12
Title: ov13850 address
I refer to here
https://drive.google.com/drive/f ... aXNTOHIxSDRGOFV4RDA

and here
https://github.com/rockchip-linu ... 9-firefly-linux.dts

  1. ...
  2. camera0: ov13850@10 {
  3.                 status = "okay";
  4.                 compatible = "omnivision,ov13850-v4l2-i2c-subdev";
  5.                 reg = < 0x10 >;
  6.                 device_type = "v4l2-i2c-subdev";
  7. ...
Copy the code



According to the reference,
0x20 or 0x6C is used, and the camera address in dts is defined as 0x10.

how can it be work?
Author: penguin    Time: 12/29/2018 08:54
In my experience, if the SCCB_ID is 0x20, the i2c address is SCCB_ID / 2 = 0x10.

Author: acidpero    Time: 1/2/2019 10:24
penguin Posted at 12/29/2018 08:54
In my experience, if the SCCB_ID is 0x20, the i2c address is SCCB_ID / 2 = 0x10.

Happy new year and thanks for your reply

Every time I analyze this product, I feel like fall into the maze.
why address divided by 2?



Author: penguin    Time: 1/2/2019 11:32
SCCB is different from i2c. I do not dwell deep into it.

In case you need, here's the spec I find:

http://www4.cs.umanitoba.ca/~jac ... ingList/ov-sccb.pdf

The divided by 2 is from experience. Hope you find the answer in the doc.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1