Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] ov13850 address

64

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
64

【Linux】 ov13850 address

Posted at 12/28/2018 09:12:00      View:4985 | Replies:3        Print      Only Author   [Copy Link] 1#
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?
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/29/2018 08:54:09        Only Author  2#
In my experience, if the SCCB_ID is 0x20, the i2c address is SCCB_ID / 2 = 0x10.
Reply

Use props Report

64

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
64
Posted at 1/2/2019 10:24:15        Only Author  3#
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?


Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 1/2/2019 11:32:56        Only Author  4#
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.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list